Classes |
Public Types |
Static Public Member Functions |
Static Public Attributes |
List of all members
Opm::SinglePhaseFluidSystem< Scalar, Fluid > Class Template Reference A fluid system for single phase models. More...
Inheritance diagram for Opm::SinglePhaseFluidSystem< Scalar, Fluid >:
Detailed Descriptiontemplate<class Scalar, class Fluid> class Opm::SinglePhaseFluidSystem< Scalar, Fluid > A fluid system for single phase models. The fluid is defined as a template parameter. For existing components the Opm::LiquidPhase<Component> and Opm::GasPhase<Component> may be used. Member Typedef Documentation◆ Scalar
The type used for scalar quantities. Member Function Documentation◆ acentricFactor()
template<class Scalar , class Fluid >
The acentric factor of a component [].
◆ componentName()
template<class Scalar , class Fluid >
Return the human readable name of a component. References Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numComponents. ◆ criticalPressure()
template<class Scalar , class Fluid >
Critical pressure of a component [Pa].
◆ criticalTemperature()
template<class Scalar , class Fluid >
Critical temperature of a component [K].
◆ density() [1/2]
Calculate the density [kg/m^3] of a fluid phase. ◆ density() [2/2]
template<class Scalar , class Fluid >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the density [kg/m^3] of a fluid phase. References Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. ◆ 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 Fluid >
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::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. ◆ fugacityCoefficient() [1/2]
template<class Scalar , class Fluid >
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::SinglePhaseFluidSystem< Scalar, Fluid >::numComponents, and Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. ◆ fugacityCoefficient() [2/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
◆ heatCapacity() [1/2]
Specific isobaric heat capacity of a fluid phase [J/kg]. ◆ heatCapacity() [2/2]
template<class Scalar , class Fluid >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Specific isobaric heat capacity of a fluid phase [J/kg]. References Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. ◆ init()
template<class Scalar , class Fluid >
Initialize the fluid system's static parameters. ◆ isCompressible()
template<class Scalar , class Fluid >
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. ◆ isIdealGas()
template<class Scalar , class Fluid >
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. ◆ isIdealMixture()
template<class Scalar , class Fluid >
Returns true if and only if a fluid phase is assumed to be an ideal gas. ◆ isLiquid()
template<class Scalar , class Fluid >
Return whether a phase is liquid. ◆ molarMass()
template<class Scalar , class Fluid >
Return the molar mass of a component in [kg/mol]. ◆ phaseIsActive()
Returns whether a fluid phase is active. ◆ phaseName()
template<class Scalar , class Fluid >
Return the human readable name of a fluid phase. References Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. ◆ thermalConductivity() [1/2]
Thermal conductivity of a fluid phase [W/(m K)]. ◆ thermalConductivity() [2/2]
template<class Scalar , class Fluid >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Thermal conductivity of a fluid phase [W/(m K)]. References Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. ◆ viscosity() [1/2]
Calculate the dynamic viscosity of a fluid phase [Pa*s]. ◆ viscosity() [2/2]
template<class Scalar , class Fluid >
template<class FluidState , class LhsEval = typename FluidState::Scalar, class ParamCacheEval = LhsEval>
Calculate the dynamic viscosity of a fluid phase [Pa*s]. References Opm::SinglePhaseFluidSystem< Scalar, Fluid >::numPhases. Member Data Documentation◆ numComponents
template<class Scalar , class Fluid >
Number of chemical species in the fluid system. Referenced by Opm::SinglePhaseFluidSystem< Scalar, Fluid >::componentName(), and Opm::SinglePhaseFluidSystem< Scalar, Fluid >::fugacityCoefficient(). ◆ numPhases
template<class Scalar , class Fluid >
Number of fluid phases in the fluid system. Referenced by Opm::SinglePhaseFluidSystem< Scalar, Fluid >::density(), Opm::SinglePhaseFluidSystem< Scalar, Fluid >::enthalpy(), Opm::SinglePhaseFluidSystem< Scalar, Fluid >::fugacityCoefficient(), Opm::SinglePhaseFluidSystem< Scalar, Fluid >::heatCapacity(), Opm::SinglePhaseFluidSystem< Scalar, Fluid >::phaseName(), Opm::SinglePhaseFluidSystem< Scalar, Fluid >::thermalConductivity(), and Opm::SinglePhaseFluidSystem< Scalar, Fluid >::viscosity(). The documentation for this class was generated from the following file: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||