43template <
class Scalar>
61 {
return 2.01588e-3; }
102 const Scalar A = -7.76451;
104 const Scalar C = -2.77580;
182 const Scalar cpVapA = 27.14;
183 const Scalar cpVapB = 9.273e-3;
184 const Scalar cpVapC = -1.381e-5;
185 const Scalar cpVapD = 7.645e-9;
211 const Scalar omega = -0.216;
213 const Scalar dipole = 0.0;
216 Scalar mu_r4 = 131.3 * dipole / sqrt(Vc * Tc);
222 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
225 1.16145*pow(Tstar, -0.14874) +
226 0.52487*exp(- 0.77320*Tstar) +
227 2.16178*exp(- 2.43787*Tstar);
Interface for components that have a gas state.
Relations valid for an ideal gas.
std::string temperature() noexcept
I/O name of temperature for equilibrium models.
Definition: name.hh:51
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:34
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:65
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:59
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:63
Interface for components that have a gas state.
Definition: gas.hh:41
Properties of pure molecular hydrogen .
Definition: h2.hh:47
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of pure hydrogen gas.
Definition: h2.hh:161
static Scalar criticalTemperature()
Returns the critical temperature of molecular hydrogen.
Definition: h2.hh:66
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of in , depending on pressure and temperature.
Definition: h2.hh:128
static std::string name()
A human readable name for the .
Definition: h2.hh:54
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: h2.hh:134
static constexpr Scalar molarMass()
The molar mass in of molecular hydrogen.
Definition: h2.hh:60
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of at a given pressure and temperature.
Definition: h2.hh:116
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: h2.hh:140
static Scalar vaporPressure(Scalar temperature)
The vapor pressure in of pure molecular hydrogen at a given temperature.
Definition: h2.hh:93
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of at a given pressure and temperature.
Definition: h2.hh:207
static Scalar criticalPressure()
Returns the critical pressure of molecular hydrogen.
Definition: h2.hh:72
static Scalar tripleTemperature()
Returns the temperature at molecular hydrogen's triple point.
Definition: h2.hh:78
static Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of gaseous in at a given density and temperature.
Definition: h2.hh:149
static const Scalar gasHeatCapacity(Scalar T, Scalar pressure)
Specific isobaric heat capacity of pure hydrogen gas.
Definition: h2.hh:178
Relations valid for an ideal gas.
Definition: idealgas.hh:37
static constexpr Scalar pressure(Scalar temperature, Scalar rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition: idealgas.hh:60
static constexpr Scalar density(Scalar avgMolarMass, Scalar temperature, Scalar pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas.
Definition: idealgas.hh:49
static constexpr Scalar molarDensity(Scalar temperature, Scalar pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: idealgas.hh:70
Base class for all components Components provide the thermodynamic relations for the liquid,...