jaxprop.coolprop.jax_wrapper module#
CoolProp evaluation with eager typed errors and explicit JAX mask mode.
- class jaxprop.coolprop.jax_wrapper.FluidJAX(name: str, backend: str = 'HEOS', exceptions: bool = True, identifier=None)[source]#
Bases:
SourceReferencesMixin,Module- Attributes:
- capabilities
- configuration
- critical_point
- references
- triple_point_liquid
- triple_point_vapor
Methods
get_state(input_type, prop_1, prop_2, *[, ...])Evaluate eagerly with typed errors, or use explicit mask mode in JAX.
get_state_saturation(input_type, prop_1, ...)Evaluate saturation through the common state path.
- backend: str#
- property capabilities#
- property configuration#
- exceptions: bool#
- fluid: object#
- get_state(input_type, prop_1, prop_2, *, generalize_quality=False, supersaturation=False, errors='raise')[source]#
Evaluate eagerly with typed errors, or use explicit mask mode in JAX.
Derivatives are first-order forward finite differences over successful source states, away from phase/domain boundaries. Failed primal rows and unavailable primal properties have zero tangent contributions. If a valid state’s forward stencil fails, its derivative is unavailable (NaN); zero is not a physical derivative claim at that boundary.
- get_state_saturation(input_type, prop_1, prop_2, *, errors='raise')[source]#
Evaluate saturation through the common state path.
- identifier: str#
- model: str#
- name: str#
- provider: str#
- reference_id: tuple#