modelInverse_sh_TX

Solve h = h_pTX(p, T, X), s = s_pTX(p, T, X) for T, if h or s is given

Extends from Modelica.Icons.Example.

Information

Parameters

TypeNameDefaultDescription
SI.TemperatureT_min300Vary temperature linearly from T_min (time=0) up to T_max (time=1)
SI.TemperatureT_max500Vary temperature linearly from T_min (time=0) up to T_max (time=1)
SI.Pressurep1.0e5Fixed pressure in model
SI.MassFractionXThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.reference_XMass fraction vector
SI.SpecificEnthalpyh_minThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.specificEnthalpy(ThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.setState_pTX(p, T_min, X))Specific enthalpy at T_min
SI.SpecificEnthalpyh_maxThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.specificEnthalpy(ThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.setState_pTX(p, T_max, X))Specific enthalpy at T_max
SI.SpecificEntropys_minThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.specificEntropy(ThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.setState_pTX(p, T_min, X))Specific entropy at T_min
SI.SpecificEntropys_maxThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.specificEntropy(ThermofluidStream.Media.myMedia.Air.ReferenceMoistAir.setState_pTX(p, T_max, X))Specific entropy at T_max

Components

TypeNameDefaultDescription
SI.SpecificEnthalpyh1Pre-defined specific enthalpy
SI.SpecificEnthalpyh2Specific enthalpy computed from T (= h1 required)
SI.SpecificEntropys1Pre-defined specific entropy
SI.SpecificEntropys2Specific entropy computed from T (= h1 required)
SI.TemperatureThTemperature computed from h1
SI.TemperatureTsTemperature computed from s1