modelAirDerivativeCheck
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
| Type | Name | Default | Description |
|---|---|---|---|
| Real | convT | 270 | Conversion factor to satisfy unit check |
| Real | convX | 0.01 | Conversion factor to satisfy unit check |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.Units.SI.Temperature | T | Temperature | |
| Modelica.Units.SI.MassFraction[1] | X | Water vapor mass fraction | |
| Modelica.Units.SI.SpecificEnthalpy | hLiqSym | Liquid phase enthalpy | |
| Modelica.Units.SI.SpecificEnthalpy | hLiqCod | Liquid phase enthalpy | |
| Modelica.Units.SI.SpecificEnthalpy | hSteSym | Water vapor enthalpy | |
| Modelica.Units.SI.SpecificEnthalpy | hSteCod | Water vapor enthalpy | |
| Modelica.Units.SI.SpecificEnthalpy | hAirSym | Dry air enthalpy | |
| Modelica.Units.SI.SpecificEnthalpy | hAirCod | Dry air enthalpy | |
| Modelica.Units.SI.SpecificHeatCapacity | cpSym | Specific heat capacity | |
| Modelica.Units.SI.SpecificHeatCapacity | cpCod | Specific heat capacity | |
| Modelica.Units.SI.SpecificHeatCapacity | cvSym | Specific heat capacity | |
| Modelica.Units.SI.SpecificHeatCapacity | cvCod | Specific heat capacity |
Contents
| Name | Description |
|---|---|
Revisions
-
August 17, 2015, by Michael Wetter:
Changed regression test to have slope different from one. This is for issue 303. -
November 20, 2013, by Michael Wetter:
Removed check ofenthalpyOfDryAiras this function is protected and should therefore not be accessed from outside the class. -
May 12, 2008, by Michael Wetter:
First implementation.