Loading...
Searching...
No Matches
H2OAirXyleneFluidSystem.hpp
Go to the documentation of this file.
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*
This file is part of the Open Porous Media project (OPM).
OPM is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.
OPM is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with OPM. If not, see <http://www.gnu.org/licenses/>.
Consult the COPYING file in the top-level source directory of this
module for the precise wording of the license and the list of
copyright holders.
*/
#ifndef OPM_H2O_AIR_XYLENE_FLUID_SYSTEM_HPP
#define OPM_H2O_AIR_XYLENE_FLUID_SYSTEM_HPP
#include <opm/material/IdealGas.hpp>
#include <opm/material/components/Air.hpp>
#include <opm/material/components/H2O.hpp>
#include <opm/material/components/Xylene.hpp>
#include <opm/material/components/TabulatedComponent.hpp>
#include <opm/material/binarycoefficients/H2O_Air.hpp>
#include <opm/material/binarycoefficients/H2O_Xylene.hpp>
#include <opm/material/binarycoefficients/Air_Xylene.hpp>
#include "BaseFluidSystem.hpp"
#include "NullParameterCache.hpp"
#include <string_view>
namespace Opm {
template <class Scalar>
class H2OAirXyleneFluidSystem
: public BaseFluidSystem<Scalar, H2OAirXyleneFluidSystem<Scalar> >
{
typedef H2OAirXyleneFluidSystem<Scalar> ThisType;
typedef BaseFluidSystem<Scalar, ThisType> Base;
public:
template <class Evaluation>
struct ParameterCache : public NullParameterCache<Evaluation>
{};
typedef ::Opm::H2O<Scalar> H2O;
typedef Xylene<Scalar> NAPL;
typedef ::Opm::Air<Scalar> Air;
static const int numPhases = 3;
static const int numComponents = 3;
static const int waterPhaseIdx = 0;
static const int naplPhaseIdx = 1;
static const int gasPhaseIdx = 2;
static const int H2OIdx = 0;
static const int NAPLIdx = 1;
static const int airIdx = 2;
static void init()
{ }
static bool isLiquid(unsigned phaseIdx)
{
//assert(0 <= phaseIdx && phaseIdx < numPhases);
return phaseIdx != gasPhaseIdx;
}
static bool isIdealGas(unsigned phaseIdx)
{ return phaseIdx == gasPhaseIdx && H2O::gasIsIdeal() && Air::gasIsIdeal() && NAPL::gasIsIdeal(); }
static bool isIdealMixture(unsigned /*phaseIdx*/)
{
//assert(0 <= phaseIdx && phaseIdx < numPhases);
// we assume Henry's and Rault's laws for the water phase and
// and no interaction between gas molecules of different
// components, so all phases are ideal mixtures!
return true;
}
static bool isCompressible(unsigned phaseIdx)
{
return
(phaseIdx == gasPhaseIdx)
// gases are always compressible
? true
: (phaseIdx == waterPhaseIdx)
// the water component decides for the water phase...
? H2O::liquidIsCompressible()
// the NAPL component decides for the napl phase...
: NAPL::liquidIsCompressible();
}
static std::string_view phaseName(unsigned phaseIdx)
{
switch (phaseIdx) {
case waterPhaseIdx: return "water";
case naplPhaseIdx: return "napl";
case gasPhaseIdx: return "gas";
};
throw std::logic_error("Invalid phase index "+std::to_string(phaseIdx));
}
static std::string_view componentName(unsigned compIdx)
{
switch (compIdx) {
case H2OIdx: return H2O::name();
case airIdx: return Air::name();
case NAPLIdx: return NAPL::name();
};
throw std::logic_error("Invalid component index "+std::to_string(compIdx));
}
static Scalar molarMass(unsigned compIdx)
{
return
(compIdx == H2OIdx)
// gases are always compressible
? H2O::molarMass()
: (compIdx == airIdx)
// the water component decides for the water comp...
? Air::molarMass()
// the NAPL component decides for the napl comp...
: (compIdx == NAPLIdx)
? NAPL::molarMass()
: 1e30;
}
template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
static LhsEval density(const FluidState& fluidState,
const ParameterCache<ParamCacheEval>& /*paramCache*/,
unsigned phaseIdx)
{
if (phaseIdx == waterPhaseIdx) {
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
const auto& p = decay<LhsEval>(fluidState.pressure(phaseIdx));
// See: Ochs 2008
// \todo: proper citation
const LhsEval& rholH2O = H2O::liquidDensity(T, p);
const LhsEval& clH2O = rholH2O/H2O::molarMass();
const auto& xwH2O = decay<LhsEval>(fluidState.moleFraction(waterPhaseIdx, H2OIdx));
const auto& xwAir = decay<LhsEval>(fluidState.moleFraction(waterPhaseIdx, airIdx));
const auto& xwNapl = decay<LhsEval>(fluidState.moleFraction(waterPhaseIdx, NAPLIdx));
// this assumes each dissolved molecule displaces exactly one
// water molecule in the liquid
return clH2O*(H2O::molarMass()*xwH2O + Air::molarMass()*xwAir + NAPL::molarMass()*xwNapl);
}
else if (phaseIdx == naplPhaseIdx) {
// assume pure NAPL for the NAPL phase
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
return NAPL::liquidDensity(T, LhsEval(1e30));
}
assert (phaseIdx == gasPhaseIdx);
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
const auto& p = decay<LhsEval>(fluidState.pressure(phaseIdx));
const LhsEval& pH2O = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, H2OIdx))*p;
const LhsEval& pAir = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, airIdx))*p;
const LhsEval& pNAPL = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, NAPLIdx))*p;
return
H2O::gasDensity(T, pH2O) +
Air::gasDensity(T, pAir) +
NAPL::gasDensity(T, pNAPL);
}
template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
static LhsEval viscosity(const FluidState& fluidState,
const ParameterCache<ParamCacheEval>& /*paramCache*/,
unsigned phaseIdx)
{
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
const auto& p = decay<LhsEval>(fluidState.pressure(phaseIdx));
if (phaseIdx == waterPhaseIdx) {
// assume pure water viscosity
return H2O::liquidViscosity(T, p);
}
else if (phaseIdx == naplPhaseIdx) {
// assume pure NAPL viscosity
return NAPL::liquidViscosity(T, p);
}
assert (phaseIdx == gasPhaseIdx);
/* Wilke method. See:
*
* See: R. Reid, et al.: The Properties of Gases and Liquids,
* 4th edition, McGraw-Hill, 1987, 407-410
* 5th edition, McGraw-Hill, 20001, p. 9.21/22
*
* in this case, we use a simplified version in order to avoid
* computationally costly evaluation of sqrt and pow functions and
* divisions
* -- compare e.g. with Promo Class p. 32/33
*/
const LhsEval mu[numComponents] = {
H2O::gasViscosity(T, H2O::vaporPressure(T)),
Air::simpleGasViscosity(T, p),
NAPL::gasViscosity(T, NAPL::vaporPressure(T))
};
// molar masses
const Scalar M[numComponents] = {
H2O::molarMass(),
Air::molarMass(),
NAPL::molarMass()
};
const auto& xgAir = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, airIdx));
const auto& xgH2O = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, H2OIdx));
const auto& xgNapl = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, NAPLIdx));
const LhsEval& xgAW = xgAir + xgH2O;
const LhsEval& muAW = (mu[airIdx]*xgAir + mu[H2OIdx]*xgH2O)/ xgAW;
const LhsEval& MAW = (xgAir*Air::molarMass() + xgH2O*H2O::molarMass())/xgAW;
Scalar phiCAW = 0.3; // simplification for this particular system
/* actually like this
* Scalar phiCAW = std::pow(1.+std::sqrt(mu[NAPLIdx]/muAW)*std::pow(MAW/M[NAPLIdx],0.25),2)
* / std::sqrt(8.*(1.+M[NAPLIdx]/MAW));
*/
const LhsEval& phiAWC = phiCAW * muAW*M[NAPLIdx]/(mu[NAPLIdx]*MAW);
return (xgAW*muAW)/(xgAW+xgNapl*phiAWC) + (xgNapl*mu[NAPLIdx])/(xgNapl + xgAW*phiCAW);
}
template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
static LhsEval diffusionCoefficient(const FluidState& fluidState,
const ParameterCache<ParamCacheEval>& /*paramCache*/,
unsigned phaseIdx,
unsigned compIdx)
{
if (phaseIdx==gasPhaseIdx) {
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
const auto& p = decay<LhsEval>(fluidState.pressure(phaseIdx));
const LhsEval& diffAC = BinaryCoeff::Air_Xylene::gasDiffCoeff(T, p);
const LhsEval& diffWC = BinaryCoeff::H2O_Xylene::gasDiffCoeff(T, p);
const LhsEval& diffAW = BinaryCoeff::H2O_Air::gasDiffCoeff(T, p);
const LhsEval& xga = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, airIdx));
const LhsEval& xgw = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, H2OIdx));
const LhsEval& xgc = decay<LhsEval>(fluidState.moleFraction(gasPhaseIdx, NAPLIdx));
if (compIdx==NAPLIdx) return (1.- xgw)/(xga/diffAW + xgc/diffWC);
else if (compIdx==H2OIdx) return (1.- xgc)/(xgw/diffWC + xga/diffAC);
else if (compIdx==airIdx) throw std::logic_error("Diffusivity of air in the gas phase "
"is constraint by sum of diffusive fluxes = 0 !\n");
} else if (phaseIdx==waterPhaseIdx){
Scalar diffACl = 1.e-9; // BinaryCoeff::Air_Xylene::liquidDiffCoeff(temperature, pressure);
Scalar diffWCl = 1.e-9; // BinaryCoeff::H2O_Xylene::liquidDiffCoeff(temperature, pressure);
Scalar diffAWl = 1.e-9; // BinaryCoeff::H2O_Air::liquidDiffCoeff(temperature, pressure);
const LhsEval& xwa = decay<LhsEval>(fluidState.moleFraction(waterPhaseIdx, airIdx));
const LhsEval& xww = decay<LhsEval>(fluidState.moleFraction(waterPhaseIdx, H2OIdx));
const LhsEval& xwc = decay<LhsEval>(fluidState.moleFraction(waterPhaseIdx, NAPLIdx));
switch (compIdx) {
case NAPLIdx:
return (1.- xww)/(xwa/diffAWl + xwc/diffWCl);
case airIdx:
return (1.- xwc)/(xww/diffWCl + xwa/diffACl);
case H2OIdx:
throw std::logic_error("Diffusivity of water in the water phase "
"is constraint by sum of diffusive fluxes = 0 !\n");
};
} else if (phaseIdx==naplPhaseIdx) {
throw std::logic_error("Diffusion coefficients of "
"substances in liquid phase are undefined!\n");
}
return 0;
}
template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
static LhsEval fugacityCoefficient(const FluidState& fluidState,
const ParameterCache<ParamCacheEval>& /*paramCache*/,
unsigned phaseIdx,
unsigned compIdx)
{
assert(phaseIdx < numPhases);
assert(compIdx < numComponents);
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
const auto& p = decay<LhsEval>(fluidState.pressure(phaseIdx));
if (phaseIdx == waterPhaseIdx) {
if (compIdx == H2OIdx)
return H2O::vaporPressure(T)/p;
else if (compIdx == airIdx)
return BinaryCoeff::H2O_Air::henry(T)/p;
else if (compIdx == NAPLIdx)
return BinaryCoeff::H2O_Xylene::henry(T)/p;
}
// for the NAPL phase, we assume currently that nothing is
// dissolved. this means that the affinity of the NAPL
// component to the NAPL phase is much higher than for the
// other components, i.e. the fugacity cofficient is much
// smaller.
if (phaseIdx == naplPhaseIdx) {
const LhsEval& phiNapl = NAPL::vaporPressure(T)/p;
if (compIdx == NAPLIdx)
return phiNapl;
else if (compIdx == airIdx)
return 1e6*phiNapl;
else if (compIdx == H2OIdx)
return 1e6*phiNapl;
}
// for the gas phase, assume an ideal gas when it comes to
// fugacity (-> fugacity == partial pressure)
assert(phaseIdx == gasPhaseIdx);
return 1.0;
}
template <class FluidState, class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
static LhsEval enthalpy(const FluidState& fluidState,
const ParameterCache<ParamCacheEval>& /*paramCache*/,
unsigned phaseIdx)
{
const auto& T = decay<LhsEval>(fluidState.temperature(phaseIdx));
const auto& p = decay<LhsEval>(fluidState.pressure(phaseIdx));
if (phaseIdx == waterPhaseIdx) {
return H2O::liquidEnthalpy(T, p);
}
else if (phaseIdx == naplPhaseIdx) {
return NAPL::liquidEnthalpy(T, p);
}
else if (phaseIdx == gasPhaseIdx) { // gas phase enthalpy depends strongly on composition
const LhsEval& hgc = NAPL::gasEnthalpy(T, p);
const LhsEval& hgw = H2O::gasEnthalpy(T, p);
const LhsEval& hga = Air::gasEnthalpy(T, p);
LhsEval result = 0;
result += hgw * decay<LhsEval>(fluidState.massFraction(gasPhaseIdx, H2OIdx));
result += hga * decay<LhsEval>(fluidState.massFraction(gasPhaseIdx, airIdx));
result += hgc * decay<LhsEval>(fluidState.massFraction(gasPhaseIdx, NAPLIdx));
return result;
}
throw std::logic_error("Invalid phase index "+std::to_string(phaseIdx));
}
private:
template <class LhsEval>
static LhsEval waterPhaseDensity_(const LhsEval& T,
const LhsEval& pw,
const LhsEval& xww,
const LhsEval& xwa,
const LhsEval& xwc)
{
const LhsEval& rholH2O = H2O::liquidDensity(T, pw);
const LhsEval& clH2O = rholH2O/H2O::molarMass();
// this assumes each dissolved molecule displaces exactly one
// water molecule in the liquid
return clH2O*(xww*H2O::molarMass() + xwa*Air::molarMass() + xwc*NAPL::molarMass());
}
template <class LhsEval>
static LhsEval gasPhaseDensity_(const LhsEval& T,
const LhsEval& pg,
const LhsEval& xgw,
const LhsEval& xga,
const LhsEval& xgc)
{ return H2O::gasDensity(T, pg*xgw) + Air::gasDensity(T, pg*xga) + NAPL::gasDensity(T, pg*xgc); }
template <class LhsEval>
static LhsEval NAPLPhaseDensity_(const LhsEval& T, const LhsEval& pn)
{ return NAPL::liquidDensity(T, pn); }
};
} // namespace Opm
#endif
Air.hpp
A simple class implementing the fluid properties of air.
Air_Xylene.hpp
Binary coefficients for water and xylene.
BaseFluidSystem.hpp
The base class for all fluid systems.
H2O.hpp
Material properties of pure water .
H2O_Air.hpp
Binary coefficients for water and nitrogen.
H2O_Xylene.hpp
Binary coefficients for water and xylene.
IdealGas.hpp
Relations valid for an ideal gas.
NullParameterCache.hpp
A parameter cache which does nothing.
TabulatedComponent.hpp
A generic class which tabulates all thermodynamic properties of a given component.
Xylene.hpp
Component for Xylene.
Opm::Air::gasDensity
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of at a given pressure and temperature [kg/m^3].
Definition Air.hpp:106
Opm::Air::molarMass
static Scalar molarMass()
The molar mass in of .
Definition Air.hpp:84
Opm::Air::name
static std::string_view name()
A human readable name for the .
Definition Air.hpp:64
Opm::Air::gasIsIdeal
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition Air.hpp:76
Opm::Air::gasEnthalpy
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &)
Specific enthalpy of liquid water with 273.15 K as basis.
Definition Air.hpp:184
Opm::BaseFluidSystem
The base class for all fluid systems.
Definition BaseFluidSystem.hpp:43
Opm::BaseFluidSystem< Scalar, H2OAirXyleneFluidSystem< Scalar > >::Scalar
Scalar Scalar
Definition BaseFluidSystem.hpp:48
Opm::BinaryCoeff::Air_Xylene::gasDiffCoeff
static Evaluation gasDiffCoeff(Evaluation temperature, Evaluation pressure)
Binary diffusion coefficent [m^2/s] for air and xylene.
Definition Air_Xylene.hpp:57
Opm::BinaryCoeff::H2O_Air::henry
static Evaluation henry(const Evaluation &temperature)
Henry coefficent for air in liquid water.
Definition H2O_Air.hpp:55
Opm::BinaryCoeff::H2O_Air::gasDiffCoeff
static Evaluation gasDiffCoeff(const Evaluation &temperature, const Evaluation &pressure)
Binary diffusion coefficent for molecular water and air.
Definition H2O_Air.hpp:70
Opm::BinaryCoeff::H2O_Xylene::gasDiffCoeff
static Evaluation gasDiffCoeff(Evaluation temperature, Evaluation pressure)
Binary diffusion coefficent [m^2/s] for molecular water and xylene.
Definition H2O_Xylene.hpp:66
Opm::BinaryCoeff::H2O_Xylene::henry
static Evaluation henry(const Evaluation &)
Henry coefficent for xylene in liquid water.
Definition H2O_Xylene.hpp:51
Opm::H2OAirXyleneFluidSystem
A fluid system with water, gas and NAPL as phases and water, air and NAPL (contaminant) as components...
Definition H2OAirXyleneFluidSystem.hpp:55
Opm::H2OAirXyleneFluidSystem::viscosity
static LhsEval viscosity(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx)
Calculate the dynamic viscosity of a fluid phase [Pa*s].
Definition H2OAirXyleneFluidSystem.hpp:211
Opm::H2OAirXyleneFluidSystem::numPhases
static const int numPhases
Number of fluid phases in the fluid system.
Definition H2OAirXyleneFluidSystem.hpp:72
Opm::H2OAirXyleneFluidSystem::naplPhaseIdx
static const int naplPhaseIdx
The index of the NAPL phase.
Definition H2OAirXyleneFluidSystem.hpp:79
Opm::H2OAirXyleneFluidSystem::molarMass
static Scalar molarMass(unsigned compIdx)
Return the molar mass of a component in [kg/mol].
Definition H2OAirXyleneFluidSystem.hpp:153
Opm::H2OAirXyleneFluidSystem::enthalpy
static LhsEval enthalpy(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx)
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg...
Definition H2OAirXyleneFluidSystem.hpp:365
Opm::H2OAirXyleneFluidSystem::init
static void init()
Initialize the fluid system's static parameters.
Definition H2OAirXyleneFluidSystem.hpp:91
Opm::H2OAirXyleneFluidSystem::density
static LhsEval density(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx)
Calculate the density [kg/m^3] of a fluid phase.
Definition H2OAirXyleneFluidSystem.hpp:170
Opm::H2OAirXyleneFluidSystem::componentName
static std::string_view componentName(unsigned compIdx)
Return the human readable name of a component.
Definition H2OAirXyleneFluidSystem.hpp:142
Opm::H2OAirXyleneFluidSystem::diffusionCoefficient
static LhsEval diffusionCoefficient(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx, unsigned compIdx)
Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (k...
Definition H2OAirXyleneFluidSystem.hpp:273
Opm::H2OAirXyleneFluidSystem::H2O
::Opm::H2O< Scalar > H2O
The type of the water component.
Definition H2OAirXyleneFluidSystem.hpp:65
Opm::H2OAirXyleneFluidSystem::NAPL
Xylene< Scalar > NAPL
The type of the xylene/napl component.
Definition H2OAirXyleneFluidSystem.hpp:67
Opm::H2OAirXyleneFluidSystem::isIdealMixture
static bool isIdealMixture(unsigned)
Returns true if and only if a fluid phase is assumed to be an ideal mixture.
Definition H2OAirXyleneFluidSystem.hpp:106
Opm::H2OAirXyleneFluidSystem::waterPhaseIdx
static const int waterPhaseIdx
The index of the water phase.
Definition H2OAirXyleneFluidSystem.hpp:77
Opm::H2OAirXyleneFluidSystem::numComponents
static const int numComponents
Number of chemical species in the fluid system.
Definition H2OAirXyleneFluidSystem.hpp:74
Opm::H2OAirXyleneFluidSystem::H2OIdx
static const int H2OIdx
The index of the water component.
Definition H2OAirXyleneFluidSystem.hpp:84
Opm::H2OAirXyleneFluidSystem::isCompressible
static bool isCompressible(unsigned phaseIdx)
Returns true if and only if a fluid phase is assumed to be compressible.
Definition H2OAirXyleneFluidSystem.hpp:117
Opm::H2OAirXyleneFluidSystem::NAPLIdx
static const int NAPLIdx
The index of the NAPL component.
Definition H2OAirXyleneFluidSystem.hpp:86
Opm::H2OAirXyleneFluidSystem::Air
::Opm::Air< Scalar > Air
The type of the air component.
Definition H2OAirXyleneFluidSystem.hpp:69
Opm::H2OAirXyleneFluidSystem::isLiquid
static bool isLiquid(unsigned phaseIdx)
Return whether a phase is liquid.
Definition H2OAirXyleneFluidSystem.hpp:95
Opm::H2OAirXyleneFluidSystem::airIdx
static const int airIdx
The index of the air pseudo-component.
Definition H2OAirXyleneFluidSystem.hpp:88
Opm::H2OAirXyleneFluidSystem::fugacityCoefficient
static LhsEval fugacityCoefficient(const FluidState &fluidState, const ParameterCache< ParamCacheEval > &, unsigned phaseIdx, unsigned compIdx)
Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase.
Definition H2OAirXyleneFluidSystem.hpp:322
Opm::H2OAirXyleneFluidSystem::phaseName
static std::string_view phaseName(unsigned phaseIdx)
Return the human readable name of a fluid phase.
Definition H2OAirXyleneFluidSystem.hpp:131
Opm::H2OAirXyleneFluidSystem::gasPhaseIdx
static const int gasPhaseIdx
The index of the gas phase.
Definition H2OAirXyleneFluidSystem.hpp:81
Opm::H2OAirXyleneFluidSystem::isIdealGas
static bool isIdealGas(unsigned phaseIdx)
Returns true if and only if a fluid phase is assumed to be an ideal gas.
Definition H2OAirXyleneFluidSystem.hpp:102
Opm::H2O::liquidDensity
static Evaluation liquidDensity(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
The density of pure water in at a given pressure and temperature.
Definition H2O.hpp:690
Opm::H2O::gasDensity
static Evaluation gasDensity(const Evaluation &temperature, const Evaluation &pressure)
The density of steam in at a given pressure and temperature.
Definition H2O.hpp:564
Opm::H2O::name
static std::string_view name()
A human readable name for the water.
Definition H2O.hpp:79
Opm::H2O::vaporPressure
static Evaluation vaporPressure(Evaluation temperature)
The vapor pressure in of pure water at a given temperature.
Definition H2O.hpp:143
Opm::H2O::gasViscosity
static Evaluation gasViscosity(const Evaluation &temperature, const Evaluation &pressure)
The dynamic viscosity of steam.
Definition H2O.hpp:793
Opm::H2O::liquidEnthalpy
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of liquid water .
Definition H2O.hpp:239
Opm::H2O::gasIsIdeal
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition H2O.hpp:629
Opm::H2O::molarMass
static const Scalar molarMass()
The molar mass in of water.
Definition H2O.hpp:85
Opm::H2O::liquidIsCompressible
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition H2O.hpp:548
Opm::H2O::liquidViscosity
static Evaluation liquidViscosity(const Evaluation &temperature, const Evaluation &pressure, bool extrapolate=false)
The dynamic viscosity of pure water.
Definition H2O.hpp:819
Opm::H2O::gasEnthalpy
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of water steam .
Definition H2O.hpp:188
Opm::Xylene
Component for Xylene.
Definition Xylene.hpp:48
Opm::Xylene::liquidViscosity
static Evaluation liquidViscosity(Evaluation temperature, const Evaluation &)
The dynamic liquid viscosity of the pure component.
Definition Xylene.hpp:310
Opm::Xylene::gasDensity
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
Opm::Xylene::vaporPressure
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
Opm::Xylene::gasEnthalpy
static Evaluation gasEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of the pure component in gas.
Definition Xylene.hpp:212
Opm::Xylene::liquidIsCompressible
static bool liquidIsCompressible()
Returns true iff the liquid phase is assumed to be compressible.
Definition Xylene.hpp:284
Opm::Xylene::liquidEnthalpy
static Evaluation liquidEnthalpy(const Evaluation &temperature, const Evaluation &pressure)
Specific enthalpy of the pure component in liquid.
Definition Xylene.hpp:150
Opm::Xylene::molarMass
static Scalar molarMass()
The molar mass in of xylene.
Definition Xylene.hpp:62
Opm::Xylene::name
static std::string_view name()
A human readable name for the xylene.
Definition Xylene.hpp:56
Opm::Xylene::gasViscosity
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
Opm::Xylene::liquidDensity
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
Opm::Xylene::gasIsIdeal
static bool gasIsIdeal()
Returns true iff the gas phase is assumed to be ideal.
Definition Xylene.hpp:278
Opm
This class implements a small container which holds the transmissibility mulitpliers for all the face...
Definition Exceptions.hpp:30
Opm::H2OAirXyleneFluidSystem::ParameterCache
Definition H2OAirXyleneFluidSystem.hpp:62