modelSteamDerivativeCheck

Model that tests the derivative implementation

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.SpecificEnthalpyhVapSymVapor phase specific enthalpy
Modelica.Units.SI.SpecificEnthalpyhVapCodVapor phase specific enthalpy
Modelica.Units.SI.SpecificHeatCapacitycpSymSpecific heat capacity
Modelica.Units.SI.SpecificHeatCapacitycpCodSpecific heat capacity
Modelica.Units.SI.SpecificHeatCapacitycvSymSpecific heat capacity
Modelica.Units.SI.SpecificHeatCapacitycvCodSpecific heat capacity

Contents

NameDescription
MediumMedim model

Revisions

  • March 16, 2020, by Michael Wetter:
    Changed to relative plus absolute error check in assertion because the specific enthalpy has a magnitude of 1E6, which causes the assertion to fail in JModelica if an absolute accuracy of 1E-2 is requested.
  • March 6, 2020, by Kathryn Hinkelman:
    First implementation.