31template <
class Scalar>
96 Scalar sqrtSigma = sqrt(sigma);
97 const Scalar N1 = -6.12445284;
99 const Scalar N3 = -0.765910082;
100 const Scalar N4 = -1.77570564;
108 sigma*(sqrtSigma*N3 +
109 sigma*sigma*sigma*N4))));
205 const Scalar cpVapA = 31.15;
206 const Scalar cpVapB = -0.01357;
207 const Scalar cpVapC = 2.680e-5;
208 const Scalar cpVapD = -1.168e-8;
235 const Scalar omega = 0.037;
237 const Scalar dipole = 0.0;
240 Scalar mu_r4 = 131.3 * dipole / sqrt(Vc * Tc);
246 Scalar Fc = 1 - 0.2756*omega + 0.059035*mu_r4;
247 Scalar Tstar = 1.2593 * temperature/Tc;
249 1.16145*pow(Tstar, -0.14874) +
250 0.52487*exp(- 0.77320*Tstar) +
251 2.16178*exp(- 2.43787*Tstar);
252 Scalar mu = 40.785*Fc*sqrt(M*temperature)/(pow(Vc, 2./3)*Omega_v);
271 return 6.525e-5 * (temperature - 273.15) + 0.024031;
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 nitrogen .
Definition n2.hh:35
static Scalar criticalTemperature()
Returns the critical temperature of molecular nitrogen.
Definition n2.hh:54
static const Scalar gasInternalEnergy(Scalar temperature, Scalar pressure)
Specific enthalpy of pure nitrogen gas.
Definition n2.hh:183
static Scalar criticalPressure()
Returns the critical pressure of molecular nitrogen.
Definition n2.hh:60
static Scalar gasViscosity(Scalar temperature, Scalar pressure)
The dynamic viscosity of at a given pressure and temperature.
Definition n2.hh:231
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar density of gas in at a given pressure and temperature.
Definition n2.hh:131
static std::string name()
A human readable name for nitrogen.
Definition n2.hh:42
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of gas at a given pressure and temperature.
Definition n2.hh:118
static constexpr Scalar molarMass()
The molar mass in of molecular nitrogen.
Definition n2.hh:48
static Scalar vaporPressure(Scalar T)
The vapor pressure in of pure molecular nitrogen at a given temperature.
Definition n2.hh:85
static Scalar gasThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of nitrogen.
Definition n2.hh:269
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition n2.hh:143
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition n2.hh:137
static const Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of pure nitrogen gas.
Definition n2.hh:164
static const Scalar gasHeatCapacity(Scalar T, Scalar pressure)
Specific isobaric heat capacity of pure nitrogen gas.
Definition n2.hh:201
static Scalar tripleTemperature()
Returns the temperature at molecular nitrogen's triple point.
Definition n2.hh:66
static Scalar gasPressure(Scalar temperature, Scalar density)
The pressure of gaseous in at a given density and temperature.
Definition n2.hh:152
static Scalar triplePressure()
Returns the pressure at molecular nitrogen's triple point.
Definition n2.hh:72
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 R
The ideal gas constant .
Definition idealgas.hh:28
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
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.