jaxprop.property_derivatives module#

Property partial derivatives with separate primal-state provenance and units.

class jaxprop.property_derivatives.PropertyDerivatives(primal, derivatives, input_names, *, method='autodiff')[source]#

Bases: Module

Local two-input partials, distinct from ordinary thermodynamic values.

shape is the primal broadcast shape; every derivative array has derivative_shape == shape + (2,). The final axis follows input_names. primal retains the physical state, status, validity and clipping flags.

Attributes:
available_properties
clipped
derivative_shape
error_policy
fluid_name
identifier
model
primal_shape
provider
providers
reference_id
shape
status
valid

Methods

derivative_units(name)

Return SI numerator/denominator units in final-axis order.

items

keys

property_valid

raw_property

supports_property

to_dict

values

property available_properties#
property clipped#
property derivative_shape#
derivative_units(name)[source]#

Return SI numerator/denominator units in final-axis order.

property error_policy#
property fluid_name#
property identifier#
input_names: tuple#
input_units: tuple#
items()[source]#
keys()[source]#
method: str#
property model#
primal: FluidState#
property primal_shape#
property_units: FrozenMapping#
property_valid(name)[source]#
property provider#
property providers#
quantity_kind: str = 'property_derivatives'#
raw_property(name)[source]#
property reference_id#
property shape#
property status#
supports_property(name)[source]#
to_dict(include_aliases=False)[source]#
property valid#
values()[source]#
jaxprop.property_derivatives.get_props_gradient(fluid, input_pair, x, y, method='auto', eps_rel=1e-06, eps_abs=1e-06, *, errors='mask')[source]#

Return local two-coordinate property partials and their primal state.

Native AD linearizes one numerical property dictionary and applies its JVP to two unit directions. Array/broadcast inputs produce shape + (2,) local partials, never a full cross-element Jacobian. The FD alternative uses independent centered perturbations. Differentiation follows the selected mask/clip policy, including zero sensitivities outside clip bounds.