recordThermodynamicStatePropertiesBaseDataDefinition

Base data definition for fitting coefficients of thermodynamic state properties

Extends from Modelica.Icons.Record (Icon for records).

Information

This record is a base data definition for fitting coefficients of the thermodynamic state properties depending on two independent state variables. These thermodynamic state properties are given as fitted formulas in order to reduce the overall computing time of the refrigerant model. Therefore, the fitting approach is based on "Fast_Propane" model developed by Sangi et al..

Sangi et al. used the following fitting approaches, which are also implemented within AixLib.Media.Refrigerants.Interfaces.TemplateHybridTwoPhaseMediumRecord:

"Formulas for calculating thermodynamic properties" cellspacing="0" cellpadding="3" border="1" width="80%" style= "border-collapse:collapse;">

Temperature_ph

First Input

First input required to calculate temperature by pressure and specific enthalpy

Second Input

Second input required to calculate temperature by pressure and specific enthalpy

Temperature_ps

First Input

First input required to calculate temperature by pressure and specific entropy

Second Input

Second input required to calculate temperature by pressure and specific entropy

Density_pT

First Input

First input required to calculate density by pressure and temperature

Second Input

Second input required to calculate density by pressure and temperature

Functional approach

Functional approach of calculating supercooled and superheated region

As it can be seen, the fitted formulas consist basically of the coefficient ci as well as of the parameters Meani and Stdi. These coefficients are the fitting coefficients and must be obtained during a fitting procedure. While the fitting procedure, the formulas presented above are fitted to external data (e.g. obtained from measurements or external media libraries) and the fitting coefficients are determined.

Assumptions and limitations

The fitting procedure is performed for a predefined range of the external data that is given in terms of, for example, temperature and pressure. As a consequence, the fitting coefficients are also just valid within the predefined range of external data.

References

Sangi, Roozbeh; Jahangiri, Pooyan; Klasing, Freerk; Streblow, Rita; Müller, Dirk (2014): A Medium Model for the Refrigerant Propane for Fast and Accurate Dynamic Simulations. In: The 10th International Modelica Conference. Lund, Sweden, March 10-12, 2014: Linköping University Electronic Press (Linköping Electronic Conference Proceedings), S. 1271–1275

Parameters

TypeNameDefaultDescription
General
StringnameShort description of the record
Temperature_ph
Integer[:]T_phNtPolynomial order for p (SC) | Polynomial order for h (SC) | Total number of terms (SC) | Polynomial order for p (SH) | Polynomial order for h (SH) | Total number of terms (SH)
Real[:]Tl_phACoefficients a for supercooled regime
Real[:]Tl_phBCoefficients b for supercooled regime
Real[:]Tl_phCCoefficients c for supercooled regime
Real[:]Tl_phDCoefficient d for supercooled regime
Real[:]Tv_phACoefficients a for superheated regime
Real[:]Tv_phBCoefficients b for superheated regime
Real[:]Tv_phCCoefficients c for superheated regime
Real[:]Tv_phDCoefficient d for superheated regime
Real[:]T_phIOMean SC p | Std SC p | Mean SC h | Std SC h | Mean SC T | Std SC T | Mean SH p | Std SH p | Mean SH h | Std SH h | Mean SH T | Std SH T
Temperature_ps
Integer[:]T_psNtPolynomial order for p (SC) | Polynomial order for s (SC) | Total number of terms (SC) | Polynomial order for p (SH) | Polynomial order for s (SH) | Total number of terms (SH)
Real[:]Tl_psACoefficients a for supercooled regime
Real[:]Tl_psBCoefficients b for supercooled regime
Real[:]Tl_psCCoefficients c for supercooled regime
Real[:]Tl_psDCoefficient d for supercooled regime
Real[:]Tv_psACoefficients a for superheated regime
Real[:]Tv_psBCoefficients b for superheated regime
Real[:]Tv_psCCoefficients c for superheated regime
Real[:]Tv_psDCoefficient d for superheated regime
Real[:]T_psIOMean SC p | Std SC p | Mean SC s | Std SC s | Mean SC T | Std SC T | Mean SH p | Std SH p | Mean SH s | Std SH s | Mean SH T | Std SH T
Density_pT
Integer[:]d_pTNtPolynomial order for p (SC) | Polynomial order for T (SC) | Total number of terms (SC) | Polynomial order for p (SH) | Polynomial order for T (SH) | Total number of terms (SH)
Real[:]dl_pTACoefficients a for supercooled regime
Real[:]dl_pTBCoefficients b for supercooled regime
Real[:]dl_pTCCoefficients c for supercooled regime
Real[:]dl_pTDCoefficient d for supercooled regime
Real[:]dv_pTACoefficients a for superheated regime
Real[:]dv_pTBCoefficients b for superheated regime
Real[:]dv_pTCCoefficients c for superheated regime
Real[:]dv_pTDCoefficient d for superheated regime
Real[:]d_pTIOMean SC p | Std SC p | Mean SC T | Std SC T | Mean SC d | Std SC d | Mean SH p | Std SH p | Mean SH T | Std SH T | Mean SH d | Std SH d

Revisions

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