modelLimitsProbe

check that fluidLimits enclose the EoS states at the corners of the validity range

Information

Evaluates the EoS at the corners of the validity range given by Medium.fluidLimits and checks that the limits SMIN, SMAX, HMIN, HMAX and DMAX enclose these states:

  • SMAX ≥ s(TMAX, DMIN), the highest entropy (entropy increases with T and decreases with d)
  • SMIN ≤ min(s of saturated liquid at TMIN, s(TMIN, PMAX))
  • HMIN ≤ min(h of saturated liquid at TMIN, h(TMIN, PMAX))
  • HMAX ≥ max(h(TMAX, DMIN), h(TMAX, PMAX)), because above the inversion temperature h increases with p
  • DMAX ≥ max(d of saturated liquid at TMIN, d(TMIN, PMAX))
  • triplePointPressure agrees within 5 % with the saturation pressure of the EoS at triplePointTemperature (only if triplePointTemperature ≥ TMIN)

Note that (TMIN, PMAX) lies in the solid region, so the EoS is extrapolated there and the resulting limits are conservative. All values are also written to limits.txt, use redeclare package Medium to check other fluids.

Components

TypeNameDefaultDescription
Medium.ThermodynamicStatehot_diluteMedium.setState_dTX(d = DMIN, T = TMAX, phase = 1)(TMAX, DMIN): highest entropy
Medium.ThermodynamicStatecold_denseMedium.setState_dTX(d = DMAX, T = TMIN, phase = 1)(TMIN, DMAX)
Medium.SaturationPropertiessatsaturation at TMIN, solved in the algorithm
Medium.ThermodynamicStatehot_pmax(TMAX, PMAX), solved in the algorithm
Medium.ThermodynamicStatecold_pmax(TMIN, PMAX), solved in the algorithm
Medium.SaturationPropertiessat_tripsaturation at the triple point temperature, solved in the algorithm

Contents

NameDescription
Medium