.AixLib.Media.Refrigerants.Examples.RefrigerantProperties

Information

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:

  1. The refrigerant package that shall be tested.
  2. 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.
  3. The refrigerant's fluid limits that are determined by the fitting procedure.

The following refrigerant's thermophysical properties are calculated and checked:

  1. Calculation of basic properties like the specific enthalpy or density using pressure and temperature.
  2. Calculation of saturation properties using both pressure and temperature. The results of both calculations are compared to each other.
  3. Calculation of the "setState"-functions and comparing the results to the "setState_pT"-results.
  4. 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

NameDescription
 MediumInternal medium model
 ThermodynamicPropertiesRecords that contains furhter thermodynamic properties
 StateErrorsRecord that contains errors occuring using the different setState functions

Revisions


Generated at 2024-11-26T19:26:15Z by OpenModelicaOpenModelica 1.24.2 using GenerateDoc.mos