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:
- The refrigerant package that shall be tested.
- The refrigerant's fluid limits that are determined by the fitting procedure.
The following inversions are calculated and checked:
- Temperature calculated with pressure and specific enthalpy.
- Temperature calculated with pressure and specific entropy.
- Pressure calculated with density and temperature.
- Density calculated with pressure and specific enthalpy.
- Density calculated with pressure and specific entropy.
- Specific enthalpy calculated with density and temperature.
- Specific enthalpy calculated with pressure and specific entropy.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Fluid limits | |||
| Modelica.Units.SI.AbsolutePressure | p_min | 1e5 | Fluid limit: Minimum absolute pressure |
| Modelica.Units.SI.AbsolutePressure | p_max | 48e5 | Fluid limit: Maximum absolute pressure |
| Modelica.Units.SI.Temperature | T_min | 233.15 | Fluid limit: Minimum temperature |
| Modelica.Units.SI.Temperature | T_max | 340.15 | Fluid limit: Maximum temperature |
Components
| Type | Name | Default | Description |
|---|---|---|---|
| Real | convT | Conversion factor for temperature to satisfy unit check | |
| Modelica.Units.SI.Temperature | T | Actual temperature | |
| Modelica.Units.SI.Temperature | TInv_h | Actual inverse temperature calculated with h and p | |
| Modelica.Units.SI.Temperature | TInv_s | Actual inverse temperature calculated with s and p | |
| Modelica.Units.SI.AbsolutePressure | p | Actual pressure | |
| Modelica.Units.SI.AbsolutePressure | pInv_d | Actual inverse pressure calculated with d and T | |
| Modelica.Units.SI.SpecificEnthalpy | h | Actual enthalpy | |
| Modelica.Units.SI.SpecificEnthalpy | hInv_d | Actual inverse enthalpy calculated with d and T | |
| Modelica.Units.SI.SpecificEnthalpy | hInv_s | Actual inverse enthalpy calculated with s and p | |
| Modelica.Units.SI.Density | d | Actual density | |
| Modelica.Units.SI.Density | dInv_h | Actual inverse density calculated with h and p | |
| Modelica.Units.SI.Density | dInv_s | Actual inverse density calculated with h and s | |
| Modelica.Units.SI.SpecificEntropy | s | Actual specific entropy |
Contents
| Name | Description |
|---|---|
| Medium | Internal medium model |
Revisions
- June 14, 2017, by Mirko Engelpracht, Christian Vering:
First implementation (see issue 408).