32template <
class Scalar>
101 const Scalar A = 7.568956;
102 const Scalar B = 5.004836;
103 const Scalar C = -2.137460;
104 const Scalar D = 3.454481;
105 const Scalar epsilon = 1.514;
109 return triplePressure()*exp(X*(A + X*(B + C*X) + D*pow(1 - X, epsilon)));
203 const Scalar omega = 0.025;
205 const Scalar dipole = 0.0;
208 Scalar mu_r4 = 131.3 * dipole / sqrt(Vc * Tc);
212 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
218 1.16145*pow(Tstar, -0.14874) +
219 0.52487*exp(- 0.77320*Tstar) +
220 2.16178*exp(- 2.43787*Tstar);
240 return 8.044e-5 * (
temperature - 273.15) + 0.024486;
249template <
class Scalar>
251 {100.0, 700.0, 2000.0, 6000.0},
253 {31.32234, -20.23531, 57.86644, -36.50624, -0.007374, -8.903471, 246.7945, 0.0},
254 {30.03235, 8.772972, -3.988133, 0.788313, -0.741599, -11.32468, 236.1663, 0.0},
255 {20.91111, 10.72071, -2.020498, 0.146449, 9.245722, 5.337651, 237.6185, 0.0}
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition: components/base.hh:47
Scalar Scalar
export the scalar type used by the component
Definition: components/base.hh:51
Interface for components that have a gas state.
Definition: gas.hh:29
Properties of pure molecular oxygen .
Definition: o2.hh:36
static constexpr Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of gaseous in at a given density and temperature.
Definition: o2.hh:153
static Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of pure oxygen gas. Shomate Equation is used for a temperature range of 100K to 60...
Definition: o2.hh:166
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of pure in , depending on pressure and temperature.
Definition: o2.hh:138
static constexpr Scalar criticalTemperature()
Returns the critical temperature in of molecular oxygen.
Definition: o2.hh:58
static std::string name()
A human readable name for the .
Definition: o2.hh:46
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: o2.hh:115
static constexpr Scalar molarMass()
The molar mass in of molecular oxygen.
Definition: o2.hh:52
static Scalar vaporPressure(Scalar T)
The vapor pressure in of pure molecular oxygen at a given temperature.
Definition: o2.hh:89
static Scalar gasHeatCapacity(Scalar T, Scalar pressure)
Specific isobaric heat capacity of pure oxygen gas. Shomate Equation is used for a temperature range...
Definition: o2.hh:182
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of at a given pressure and temperature.
Definition: o2.hh:199
static const ShomateMethod shomateMethod
Shomate parameters for oxygen published by NIST https://webbook.nist.gov/cgi/cbook....
Definition: o2.hh:41
static constexpr Scalar triplePressure()
Returns the pressure in at molecular oxygen's triple point.
Definition: o2.hh:76
static constexpr Scalar criticalPressure()
Returns the critical pressure in of molecular oxygen.
Definition: o2.hh:64
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: o2.hh:144
static constexpr Scalar gasDensity(Scalar temperature, Scalar pressure)
The density in of pure at a given pressure and temperature.
Definition: o2.hh:126
static constexpr Scalar gasThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of nitrogen.
Definition: o2.hh:238
static constexpr Scalar tripleTemperature()
Returns the temperature in at molecular oxygen's triple point.
Definition: o2.hh:70
Relations valid for an ideal gas.
Definition: idealgas.hh:25
static constexpr Scalar pressure(Scalar temperature, Scalar rhoMolar)
The pressure of the gas in , depending on the molar density and temperature.
Definition: idealgas.hh:48
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:37
static constexpr Scalar molarDensity(Scalar temperature, Scalar pressure)
The molar density of the gas , depending on pressure and temperature.
Definition: idealgas.hh:58
The Shomate method to compute enthalpy and heat capacity.
Definition: shomate.hh:50
Scalar heatCapacity(const Scalar temperature) const
Return heat capacity in J/(mol*K)
Definition: shomate.hh:88
std::conditional_t< intervals==-1, std::vector< CoefficientSet >, std::array< CoefficientSet, std::size_t(intervals)> > Coefficients
Definition: shomate.hh:56
Scalar enthalpy(const Scalar temperature) const
Return enthalpy in kJ/mol.
Definition: shomate.hh:75
Base class for all components Components provide the thermodynamic relations for the liquid,...
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:39
std::string pressure(int phaseIdx) noexcept
I/O name of pressure for multiphase systems.
Definition: name.hh:22
std::string density(int phaseIdx) noexcept
I/O name of density for multiphase systems.
Definition: name.hh:53
Shomate equations for enthalpy and heat capacity.