jaxprop.helpers_props module#
- class jaxprop.helpers_props.FluidState(fluid_name: str = None, identifier: str = None, pressure: jax.Array = nan, temperature: jax.Array = nan, density: jax.Array = nan, enthalpy: jax.Array = nan, entropy: jax.Array = nan, internal_energy: jax.Array = nan, compressibility_factor: jax.Array = nan, isobaric_heat_capacity: jax.Array = nan, isochoric_heat_capacity: jax.Array = nan, heat_capacity_ratio: jax.Array = nan, speed_of_sound: jax.Array = nan, isothermal_compressibility: jax.Array = nan, isentropic_compressibility: jax.Array = nan, isothermal_bulk_modulus: jax.Array = nan, isentropic_bulk_modulus: jax.Array = nan, isobaric_expansion_coefficient: jax.Array = nan, isothermal_joule_thomson: jax.Array = nan, joule_thomson: jax.Array = nan, gruneisen: jax.Array = nan, viscosity: jax.Array = nan, conductivity: jax.Array = nan, is_two_phase: jax.Array = nan, quality_mass: jax.Array = nan, quality_volume: jax.Array = nan, surface_tension: jax.Array = nan, subcooling: jax.Array = nan, superheating: jax.Array = nan, pressure_saturation: jax.Array = nan, temperature_saturation: jax.Array = nan, supersaturation_degree: jax.Array = nan, supersaturation_ratio: jax.Array = nan, mixture_ratio: jax.Array = nan, mass_frac_1: jax.Array = nan, mass_frac_2: jax.Array = nan, vol_frac_1: jax.Array = nan, vol_frac_2: jax.Array = nan, drho_dp: jax.Array = nan, drho_dh: jax.Array = nan)[source]#
Bases:
Module- Attributes:
- fluid_name
- identifier
Methods
items()Dict-style iteration
keys()Dict-style iteration
stack(states)Combine a list of FluidState into a batched FluidState (values stacked into arrays).
to_dict([include_aliases])Return dict of numeric properties, with optional aliases.
values()Dict-style iteration
- compressibility_factor: Array = nan#
- conductivity: Array = nan#
- density: Array = nan#
- drho_dh: Array = nan#
- drho_dp: Array = nan#
- enthalpy: Array = nan#
- entropy: Array = nan#
- fluid_name: str = None#
- gruneisen: Array = nan#
- heat_capacity_ratio: Array = nan#
- identifier: str = None#
- internal_energy: Array = nan#
- is_two_phase: Array = nan#
- isentropic_bulk_modulus: Array = nan#
- isentropic_compressibility: Array = nan#
- isobaric_expansion_coefficient: Array = nan#
- isobaric_heat_capacity: Array = nan#
- isochoric_heat_capacity: Array = nan#
- isothermal_bulk_modulus: Array = nan#
- isothermal_compressibility: Array = nan#
- isothermal_joule_thomson: Array = nan#
- joule_thomson: Array = nan#
- mass_frac_1: Array = nan#
- mass_frac_2: Array = nan#
- mixture_ratio: Array = nan#
- pressure: Array = nan#
- pressure_saturation: Array = nan#
- quality_mass: Array = nan#
- quality_volume: Array = nan#
- speed_of_sound: Array = nan#
- classmethod stack(states: list[FluidState]) FluidState[source]#
Combine a list of FluidState into a batched FluidState (values stacked into arrays).
- subcooling: Array = nan#
- superheating: Array = nan#
- supersaturation_degree: Array = nan#
- supersaturation_ratio: Array = nan#
- surface_tension: Array = nan#
- temperature: Array = nan#
- temperature_saturation: Array = nan#
- to_dict(include_aliases: bool = False)[source]#
Return dict of numeric properties, with optional aliases.
- viscosity: Array = nan#
- vol_frac_1: Array = nan#
- vol_frac_2: Array = nan#