43template <
class Scalar>
109 const Scalar A = 7.568956;
110 const Scalar B = 5.004836;
111 const Scalar C = -2.137460;
112 const Scalar D = 3.454481;
113 const Scalar epsilon = 1.514;
117 return triplePressure()*exp(X*(A + X*(B + C*X) + D*pow(1 - X, epsilon)));
194 const Scalar cpVapA = 28.11;
195 const Scalar cpVapB = -3.680e-6;
196 const Scalar cpVapC = 1.746e-5;
197 const Scalar cpVapD = -1.065e-8;
221 const Scalar omega = 0.025;
223 const Scalar dipole = 0.0;
226 Scalar mu_r4 = 131.3 * dipole / sqrt(Vc * Tc);
230 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
236 1.16145*pow(Tstar, -0.14874) +
237 0.52487*exp(- 0.77320*Tstar) +
238 2.16178*exp(- 2.43787*Tstar);
258 return 8.044e-5 * (
temperature - 273.15) + 0.024486;
Interface for components that have a gas state.
Relations valid for an ideal gas.
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
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
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:41
Properties of pure molecular oxygen .
Definition: o2.hh:47
static constexpr Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of gaseous in at a given density and temperature.
Definition: o2.hh:161
static Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of pure oxygen gas.
Definition: o2.hh:173
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of pure in , depending on pressure and temperature.
Definition: o2.hh:146
static constexpr Scalar criticalTemperature()
Returns the critical temperature in of molecular oxygen.
Definition: o2.hh:66
static std::string name()
A human readable name for the .
Definition: o2.hh:54
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition: o2.hh:123
static constexpr Scalar molarMass()
The molar mass in of molecular oxygen.
Definition: o2.hh:60
static Scalar vaporPressure(Scalar T)
The vapor pressure in of pure molecular oxygen at a given temperature.
Definition: o2.hh:97
static Scalar gasHeatCapacity(Scalar T, Scalar pressure)
Specific isobaric heat capacity of pure oxygen gas.
Definition: o2.hh:190
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of at a given pressure and temperature.
Definition: o2.hh:217
static constexpr Scalar triplePressure()
Returns the pressure in at molecular oxygen's triple point.
Definition: o2.hh:84
static constexpr Scalar criticalPressure()
Returns the critical pressure in of molecular oxygen.
Definition: o2.hh:72
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition: o2.hh:152
static constexpr Scalar gasDensity(Scalar temperature, Scalar pressure)
The density in of pure at a given pressure and temperature.
Definition: o2.hh:134
static constexpr Scalar gasThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of nitrogen.
Definition: o2.hh:256
static constexpr Scalar tripleTemperature()
Returns the temperature in at molecular oxygen's triple point.
Definition: o2.hh:78
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,...