modelPerfectGasDerivativeCheck

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

Information

This example checks whether the function derivative is implemented correctly. If the derivative implementation is not correct, the model will stop with an assert statement.

Parameters

TypeNameDefaultDescription
RealconvT270Conversion factor to satisfy unit check

Components

TypeNameDefaultDescription
Modelica.Units.SI.TemperatureTTemperature
Modelica.Units.SI.SpecificEnthalpyhLiqSymLiquid phase enthalpy
Modelica.Units.SI.SpecificEnthalpyhLiqCodLiquid phase enthalpy
Modelica.Units.SI.SpecificEnthalpyhSteSymWater vapor enthalpy
Modelica.Units.SI.SpecificEnthalpyhSteCodWater vapor enthalpy
Modelica.Units.SI.SpecificEnthalpyhAirSymDry air enthalpy
Modelica.Units.SI.SpecificEnthalpyhAirCodDry air enthalpy

Contents

NameDescription
Medium

Revisions

  • August 17, 2015, by Michael Wetter:
    Changed regression test to have slope different from one. This is for issue 303.
  • May 12, 2008, by Michael Wetter:
    First implementation.