Model that tests the implementation of the refrigerant properties
This example models checks the implementation of the
refrigerant's thermophysical properties depending on the
independent variables pressure and temperature. Therefore, the user
has first to introduce some information about the refrigerant and
afterwards the thermophysical properties are calculated. The
following refrigerant's information is required:
- The refrigerant package that shall be tested.
- The way of calculating the thermophysical properties.
Therefore, the user can choose between either (wayOfCalc = true) a
slowly raising pressure from pmin to pmax and
a fast pulsating temperature from Tmin to
Tmax or (wayOfCalc = false) a fast pulsating pressure
from pmin to pmax and a slowly raising
temperature from Tmin to Tmax. In both modes,
the overall simulating time is set to 6400 s and, hence, the slowly
raising property will reach its maximum value after 6400 s. The
fast pulsating property will reach its maximum value after 80
s.
- The refrigerant's fluid limits that are determined by
the fitting procedure.
The following refrigerant's thermophysical properties are
calculated and checked:
- Calculation of basic properties like the specific enthalpy or
density using pressure and temperature.
- Calculation of saturation properties using both pressure and
temperature. The results of both calculations are compared to each
other.
- Calculation of the "setState"-functions and comparing the
results to the "setState_pT"-results.
- Calculation of furhter properties like the thermal conductivity
or isothermal compressbility.
Additionally, the "setState"-functions' absolute and relative
errors compared to the "setState_pT"-results are
calculated.
Contents
| Name |
Description |
Medium |
Internal medium model |
ThermodynamicProperties |
Records that contains furhter thermodynamic properties |
StateErrors |
Record that contains errors occuring using the different
setState functions |
- June 13, 2017, by Mirko Engelpracht, Christian Vering:
First implementation (see issue
408).
Generated at 2026-04-08T18:18:28Z by OpenModelicaOpenModelica 1.26.3 using
GenerateDoc.mos