46template <
class Scalar>
50 typedef ::Opm::IdealGas<Scalar>
IdealGas;
56 static std::string_view
name()
81 {
throw std::runtime_error(
"Not implemented: tripleTemperature for xylene"); }
87 {
throw std::runtime_error(
"Not implemented: triplePressure for xylene"); }
95 template <
class Evaluation>
98 const Scalar A = 7.00909;;
99 const Scalar B = 1462.266;;
100 const Scalar C = 215.110;;
102 return 100*1.334*pow(10.0, (A - (B/(temperature - 273.15 + C))));
113 template <
class Evaluation>
116 Evaluation CH3,C6H5,H;
121 if(temperature < 298.0){
122 H = 13.4 + 1.2*(temperature - 273.0)/25.0;
123 CH3 = 40.0 + 1.6*(temperature - 273.0)/25.0;
124 C6H5 = 113.0 + 4.2*(temperature - 273.0)/25.0;
126 else if(temperature < 323.0){
127 H = 14.6 + 0.9*(temperature - 298.0)/25.0;
128 CH3 = 41.6 + 1.9*(temperature - 298.0)/25.0;
129 C6H5 = 117.2 + 6.2*(temperature - 298.0)/25.0;
131 else if(temperature < 348.0){
132 H = 15.5 + 1.2*(temperature - 323.0)/25.0;
133 CH3 = 43.5 + 2.3*(temperature - 323.0)/25.0;
134 C6H5 = 123.4 + 6.3*(temperature - 323.0)/25.0;
137 H = 16.7 + 2.1*(temperature - 348.0)/25.0;
138 CH3 = 45.8 + 2.5*(temperature - 348.0)/25.0;
139 C6H5 = 129.7 + 6.3*(temperature - 348.0)/25.0;
149 template <
class Evaluation>
150 static Evaluation
liquidEnthalpy(
const Evaluation& temperature,
const Evaluation& pressure)
181 template <
class Evaluation>
182 static Evaluation
heatVap(Evaluation temperature,
186 temperature = max(temperature, 0.0);
193 const Scalar DH_v_boil =
Consts::R * T_crit * Tr1
194 * (3.978 * Tr1 - 3.958 + 1.555*std::log(p_crit * 1e-5 ) )
199 const Scalar n = 0.375;
200 const Evaluation& DH_vap = DH_v_boil * pow(((1.0 - Tr2)/(1.0 - Tr1)), n);
211 template <
class Evaluation>
212 static Evaluation
gasEnthalpy(
const Evaluation& temperature,
const Evaluation& pressure)
220 template <
class Evaluation>
221 static Evaluation
gasDensity(
const Evaluation& temperature,
const Evaluation& pressure)
232 template <
class Evaluation>
233 static Evaluation
molarGasDensity(
const Evaluation& temperature,
const Evaluation& pressure)
247 template <
class Evaluation>
253 temperature = min(temperature, 500.0);
254 temperature = max(temperature, 250.0);
256 const Scalar A1 = 0.25919;
257 const Scalar A2 = 0.0014569;
259 return 1.0/(A2*pow(A1, expo));
265 template <
class Evaluation>
266 static Evaluation
liquidDensity(
const Evaluation& temperature,
const Evaluation& pressure)
290 template <
class Evaluation>
291 static Evaluation
gasViscosity(Evaluation temperature,
const Evaluation& )
293 temperature = min(temperature, 500.0);
294 temperature = max(temperature, 250.0);
297 const Scalar Fp0 = 1.0;
298 const Scalar xi = 0.004623;
299 const Evaluation& eta_xi = Fp0*(0.807*pow(Tr, 0.618)
300 - 0.357*exp(-0.449*Tr)
301 + 0.34*exp(-4.058*Tr)
303 return eta_xi/xi / 1e7;
309 template <
class Evaluation>
312 temperature = min(temperature, 500.0);
313 temperature = max(temperature, 250.0);
315 const Scalar A = -3.82;
316 const Scalar B = 1027.0;
317 const Scalar C = -6.38e-4;
318 const Scalar D = 4.52e-7;
323 + D*temperature*temperature);
Abstract base class of a pure chemical species.
A central place for various physical constants occuring in some equations.
Relations valid for an ideal gas.
Abstract base class of a pure chemical species.
Definition Component.hpp:44
A central place for various physical constants occuring in some equations.
Definition Constants.hpp:41
static const Scalar R
The ideal gas constant [J/(mol K)].
Definition Constants.hpp:45
Relations valid for an ideal gas.
Definition IdealGas.hpp:38
static Evaluation density(const Evaluation &avgMolarMass, const Evaluation &temperature, const Evaluation &pressure)
The density of the gas in , depending on pressure, temperature and average molar mass of the gas.
Definition IdealGas.hpp:48
Component for Xylene.
Definition Xylene.hpp:48
static Evaluation liquidViscosity(Evaluation temperature, const Evaluation &)
The dynamic liquid viscosity of the pure component.
Definition Xylene.hpp:310
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density in of the component at a given pressure in and temperature in .
Definition Xylene.hpp:221
static Evaluation vaporPressure(const Evaluation &temperature)
The saturation vapor pressure in of pure xylene at a given temperature according to Antoine after Be...
Definition Xylene.hpp:96
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of the pure component in gas.
Definition Xylene.hpp:212
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition Xylene.hpp:284
static Evaluation molarLiquidDensity(Evaluation temperature, const Evaluation &)
The molar density of pure xylene at a given pressure and temperature .
Definition Xylene.hpp:248
static Evaluation spHeatCapLiquidPhase(const Evaluation &temperature, const Evaluation &)
Specific heat cap of liquid xylene .
Definition Xylene.hpp:114
static Scalar criticalTemperature()
Returns the critical temperature of xylene.
Definition Xylene.hpp:68
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of the pure component in liquid.
Definition Xylene.hpp:150
static Scalar tripleTemperature()
Returns the temperature at xylene's triple point.
Definition Xylene.hpp:80
static Scalar molarMass()
The molar mass in of xylene.
Definition Xylene.hpp:62
static Evaluation heatVap(Evaluation temperature, const Evaluation &)
Latent heat of vaporization for xylene .
Definition Xylene.hpp:182
static std::string_view name()
A human readable name for the xylene.
Definition Xylene.hpp:56
static Evaluation gasViscosity(Evaluation temperature, const Evaluation &)
The dynamic viscosity of the pure component at a given pressure in and temperature in .
Definition Xylene.hpp:291
static Evaluation molarGasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of xylene gas at a given pressure and temperature.
Definition Xylene.hpp:233
static Scalar triplePressure()
Returns the pressure at xylene's triple point.
Definition Xylene.hpp:86
static Scalar boilingTemperature()
Returns the temperature at xylene's boiling point (1 atm).
Definition Xylene.hpp:170
static Evaluation liquidDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of the liquid component at a given pressure in and temperature in .
Definition Xylene.hpp:266
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition Xylene.hpp:278
static bool gasIsCompressible()
Returns true iff the gas phase is assumed to be compressible.
Definition Xylene.hpp:272
static Scalar criticalPressure()
Returns the critical pressure of xylene.
Definition Xylene.hpp:74
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30