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

TypeNameDefaultDescription
Q.PressureAbsolutep0U.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>
BooleanisCompressibleanyTrue({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>
BooleanhasThermalExpansionanyTrue({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

NameDescription
dp_TvDerivative of pressure as defined by pT v()
dv_TpDerivative of specific volume as defined by vT p()
p_TvPressure as a function of temperature and specific volume (pT v())
v_TpSpecific volume as a function of temperature and pressure (vT p())
betaIsothermal compressibility as a function of temperature and pressure (β)