modelInverseIncompressible_sh_T
Inverse computation for incompressible media
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.Incompressible.TableBased.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.Incompressible.TableBased.s_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
| Type | Name | Default | Description |
|---|---|---|---|
| SI.Temperature | T_min | Medium.T_min | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
| SI.Temperature | T_max | Medium.T_max | Vary temperature linearly from T_min (time=0) up to T_max (time=1) |
| SI.Pressure | p | 1.0e5 | Fixed pressure in model |
| SI.SpecificEnthalpy | h_min | Medium.h_T(Medium.T_min) | Specific enthalpy at T_min |
| SI.SpecificEnthalpy | h_max | Medium.h_T(Medium.T_max) | Specific enthalpy at T_max |
| SI.SpecificEntropy | s_min | Medium.specificEntropy(Medium.setState_pT(p, T_min)) | Specific entropy at T_min |
| SI.SpecificEntropy | s_max | Medium.specificEntropy(Medium.setState_pT(p, T_max)) | Specific entropy at T_max |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| SI.SpecificEnthalpy | h1 | Pre-defined specific enthalpy | |
| SI.SpecificEnthalpy | h2 | Specific enthalpy computed from Th (= h1 required) | |
| SI.SpecificEntropy | s1 | Pre-defined specific entropy | |
| SI.SpecificEntropy | s2 | Specific entropy computed from Ts (= s1 required) | |
| SI.Temperature | Th | Temperature computed from h1 | |
| SI.Temperature | Ts | Temperature computed from s1 |
Contents
| Name | Description |
|---|---|
| Medium model |