24#ifndef DUMUX_XYLENE_HH
25#define DUMUX_XYLENE_HH
44template <
class Scalar>
89 DUNE_THROW(Dune::NotImplemented,
"tripleTemperature for xylene");
97 DUNE_THROW(Dune::NotImplemented,
"triplePressure for xylene");
109 const Scalar B = 1462.266;
112 Scalar T = temperature - 273.15;
115 Scalar psat = 1.334*pow(10.0, (A - (B/(T + C))));
137 H = 13.4 + 1.2*(temp - 273.0)/25.0;
138 CH3 = 40.0 + 1.6*(temp - 273.0)/25.0;
139 C6H5 = 113.0 + 4.2*(temp - 273.0)/25.0;
141 else if(temp < 323.0){
142 H = 14.6 + 0.9*(temp - 298.0)/25.0;
143 CH3 = 41.6 + 1.9*(temp - 298.0)/25.0;
144 C6H5 = 117.2 + 6.2*(temp - 298.0)/25.0;
146 else if(temp < 348.0){
147 H = 15.5 + 1.2*(temp - 323.0)/25.0;
148 CH3 = 43.5 + 2.3*(temp - 323.0)/25.0;
149 C6H5 = 123.4 + 6.3*(temp - 323.0)/25.0;
152 H = 16.7 + 2.1*(temp - 348.0)/25.0;
153 CH3 = 45.8 + 2.5*(temp - 348.0)/25.0;
154 C6H5 = 129.7 + 6.3*(temp - 348.0)/25.0;
183 const Scalar sqrt1over3 = sqrt(1./3.);
185 const Scalar TEval1 = 0.5*(temperature-273.15)* sqrt1over3 + 0.5*(273.15+temperature);
187 const Scalar TEval2 = 0.5*(temperature-273.15)* (-1)* sqrt1over3 + 0.5*(273.15+temperature);
208 temperature = max(temperature, 0.0);
217 * (3.978 * Tr1 - 3.958 + 1.555*log(p_crit * 1e-5 ) )
224 const Scalar DH_vap = DH_v_boil * pow(((1.0 - Tr2)/(1.0 - Tr1)), n);
281 temp = min(temp, 500.0);
282 temp = max(temp, 250.0);
285 const Scalar A1 = 0.25919;
286 const Scalar A2 = 0.0014569;
288 const Scalar V = A2*pow(A1, expo);
333 temp = min(temp, 500.0);
334 temp = max(temp, 250.0);
340 const Scalar xi = 0.004623;
341 const Scalar eta_xi = Fp0*(0.807*pow(Tr, 0.618)
342 - 0.357*exp(-0.449*Tr)
343 + 0.34*exp(-4.058*Tr)
361 temp = min(temp, 500.0);
362 temp = max(temp, 250.0);
366 const Scalar C = -6.38e-4;
370 Scalar r = exp(A + B/temp + C*temp + D*temp*temp);
Interface for components that have a gas state.
Interface for components that have a liquid state.
A central place for various physical constants occuring in some equations.
Relations valid for an ideal gas.
Base class for all components Components provide the thermodynamic relations for the liquid,...
Definition components/base.hh:59
Scalar Scalar
Definition components/base.hh:63
Interface for components that have a gas state.
Definition gas.hh:41
Interface for components that have a liquid state.
Definition liquid.hh:41
Properties of xylene.
Definition xylene.hh:49
static Scalar gasViscosity(Scalar temp, Scalar pressure, bool regularize=true)
The dynamic viscosity of xylene vapor.
Definition xylene.hh:329
static std::string name()
A human readable name for the xylene.
Definition xylene.hh:57
static Scalar liquidDensity(Scalar temperature, Scalar pressure)
The density of pure xylene at a given pressure and temperature .
Definition xylene.hh:299
static constexpr Scalar criticalPressure()
Returns the critical pressure of xylene.
Definition xylene.hh:75
static Scalar liquidEnthalpy(const Scalar temperature, const Scalar pressure)
Specific enthalpy of liquid xylene .
Definition xylene.hh:167
static Scalar gasMolarDensity(Scalar temperature, Scalar pressure)
The molar gas density of xylene gas at a given pressure and temperature.
Definition xylene.hh:262
static constexpr bool gasIsIdeal()
Returns true if the gas phase is assumed to be ideal.
Definition xylene.hh:313
static Scalar vaporPressure(Scalar temperature)
The saturation vapor pressure in of pure xylene at a given temperature according to Antoine after Be...
Definition xylene.hh:106
static Scalar tripleTemperature()
Returns the temperature at xylene's triple point.
Definition xylene.hh:87
static constexpr Scalar boilingTemperature()
Returns the temperature at xylene's boiling point (1 atm).
Definition xylene.hh:81
static Scalar liquidThermalConductivity(Scalar temperature, Scalar pressure)
Thermal conductivity of xylene.
Definition xylene.hh:385
static constexpr bool liquidIsCompressible()
Returns true if the liquid phase is assumed to be compressible.
Definition xylene.hh:319
static Scalar gasEnthalpy(Scalar temperature, Scalar pressure)
Specific enthalpy of xylene vapor .
Definition xylene.hh:238
static constexpr Scalar criticalTemperature()
Returns the critical temperature of xylene.
Definition xylene.hh:69
static Scalar triplePressure()
Returns the pressure at xylene's triple point.
Definition xylene.hh:95
static Scalar heatVap(Scalar temperature, const Scalar pressure)
Latent heat of vaporization for xylene .
Definition xylene.hh:202
static Scalar liquidHeatCapacity(Scalar temp, Scalar pressure)
Specific heat cap of liquid xylene .
Definition xylene.hh:129
static constexpr Scalar molarMass()
The molar mass in of xylene.
Definition xylene.hh:63
static Scalar gasDensity(Scalar temperature, Scalar pressure)
The density of xylene gas at a given pressure and temperature.
Definition xylene.hh:249
static Scalar liquidMolarDensity(Scalar temp, Scalar pressure)
The molar liquid density of pure xylene at a given pressure and temperature .
Definition xylene.hh:274
static constexpr bool gasIsCompressible()
Returns true if the gas phase is assumed to be compressible.
Definition xylene.hh:307
static Scalar liquidViscosity(Scalar temp, Scalar pressure)
The dynamic viscosity of pure xylene.
Definition xylene.hh:357
A central place for various physical constants occuring in some equations.
Definition constants.hh:39
static constexpr Scalar R
The ideal gas constant .
Definition constants.hh:44
Relations valid for an ideal gas.
Definition idealgas.hh:37
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,...