modelRefrigerantInversions

Model to check computation of the main thermodynamic properties and theirs inverses

Extends from Modelica.Icons.Example.

Information

This example models checks the calculation of the refrigerant's main inversions depending on the independent variables pressure and temperature. Therefore, the user has first to introduce some information about the refrigerant and afterwards the different inversions are calculated. The following refrigerant's information is required:

  1. The refrigerant package that shall be tested.
  2. The refrigerant's fluid limits that are determined by the fitting procedure.

The following inversions are calculated and checked:

  1. Temperature calculated with pressure and specific enthalpy.
  2. Temperature calculated with pressure and specific entropy.
  3. Pressure calculated with density and temperature.
  4. Density calculated with pressure and specific enthalpy.
  5. Density calculated with pressure and specific entropy.
  6. Specific enthalpy calculated with density and temperature.
  7. Specific enthalpy calculated with pressure and specific entropy.

Parameters

TypeNameDefaultDescription
Fluid limits
Modelica.Units.SI.AbsolutePressurep_min1e5Fluid limit: Minimum absolute pressure
Modelica.Units.SI.AbsolutePressurep_max48e5Fluid limit: Maximum absolute pressure
Modelica.Units.SI.TemperatureT_min233.15Fluid limit: Minimum temperature
Modelica.Units.SI.TemperatureT_max340.15Fluid limit: Maximum temperature

Components

TypeNameDefaultDescription
RealconvTConversion factor for temperature to satisfy unit check
Modelica.Units.SI.TemperatureTActual temperature
Modelica.Units.SI.TemperatureTInv_hActual inverse temperature calculated with h and p
Modelica.Units.SI.TemperatureTInv_sActual inverse temperature calculated with s and p
Modelica.Units.SI.AbsolutePressurepActual pressure
Modelica.Units.SI.AbsolutePressurepInv_dActual inverse pressure calculated with d and T
Modelica.Units.SI.SpecificEnthalpyhActual enthalpy
Modelica.Units.SI.SpecificEnthalpyhInv_dActual inverse enthalpy calculated with d and T
Modelica.Units.SI.SpecificEnthalpyhInv_sActual inverse enthalpy calculated with s and p
Modelica.Units.SI.DensitydActual density
Modelica.Units.SI.DensitydInv_hActual inverse density calculated with h and p
Modelica.Units.SI.DensitydInv_sActual inverse density calculated with h and s
Modelica.Units.SI.SpecificEntropysActual specific entropy

Contents

NameDescription
MediumInternal medium model

Revisions

  • June 14, 2017, by Mirko Engelpracht, Christian Vering:
    First implementation (see issue 408).