Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations > Class Template Reference A fluid system with a liquid and a gaseous phase and water and air as components. More...
Inheritance diagram for Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >:
Detailed Descriptiontemplate<class Scalar, class H2Otype = Opm::TabulatedComponent<Scalar, Opm::H2O<Scalar> >, bool useComplexRelations = true>
|
typedef Opm::Air<Scalar> Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::Air |
The type of the air component used for this fluid system.
typedef H2Otype Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::H2O |
The type of the water component used for this fluid system.
typedef NullParameterCache Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::ParameterCache |
The type of the fluid system's parameter cache.
The parameter cache can be used to avoid re-calculating expensive parameters for multiple quantities. Be aware that what the parameter cache actually does is specific for each fluid system and that it is opaque outside the fluid system.
|
inlinestatic |
The acentric factor of a component [].
compIdx | The index of the component to consider |
References Opm::H2O< Scalar >::acentricFactor(), and Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::AirIdx.
|
inlinestatic |
Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)].
Molecular diffusion of a compoent is caused by a gradient of the mole fraction and follows the law
where is the component's mole fraction in phase , is the diffusion coefficient and is the diffusive flux.
References Opm::BinaryCoeff::H2O_Air::gasDiffCoeff(), and Opm::BinaryCoeff::H2O_Air::liquidDiffCoeff().
|
inlinestatic |
Return the human readable name of a component.
References Opm::Air< Scalar >::name(), and Opm::H2O< Scalar >::name().
|
inlinestatic |
Critical pressure of a component [Pa].
compIdx | The index of the component to consider |
References Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::AirIdx, Opm::Air< Scalar >::criticalPressure(), and Opm::H2O< Scalar >::criticalPressure().
|
inlinestatic |
Critical temperature of a component [K].
compIdx | The index of the component to consider |
References Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::AirIdx, Opm::Air< Scalar >::criticalTemperature(), and Opm::H2O< Scalar >::criticalTemperature().
|
inlinestatic |
Calculate the density [kg/m^3] of a fluid phase.
References Opm::Air< Scalar >::gasDensity(), Opm::H2O< Scalar >::gasDensity(), Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::isCompressible(), Opm::H2O< Scalar >::liquidDensity(), Opm::LocalAd::max(), Opm::IdealGas< Scalar >::molarDensity(), Opm::H2O< Scalar >::molarMass(), Opm::Air< Scalar >::molarMass(), Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::numComponents, and Valgrind::SetUndefined().
|
inlinestaticinherited |
Calculate the binary molecular diffusion coefficient for a component in a fluid phase [mol^2 * s / (kg*m^3)].
Molecular diffusion of a compoent is caused by a gradient of the mole fraction and follows the law
where is the component's mole fraction in phase , is the diffusion coefficient and is the diffusive flux.
|
inlinestatic |
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg].
References Valgrind::CheckDefined(), Opm::H2O< Scalar >::gasEnthalpy(), Opm::Air< Scalar >::gasEnthalpy(), and Opm::H2O< Scalar >::liquidEnthalpy().
|
inlinestatic |
Calculate the fugacity coefficient [Pa] of an individual component in a fluid phase.
The fugacity coefficient is connected to the fugacity and the component's molarity by means of the relation
References Opm::BinaryCoeff::H2O_Air::henry(), and Opm::H2O< Scalar >::vaporPressure().
|
inlinestaticinherited |
Specific isobaric heat capacity of a fluid phase [J/kg].
|
inlinestatic |
Initialize the fluid system's static parameters.
If a tabulated H2O component is used, we do our best to create tables that always work.
References Opm::Component< Scalar, H2O< Scalar > >::isTabulated.
|
inlinestatic |
Initialize the fluid system's static parameters using problem specific temperature and pressure ranges.
tempMin | The minimum temperature used for tabulation of water [K] |
tempMax | The maximum temperature used for tabulation of water [K] |
nTemp | The number of ticks on the temperature axis of the table of water |
pressMin | The minimum pressure used for tabulation of water [Pa] |
pressMax | The maximum pressure used for tabulation of water [Pa] |
nPress | The number of ticks on the pressure axis of the table of water |
References Opm::Component< Scalar, H2O< Scalar > >::init(), and Opm::Component< Scalar, H2O< Scalar > >::isTabulated.
|
inlinestatic |
Returns true if and only if a fluid phase is assumed to be compressible.
Compressible means that the partial derivative of the density to the fluid pressure is always larger than zero.
References Opm::H2O< Scalar >::liquidIsCompressible().
Referenced by Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::density().
|
inlinestatic |
Returns true if and only if a fluid phase is assumed to be an ideal gas.
References Opm::Air< Scalar >::gasIsIdeal(), and Opm::H2O< Scalar >::gasIsIdeal().
|
inlinestatic |
Returns true if and only if a fluid phase is assumed to be an ideal mixture.
We define an ideal mixture as a fluid phase where the fugacity coefficients of all components times the pressure of the phase are independent on the fluid composition. This assumption is true if Henry's law and Rault's law apply. If you are unsure what this function should return, it is safe to return false. The only damage done will be (slightly) increased computation times in some cases.
|
inlinestatic |
Return whether a phase is liquid.
References Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::gasPhaseIdx.
|
inlinestatic |
Return the molar mass of a component in [kg/mol].
References Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::AirIdx, Opm::H2O< Scalar >::molarMass(), and Opm::Air< Scalar >::molarMass().
|
inlinestatic |
Return the human readable name of a fluid phase.
|
inlinestatic |
Thermal conductivity of a fluid phase [W/(m K)].
References Opm::Air< Scalar >::gasThermalConductivity(), Opm::H2O< Scalar >::gasThermalConductivity(), and Opm::H2O< Scalar >::liquidThermalConductivity().
|
inlinestatic |
Calculate the dynamic viscosity of a fluid phase [Pa*s].
References Opm::Air< Scalar >::gasViscosity(), Opm::H2O< Scalar >::gasViscosity(), Opm::H2O< Scalar >::liquidViscosity(), Opm::H2O< Scalar >::molarMass(), Opm::Air< Scalar >::molarMass(), Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::numComponents, Opm::LocalAd::pow(), Opm::LocalAd::sqrt(), and Opm::H2O< Scalar >::vaporPressure().
|
static |
The index of the air component.
Referenced by Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::acentricFactor(), Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::criticalPressure(), Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::criticalTemperature(), and Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::molarMass().
|
static |
The index of the gas phase.
Referenced by Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::isLiquid().
|
static |
The index of the water component.
|
static |
The index of the liquid phase.
|
static |
Number of chemical species in the fluid system.
Referenced by Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::density(), and Opm::FluidSystems::H2OAir< Scalar, H2Otype, useComplexRelations >::viscosity().
|
static |
Number of fluid phases in the fluid system.