jaxprop.source_references module#

Immutable source-EOS reference data, independent of numerical evaluators.

Only scalar Python metadata is retained. Reference FluidState arrays are materialized on explicit access, so these records are safe static JAX metadata. Every initialization probes a fresh source anchor: CoolProp reference settings are process-global and a cache keyed only by fluid name would become stale.

class jaxprop.source_references.ReferencePoint(name: str, available: bool, reason: str | None, classification: str, interpretation: str, source: jaxprop.configuration.FrozenMapping, reference_id: tuple, reported_coordinates: jaxprop.configuration.FrozenMapping = <factory>, evaluation_coordinates: jaxprop.configuration.FrozenMapping = <factory>, evaluation_offsets: jaxprop.configuration.FrozenMapping = <factory>, properties: jaxprop.configuration.FrozenMapping = <factory>)[source]#

Bases: object

Attributes:
backend
reference_convention
source_fluid
state
available: bool#
property backend#
classification: str#
evaluation_coordinates: FrozenMapping#
evaluation_offsets: FrozenMapping#
interpretation: str#
name: str#
properties: FrozenMapping#
reason: str | None#
property reference_convention#
reference_id: tuple#
reported_coordinates: FrozenMapping#
source: FrozenMapping#
property source_fluid#
property state#
class jaxprop.source_references.SourceReferences(critical: jaxprop.source_references.ReferencePoint, triple_liquid: jaxprop.source_references.ReferencePoint, triple_vapor: jaxprop.source_references.ReferencePoint, source: jaxprop.configuration.FrozenMapping, anchor: jaxprop.configuration.FrozenMapping, reference_id: tuple, components: tuple = ())[source]#

Bases: Mapping

Methods

get(k[,d])

items()

keys()

values()

anchor: FrozenMapping#
components: tuple = ()#
critical: ReferencePoint#
reference_id: tuple#
source: FrozenMapping#
triple_liquid: ReferencePoint#
triple_vapor: ReferencePoint#
class jaxprop.source_references.SourceReferencesMixin[source]#

Bases: object

Attributes:
critical_point
references
triple_point_liquid
triple_point_vapor
property critical_point#
property references#
property triple_point_liquid#
property triple_point_vapor#
jaxprop.source_references.composite_source_references(name, backend, component_references, mixture_ratio=None, *, mass_fractions=None, component_reference_ids=None)[source]#

Record that a component mixing model has no assumed unique phase points.

jaxprop.source_references.initialize_source_references(name, backend='HEOS', *, state=None)[source]#

Initialize independently available source critical/lower-endpoint records.

An evaluator may supply its freshly constructed source state so ordinary evaluation and reference records capture the same convention, even if the process-global convention changes during construction. This is setup-only: callers must not pass a state serving an in-flight numerical evaluation.

jaxprop.source_references.reference_anchor(state)[source]#

Probe h/s at deterministic coordinates independent of their offsets.

jaxprop.source_references.source_reference_identity(state, anchor=None, *, backend=None)[source]#

Return the canonical source/model identity used by states and caches.

jaxprop.source_references.source_reference_metadata(name, backend='HEOS', *, state=None)[source]#

Return canonical composition/version/active-reference metadata.

Supplying a newly constructed AbstractState avoids duplicate initialization; the function still evaluates the actual reference anchor on every call.