Skip to content
LIBRARY
Interfaces.ThermodynamicState.md

Interfaces.ThermodynamicState ​

Thermodynamic state fields shared by single-phase medium implementations.

Usage ​

MediaComponents.Interfaces.ThermodynamicState()

Parameters: ​

NameDescriptionUnitsDefault value
medium_data–
nX–MediaCompon...edium_data)

Variables ​

NameDescriptionUnits
pPa
TK
dkg/m3
hJ/kg
Xkg/kg

Behavior ​

This component has required parameters without default values, so it is not constructed here; see the Parameters table.

Source ​

dyad
"Thermodynamic state fields shared by single-phase medium implementations."
component ThermodynamicState
  # Immutable medium definition selected at model construction [-]
  structural parameter medium_data::MediaComponents.Interfaces.AbstractMediumData
  # Number of mass fractions [-]
  final structural parameter nX::Integer = MediaComponents.Interfaces.medium_nX(medium_data)
  # State absolute pressure [Pa]
  variable p::MediaComponents.Types.AbsolutePressure
  # State temperature [K]
  variable T::MediaComponents.Types.Temperature
  # State density [kg/m3]
  variable d::MediaComponents.Types.Density
  # State specific enthalpy [J/kg]
  variable h::MediaComponents.Types.SpecificEnthalpy
  # State mass fractions [kg/kg]
  variable X::MediaComponents.Types.MassFraction[nX]
relations
end
Flattened Source
dyad
"Thermodynamic state fields shared by single-phase medium implementations."
component ThermodynamicState
  # Immutable medium definition selected at model construction [-]
  structural parameter medium_data::MediaComponents.Interfaces.AbstractMediumData
  # Number of mass fractions [-]
  final structural parameter nX::Integer = MediaComponents.Interfaces.medium_nX(medium_data)
  # State absolute pressure [Pa]
  variable p::MediaComponents.Types.AbsolutePressure
  # State temperature [K]
  variable T::MediaComponents.Types.Temperature
  # State density [kg/m3]
  variable d::MediaComponents.Types.Density
  # State specific enthalpy [J/kg]
  variable h::MediaComponents.Types.SpecificEnthalpy
  # State mass fractions [kg/kg]
  variable X::MediaComponents.Types.MassFraction[nX]
relations
metadata {}
end


Test Cases ​

No test cases defined.