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:
ModuleLocal two-input partials, distinct from ordinary thermodynamic values.
shapeis the primal broadcast shape; every derivative array hasderivative_shape == shape + (2,). The final axis followsinput_names.primalretains 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#
- property error_policy#
- property fluid_name#
- property identifier#
- input_names: tuple#
- input_units: tuple#
- method: str#
- property model#
- primal: FluidState#
- property primal_shape#
- property_units: FrozenMapping#
- property provider#
- property providers#
- quantity_kind: str = 'property_derivatives'#
- property reference_id#
- property shape#
- property status#
- property valid#
- 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.