modelPerfectGasTemperatureEnthalpyInversion
Model to check computation of h(T) and its inverse
Extends from Modelica.Icons.Example (Icon for runnable examples), Buildings.Media.Examples.BaseClasses.TestTemperatureEnthalpyInversion (Model to check computation of h(T) and its inverse with a controlleable tolerance).
Information
This model tests whether the inversion of temperature and enthalpy is implemented correctly. If T ≠ T(h(T)), the model stops with an error.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Temperature | T0 (from TestTemperatureEnthalpyInversion) | 273.15 + 20 | Temperature |
| Real | tol (from TestTemperatureEnthalpyInversion) | 1E-8 | Numerical tolerance |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Temperature | T (from TestTemperatureEnthalpyInversion) | Temperature | |
| Modelica.Units.SI.SpecificEnthalpy | h (from TestTemperatureEnthalpyInversion) | Enthalpy | |
| Medium.MassFraction[:] | Xi (from TestTemperatureEnthalpyInversion) | Medium.reference_X | Mass fraction |
Revisions
-
November 21, 2013, by Michael Wetter:
First implementation.