Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
List of all members
Opm::H2OAirFluidSystem< Scalar, H2Otype > Class Template Reference A fluid system with a liquid and a gaseous phase and water and air as components. More...
Inheritance diagram for Opm::H2OAirFluidSystem< Scalar, H2Otype >:
Detailed Descriptiontemplate<class Scalar, class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >> class Opm::H2OAirFluidSystem< Scalar, H2Otype > A fluid system with a liquid and a gaseous phase and water and air as components. This fluidsystem is applied by default with the tabulated version of water of the IAPWS-formulation. Member Typedef Documentation◆ Air
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The type of the air component used for this fluid system. ◆ H2O
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The type of the water component used for this fluid system. ◆ Scalar
The type used for scalar quantities. Member Function Documentation◆ acentricFactor()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The acentric factor of a component [].
References Opm::Component< Scalar, Air< Scalar > >::acentricFactor(), Opm::H2O< Scalar >::acentricFactor(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, and Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx. ◆ binaryDiffusionCoefficient()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
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(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx, Opm::BinaryCoeff::H2O_Air::liquidDiffCoeff(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx. ◆ componentName()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Return the human readable name of a component. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx, Opm::Air< Scalar >::name(), and Opm::H2O< Scalar >::name(). ◆ criticalPressure()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Critical pressure of a component [Pa].
References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::Air< Scalar >::criticalPressure(), Opm::H2O< Scalar >::criticalPressure(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx. ◆ criticalTemperature()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Critical temperature of a component [K].
References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::Air< Scalar >::criticalTemperature(), Opm::H2O< Scalar >::criticalTemperature(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx. ◆ density() [1/2]
Calculate the density [kg/m^3] of a fluid phase. ◆ density() [2/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the density [kg/m^3] of a fluid phase. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::Air< Scalar >::gasDensity(), Opm::H2O< Scalar >::gasDensity(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::isCompressible(), Opm::H2O< Scalar >::liquidDensity(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx, Opm::Air< Scalar >::molarMass(), Opm::H2O< Scalar >::molarMass(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::numComponents, Opm::H2OAirFluidSystem< Scalar, H2Otype >::numPhases, and Opm::Valgrind::SetUndefined(). ◆ diffusionCoefficient()
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. ◆ enthalpy() [1/2]
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. ◆ enthalpy() [2/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Given a phase's composition, temperature, pressure and density, calculate its specific enthalpy [J/kg]. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::Valgrind::CheckDefined(), Opm::Air< Scalar >::gasEnthalpy(), Opm::H2O< Scalar >::gasEnthalpy(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx, Opm::H2O< Scalar >::liquidEnthalpy(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx. ◆ fugacityCoefficient() [1/2]
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
◆ fugacityCoefficient() [2/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
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::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx, Opm::BinaryCoeff::H2O_Air::henry(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::numComponents, Opm::H2OAirFluidSystem< Scalar, H2Otype >::numPhases, and Opm::H2O< Scalar >::vaporPressure(). ◆ heatCapacity()
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ init() [1/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
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::H2OAirFluidSystem< Scalar, H2Otype >::init(), and Opm::Component< Scalar, H2O< Scalar > >::isTabulated. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::init(). ◆ init() [2/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Initialize the fluid system's static parameters using problem specific temperature and pressure ranges.
References Opm::Component< Scalar, H2O< Scalar > >::init(), and Opm::Component< Scalar, H2O< Scalar > >::isTabulated. ◆ isCompressible()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
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::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx, and Opm::H2O< Scalar >::liquidIsCompressible(). Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(). ◆ isIdealGas()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Returns true if and only if a fluid phase is assumed to be an ideal gas. References Opm::Air< Scalar >::gasIsIdeal(), Opm::H2O< Scalar >::gasIsIdeal(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx. ◆ isIdealMixture()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
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. ◆ isLiquid()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Return whether a phase is liquid. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx. ◆ molarMass()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Return the molar mass of a component in [kg/mol]. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx, Opm::Air< Scalar >::molarMass(), and Opm::H2O< Scalar >::molarMass(). Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::viscosity(). ◆ phaseIsActive()
Returns whether a fluid phase is active. ◆ phaseName()
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Return the human readable name of a fluid phase. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx, and Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx. ◆ thermalConductivity() [1/2]
Thermal conductivity of a fluid phase [W/(m K)]. ◆ thermalConductivity() [2/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Thermal conductivity of a fluid phase [W/(m K)]. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::AirIdx, Opm::Air< Scalar >::gasThermalConductivity(), Opm::H2O< Scalar >::gasThermalConductivity(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::H2OIdx, Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx, Opm::H2O< Scalar >::liquidThermalConductivity(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::numPhases. ◆ viscosity() [1/2]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. ◆ viscosity() [2/2]
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::H2OAirFluidSystem< Scalar, H2Otype >::gasPhaseIdx, Opm::Air< Scalar >::gasViscosity(), Opm::H2O< Scalar >::gasViscosity(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::liquidPhaseIdx, Opm::H2O< Scalar >::liquidViscosity(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::molarMass(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::numComponents, Opm::H2OAirFluidSystem< Scalar, H2Otype >::numPhases, Opm::pow(), Opm::sqrt(), and Opm::H2O< Scalar >::vaporPressure(). Member Data Documentation◆ AirIdx
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The index of the air component. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::acentricFactor(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::componentName(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::criticalPressure(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::criticalTemperature(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::enthalpy(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::molarMass(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::thermalConductivity(). ◆ gasPhaseIdx
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The index of the gas phase. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::binaryDiffusionCoefficient(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::enthalpy(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::isCompressible(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::isIdealGas(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::isLiquid(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::phaseName(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::viscosity(). ◆ H2OIdx
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The index of the water component. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::acentricFactor(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::componentName(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::criticalPressure(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::criticalTemperature(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::enthalpy(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::fugacityCoefficient(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::molarMass(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::thermalConductivity(). ◆ liquidPhaseIdx
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
The index of the liquid phase. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::binaryDiffusionCoefficient(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::enthalpy(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::fugacityCoefficient(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::phaseName(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::thermalConductivity(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::viscosity(). ◆ numComponents
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Number of chemical species in the fluid system. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::fugacityCoefficient(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::viscosity(). ◆ numPhases
template<class Scalar , class H2Otype = TabulatedComponent<Scalar, H2O<Scalar> >>
Number of fluid phases in the fluid system. Referenced by Opm::H2OAirFluidSystem< Scalar, H2Otype >::density(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::fugacityCoefficient(), Opm::H2OAirFluidSystem< Scalar, H2Otype >::thermalConductivity(), and Opm::H2OAirFluidSystem< Scalar, H2Otype >::viscosity(). The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||