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

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureT0 (from TestTemperatureEnthalpyInversion)273.15 + 20Temperature
Realtol (from TestTemperatureEnthalpyInversion)1E-8Numerical tolerance

Components

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureT (from TestTemperatureEnthalpyInversion)Temperature
Modelica.Units.SI.SpecificEnthalpyh (from TestTemperatureEnthalpyInversion)Enthalpy
Medium.MassFraction[:]Xi (from TestTemperatureEnthalpyInversion)Medium.reference_XMass fraction

Revisions

  • November 21, 2013, by Michael Wetter:
    First implementation.