packageCharacteristicEOS
Base thermodynamic package with only the p-v-T relations
Extends from Modelica.Icons.MaterialPropertiesPackage (Icon for package containing property classes).
Information
This package may be used with the assumption of ideal gas or of constant specific volume, although it is more general than that.
Notes regarding the constants:
- bv: The powers of p/T increase by row. The powers of
T increase by column. If
n_v[1] == -1, then the rows of bv correspond to 1, B*T, C*T2, D*T3, …, where 1, B*, C*, and D* are the first, second, third, and fourth coefficients in the volume-explicit virial equation of state [Dymond2002, pp. 1–2]. Currently, virial equations of state are supported up to the fourth coefficient (D*). If additional terms are required, review and modify the definition of bp. - The defaults for bv and nv represent ideal gas.
Parameters
| Type | Name | Default | Description |
|---|---|---|---|
| Q.PressureAbsolute | p0 | U.bar | <html>Reference pressure (<i>p</i><sup>o</sup>)</html> |
| Integer[2] | n_v | {-1, 0} | <html>Powers of <i>p</i>/<i>T</i> and <i>T</i> for 1<sup>st</sup> row and column of <i>b</i><sub><i>v</i></sub> (<i>n</i><sub><i>v</i></sub>)</html> |
| Real[:,:] | b_v | [1] | <html>Coefficients for specific volume as a polynomial in <i>p</i>/<i>T</i> and <i>T</i> (<i>b</i><sub><i>v</i></sub>)</html> |
| Boolean | isCompressible | anyTrue({anyTrue({abs(b_v[i, j]) > Modelica.Constants.small and n_v[1] + i - 1 <> 0 for i in 1:size(b_v, 1)}) for j in 1:size(b_v, 2)}) | <html><code>true</code>, if density depends on pressure</html> |
| Boolean | hasThermalExpansion | anyTrue({anyTrue({abs(b_v[i, j]) > Modelica.Constants.small and n_v[2] + j - n_v[1] - i <> 0 for i in 1:size(b_v, 1)}) for j in 1:size(b_v, 2)}) | <html><code>true</code>, if density depends on temperature</html> |
Contents
| Name | Description |
|---|---|
| Derivative of pressure as defined by pT v() | |
| Derivative of specific volume as defined by vT p() | |
| Pressure as a function of temperature and specific volume (pT v()) | |
| Specific volume as a function of temperature and pressure (vT p()) | |
| Isothermal compressibility as a function of temperature and pressure (β) |