modelInverse_sh_TX

Solve h = h_TX(TX) for T, if h is given for ideal gas NASA

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This models computes the temperature Th for predefined specific enthalpy h1 via numerical inversion of function Modelica.Media.IdealGases.Common.Functions.h_T. The specific enthalpy h2 is computed as check variable from temperature Th and must be identical to h1.

In an analogous manner, the temperature Ts is computed for predefined specific entropy s1 via numerical inversion of function Modelica.Media.IdealGases.Common.Functions.s0_T. The specific entropy s2 is computed as check variable from temperature Ts and must be identical to s1.

The numerical computation of the inverse function is performed by function Modelica.Math.Nonlinear.solveOneNonlinearEquation in both cases.

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.SpecificEnthalpyh_minMedium.h_TX(T_min, X)Specific enthalpy at T_min
SI.SpecificEnthalpyh_maxMedium.h_TX(T_max, X)Specific enthalpy at T_max
SI.SpecificEntropys_minMedium.specificEntropy(Medium.setState_pTX(p, T_min, Medium.reference_X))Specific entropy at T_min
SI.SpecificEntropys_maxMedium.specificEntropy(Medium.setState_pTX(p, T_max, Medium.reference_X))Specific entropy at T_max
SI.MassFractionXMedium.reference_XMass fraction vector

Components

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

Contents

NameDescription
Medium