recordHelmholtzEquationOfStateBaseDateDefinition
Extends from Modelica.Icons.Record (Icon for records).
Information
This record is a base data definition for fitting coefficients of the Helmholtz equation of state (EoS). The EoS allows the accurate description of fluids' thermodynamic behaviour and uses the Helmholtz energy as fundamental thermodynamic relation with temperature and density as independent variables. The general formula of the EoS as it is implemented within AixLib.Media.Refrigerants.Interfaces.TemplateHybridTwoPhaseMediumRecord is given below:
As it can be seen, the general formula of the EoS can be divided in two part: The ideal gas part and the residual part. Both parts' formulas are given below:
Both, the ideal gas part and the residual part can be divided in three subparts (i.e. the summations) that contain different coefficients (e.g. nL, li, pi or ei). These coefficients are the fitting coefficients and must be obtained during a fitting procedure. While the fitting procedure, the general formula of the EoS is 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. Therefore, all other thermodynamic state properties are also just defined within a certain predefined range and, as a consequence, the fitting coefficients are also just valid within the predefined range of Helmholtz energy.
References
Thorade, Matthis; Saadat, Ali (2012): HelmholtzMedia - A fluid properties library. In: Proceedings of the 9th International Modelica Conference; September 3-5; 2012; Munich; Germany. Linköping University Electronic Press, S. 63–70.
Thorade, Matthis; Saadat, Ali (2013): Partial derivatives of thermodynamic state properties for dynamic simulation. In: Environmental earth sciences 70 (8), S. 3497–3503.
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
| Type | Name | Default | Description |
|---|---|---|---|
| General | |||
| String | name | Short description of the record | |
| Ideal gas part | |||
| Integer | f_IdgNl | Number of terms of the equation's (alpha_0) first part | |
| Real[:] | f_IdgL1 | First coefficient of the equation's (alpha_0) first part | |
| Real[:] | f_IdgL2 | Second coefficient of the equation's (alpha_0) first part | |
| Integer | f_IdgNp | Number of terms of the equation's (alpha_0) second part | |
| Real[:] | f_IdgP1 | First coefficient of the equation's (alpha_0) second part | |
| Real[:] | f_IdgP2 | Second coefficient of the equation's (alpha_0) second part | |
| Integer | f_IdgNe | Number of terms of the equation's (alpha_0) third part | |
| Real[:] | f_IdgE1 | First coefficient of the equation's (alpha_0) third part | |
| Real[:] | f_IdgE2 | Second coefficient of the equation's (alpha_0) third part | |
| Residual part | |||
| Integer | f_ResNp | Number of terms of the equation's (alpha_r) first part | |
| Real[:] | f_ResP1 | First coefficient of the equation's (alpha_r) first part | |
| Real[:] | f_ResP2 | Second coefficient of the equation's (alpha_r) first part | |
| Real[:] | f_ResP3 | Third coefficient of the equation's (alpha_r) first part | |
| Integer | f_ResNb | Number of terms of the equation's (alpha_r) second part | |
| Real[:] | f_ResB1 | First coefficient of the equation's (alpha_r) second part | |
| Real[:] | f_ResB2 | Second coefficient of the equation's (alpha_r) second part | |
| Real[:] | f_ResB3 | Third coefficient of the equation's (alpha_r) second part | |
| Real[:] | f_ResB4 | Fourth coefficient of the equation's (alpha_r) second part | |
| Integer | f_ResNG | Number of terms of the equation's (alpha_r) third part | |
| Real[:] | f_ResG1 | First coefficient of the equation's (alpha_r) third part | |
| Real[:] | f_ResG2 | Second coefficient of the equation's (alpha_r) third part | |
| Real[:] | f_ResG3 | Third coefficient of the equation's (alpha_r) third part | |
| Real[:] | f_ResG4 | Fourth coefficient of the equation's (alpha_r) third part | |
| Real[:] | f_ResG5 | Fifth coefficient of the equation's (alpha_r) third part | |
| Real[:] | f_ResG6 | Sixth coefficient of the equation's (alpha_r) third part | |
| Real[:] | f_ResG7 | Seventh coefficient of the equation's (alpha_r) third part | |
Revisions
- June 9, 2017, by Mirko Engelpracht, Christian Vering:
First implementation (see issue 408).