modelRefrigerantsFittedFormulasR134a

Model that checks the fitted formulas of R134a

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example models checks the implementation of the refrigerant's fitted formulas depending on the independent variables density and temperature. Therefore, the user has first to introduce some information about the refrigerant and afterwards the fitted formulas 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 refrigerant's fitted formulas are calculated and checked:

  1. Calculation of the Helmholtz equation of state.
  2. Calculation of the saturation properties.
  3. Calculation of further state propeties like the density depending on pressure and temperature.

Additionally, the fitted formulas are also calculated with an external media libary (i.e. HelmholtzMedia). Therefore, the parameters are not allowed to change (except for the medium package).

  • August 13, 2017, by Mirko Engelpracht:
    First implementation (see issue 408).

Parameters

TypeNameDefaultDescription
Fluid limits
Modelica.Units.SI.SpecificEnthalpyh_min180e3Fluid limit: Minimum specific enthalpy
Modelica.Units.SI.SpecificEnthalpyh_max550e3Fluid limit: Maximum specific enthalpy
Modelica.Units.SI.SpecificEntropys_min1.0e3Fluid limit: Minimum specific entropy
Modelica.Units.SI.SpecificEntropys_max1.8e3Fluid limit: Maximum specific entropy
Modelica.Units.SI.Densityd_min2.0Fluid limit: Minimum density
Modelica.Units.SI.Densityd_max1425Fluid limit: Maximum density
Modelica.Units.SI.AbsolutePressurep_min1e5Fluid limit: Minimum absolute pressure
Modelica.Units.SI.AbsolutePressurep_max38.5e5Fluid limit: Maximum absolute pressure
Modelica.Units.SI.TemperatureT_min233.15Fluid limit: Minimum temperature
Modelica.Units.SI.TemperatureT_max455.15Fluid limit: Maximum temperature

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.CombiTimeTableextPropTable that contains the results of the external media library
RealconvTConversion factor in K/s for temperature to satisfy unit check
RealconvDConversion factor in kg/m³/s for density to satisfy unit check
RealconvHConversion factor in J/kg/s for specific enthalpy to satisfy unit check
RealconvSConversion factor in J/kg/K/s for specific entropy to satisfy unit check
Modelica.Units.SI.AbsolutePressurep_satActual pressure for calculating saturation properties
Modelica.Units.SI.TemperatureTActual pulsating temperature
Modelica.Units.SI.TemperatureT_satActual temperature for calculating saturation properties
Modelica.Units.SI.DensitydActual raising density
Modelica.Units.SI.SpecificEnthalpyhActual pulsating specific enthalpy for calculating state properties
Modelica.Units.SI.SpecificEntropysActual pulsating specific enthalpy for calculating state properties
RealtauIntActual dimensionless temperature of internal medium
RealdeltaIntActual dimensionless density of internal medium
EoSeosRecord that contains calculated properties of the EoS
SaturationsaturationRecord that contains calculated saturation properties
PropertiespropertiesRecord that contains calculated state properties

Contents

NameDescription
MediumIntInternal medium model
EoSRecord that contains calculated properties of the EoS
SaturationRecord that contains calculated saturation properties
PropertiesRecord that contains state properties