3.6-git
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Public Types | Public Member Functions | Static Public Member Functions | List of all members
Dumux::TwoPTwoCCO2VolumeVariables< Traits > Class Template Reference

Contains the quantities which are are constant within a finite volume in the CO2 model. More...

#include <dumux/porousmediumflow/co2/volumevariables.hh>

Inheritance diagram for Dumux::TwoPTwoCCO2VolumeVariables< Traits >:

Description

template<class Traits>
class Dumux::TwoPTwoCCO2VolumeVariables< Traits >

Contains the quantities which are are constant within a finite volume in the CO2 model.

Public Types

using FluidState = typename Traits::FluidState
 The type of the object returned by the fluidState() method. More...
 
using FluidSystem = typename Traits::FluidSystem
 The fluid system used here. More...
 
using Indices = typename ModelTraits::Indices
 Export the indices. More...
 
using SolidState = typename Traits::SolidState
 Export type of solid state. More...
 
using SolidSystem = typename Traits::SolidSystem
 Export type of solid system. More...
 
using PrimaryVariableSwitch = TwoPTwoCCO2PrimaryVariableSwitch
 Export the type of the primary variable switch. More...
 
using PrimaryVariables = typename Traits::PrimaryVariables
 Export the type used for the primary variables. More...
 

Public Member Functions

template<class ElemSol , class Problem , class Element , class Scv >
void update (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv)
 Updates all quantities for a given control volume. More...
 
template<class ElemSol , class Problem , class Element , class Scv >
void completeFluidState (const ElemSol &elemSol, const Problem &problem, const Element &element, const Scv &scv, FluidState &fluidState, SolidState &solidState)
 Completes the fluid state. More...
 
const FluidStatefluidState () const
 Returns the phase state within the control volume. More...
 
const SolidStatesolidState () const
 Returns the phase state for the control volume. More...
 
Scalar averageMolarMass (int phaseIdx) const
 Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase. More...
 
Scalar saturation (const int phaseIdx) const
 Returns the saturation of a given phase within the control volume in \([-]\). More...
 
Scalar massFraction (const int phaseIdx, const int compIdx) const
 Returns the mass fraction of a given component in a given phase within the control volume in \([-]\). More...
 
Scalar moleFraction (const int phaseIdx, const int compIdx) const
 Returns the mole fraction of a given component in a given phase within the control volume in \([-]\). More...
 
Scalar density (const int phaseIdx) const
 Returns the mass density of a given phase within the control volume in \([kg/m^3]\). More...
 
Scalar viscosity (const int phaseIdx) const
 Returns the dynamic viscosity of the fluid within the control volume in \(\mathrm{[Pa s]}\). More...
 
Scalar molarDensity (const int phaseIdx) const
 Returns the mass density of a given phase within the control volume in \([mol/m^3]\). More...
 
Scalar pressure (const int phaseIdx) const
 Returns the effective pressure of a given phase within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\). More...
 
Scalar temperature () const
 Returns temperature within the control volume in \([K]\). More...
 
Scalar relativePermeability (const int phaseIdx) const
 Returns the relative permeability of a given phase within the control volume in \([-]\). More...
 
Scalar mobility (const int phaseIdx) const
 Returns the effective mobility of a given phase within the control volume in \([s*m/kg]\). More...
 
Scalar capillaryPressure () const
 Returns the effective capillary pressure within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\). More...
 
Scalar porosity () const
 Returns the average porosity within the control volume in \([-]\). More...
 
const PermeabilityType & permeability () const
 Returns the average permeability within the control volume in \([m^2]\). More...
 
Scalar diffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const
 Returns the binary diffusion coefficients for a phase in \([m^2/s]\). More...
 
Scalar effectiveDiffusionCoefficient (int phaseIdx, int compIIdx, int compJIdx) const
 Returns the effective diffusion coefficients for a phase in \([m^2/s]\). More...
 
int wettingPhase () const
 Returns the wetting phase index. More...
 
const PrimaryVariablespriVars () const
 Returns the vector of primary variables. More...
 
Scalar priVar (const int pvIdx) const
 Returns a component of primary variable vector. More...
 
Scalar extrusionFactor () const
 Returns how much the sub-control volume is extruded. More...
 

Static Public Member Functions

static constexpr bool useMoles ()
 Return whether moles or masses are balanced. More...
 
static constexpr TwoPFormulation priVarFormulation ()
 Return the two-phase formulation used here. More...
 
static constexpr int numFluidPhases ()
 Return number of phases considered by the model. More...
 
static constexpr int numFluidComponents ()
 Return number of components considered by the model. More...
 

Member Typedef Documentation

◆ FluidState

template<class Traits >
using Dumux::TwoPTwoCCO2VolumeVariables< Traits >::FluidState = typename Traits::FluidState

The type of the object returned by the fluidState() method.

◆ FluidSystem

template<class Traits >
using Dumux::TwoPTwoCCO2VolumeVariables< Traits >::FluidSystem = typename Traits::FluidSystem

The fluid system used here.

◆ Indices

template<class Traits >
using Dumux::TwoPTwoCCO2VolumeVariables< Traits >::Indices = typename ModelTraits::Indices

Export the indices.

◆ PrimaryVariables

template<class Traits >
using Dumux::PorousMediumFlowVolumeVariables< Traits >::PrimaryVariables = typename Traits::PrimaryVariables
inherited

Export the type used for the primary variables.

◆ PrimaryVariableSwitch

template<class Traits >
using Dumux::TwoPTwoCCO2VolumeVariables< Traits >::PrimaryVariableSwitch = TwoPTwoCCO2PrimaryVariableSwitch

Export the type of the primary variable switch.

◆ SolidState

template<class Traits >
using Dumux::TwoPTwoCCO2VolumeVariables< Traits >::SolidState = typename Traits::SolidState

Export type of solid state.

◆ SolidSystem

template<class Traits >
using Dumux::TwoPTwoCCO2VolumeVariables< Traits >::SolidSystem = typename Traits::SolidSystem

Export type of solid system.

Member Function Documentation

◆ averageMolarMass()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::averageMolarMass ( int  phaseIdx) const
inline

Returns the average molar mass \(\mathrm{[kg/mol]}\) of the fluid phase.

Parameters
phaseIdxThe phase index

◆ capillaryPressure()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::capillaryPressure ( ) const
inline

Returns the effective capillary pressure within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\).

◆ completeFluidState()

template<class Traits >
template<class ElemSol , class Problem , class Element , class Scv >
void Dumux::TwoPTwoCCO2VolumeVariables< Traits >::completeFluidState ( const ElemSol &  elemSol,
const Problem &  problem,
const Element &  element,
const Scv &  scv,
FluidState fluidState,
SolidState solidState 
)
inline

Completes the fluid state.

Note
TODO: This is a lot of copy paste from the 2p2c: factor out code!
Parameters
elemSolA vector containing all primary variables connected to the element
problemThe object specifying the problem which ought to be simulated
elementAn element which contains part of the control volume
scvThe sub-control volume
fluidStateA container with the current (physical) state of the fluid
solidStateA container with the current (physical) state of the solid

Set temperature, saturations, capillary pressures, viscosities, densities and enthalpies.

◆ density()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::density ( const int  phaseIdx) const
inline

Returns the mass density of a given phase within the control volume in \([kg/m^3]\).

Parameters
phaseIdxThe phase index

◆ diffusionCoefficient()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::diffusionCoefficient ( int  phaseIdx,
int  compIIdx,
int  compJIdx 
) const
inline

Returns the binary diffusion coefficients for a phase in \([m^2/s]\).

◆ effectiveDiffusionCoefficient()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::effectiveDiffusionCoefficient ( int  phaseIdx,
int  compIIdx,
int  compJIdx 
) const
inline

Returns the effective diffusion coefficients for a phase in \([m^2/s]\).

◆ extrusionFactor()

template<class Traits >
Scalar Dumux::PorousMediumFlowVolumeVariables< Traits >::extrusionFactor ( ) const
inlineinherited

Returns how much the sub-control volume is extruded.

This means the factor by which a lower-dimensional (1D or 2D) entity needs to be expanded to get a full dimensional cell. The default is 1.0 which means that 1D problems are actually thought as pipes with a cross section of 1 m^2 and 2D problems are assumed to extend 1 m to the back.

◆ fluidState()

template<class Traits >
const FluidState & Dumux::TwoPTwoCCO2VolumeVariables< Traits >::fluidState ( ) const
inline

Returns the phase state within the control volume.

◆ massFraction()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::massFraction ( const int  phaseIdx,
const int  compIdx 
) const
inline

Returns the mass fraction of a given component in a given phase within the control volume in \([-]\).

Parameters
phaseIdxThe phase index
compIdxThe component index

◆ mobility()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::mobility ( const int  phaseIdx) const
inline

Returns the effective mobility of a given phase within the control volume in \([s*m/kg]\).

Parameters
phaseIdxThe phase index

◆ molarDensity()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::molarDensity ( const int  phaseIdx) const
inline

Returns the mass density of a given phase within the control volume in \([mol/m^3]\).

Parameters
phaseIdxThe phase index

◆ moleFraction()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::moleFraction ( const int  phaseIdx,
const int  compIdx 
) const
inline

Returns the mole fraction of a given component in a given phase within the control volume in \([-]\).

Parameters
phaseIdxThe phase index
compIdxThe component index

◆ numFluidComponents()

template<class Traits >
static constexpr int Dumux::PorousMediumFlowVolumeVariables< Traits >::numFluidComponents ( )
inlinestaticconstexprinherited

Return number of components considered by the model.

◆ numFluidPhases()

template<class Traits >
static constexpr int Dumux::PorousMediumFlowVolumeVariables< Traits >::numFluidPhases ( )
inlinestaticconstexprinherited

Return number of phases considered by the model.

◆ permeability()

template<class Traits >
const PermeabilityType & Dumux::TwoPTwoCCO2VolumeVariables< Traits >::permeability ( ) const
inline

Returns the average permeability within the control volume in \([m^2]\).

◆ porosity()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::porosity ( ) const
inline

Returns the average porosity within the control volume in \([-]\).

◆ pressure()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::pressure ( const int  phaseIdx) const
inline

Returns the effective pressure of a given phase within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\).

Parameters
phaseIdxThe phase index

◆ priVar()

template<class Traits >
Scalar Dumux::PorousMediumFlowVolumeVariables< Traits >::priVar ( const int  pvIdx) const
inlineinherited

Returns a component of primary variable vector.

Parameters
pvIdxThe index of the primary variable of interest

◆ priVarFormulation()

template<class Traits >
static constexpr TwoPFormulation Dumux::TwoPTwoCCO2VolumeVariables< Traits >::priVarFormulation ( )
inlinestaticconstexpr

Return the two-phase formulation used here.

◆ priVars()

template<class Traits >
const PrimaryVariables & Dumux::PorousMediumFlowVolumeVariables< Traits >::priVars ( ) const
inlineinherited

Returns the vector of primary variables.

◆ relativePermeability()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::relativePermeability ( const int  phaseIdx) const
inline

Returns the relative permeability of a given phase within the control volume in \([-]\).

Parameters
phaseIdxThe phase index

◆ saturation()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::saturation ( const int  phaseIdx) const
inline

Returns the saturation of a given phase within the control volume in \([-]\).

Parameters
phaseIdxThe phase index

◆ solidState()

template<class Traits >
const SolidState & Dumux::TwoPTwoCCO2VolumeVariables< Traits >::solidState ( ) const
inline

Returns the phase state for the control volume.

◆ temperature()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::temperature ( ) const
inline

Returns temperature within the control volume in \([K]\).

Note that we assume thermodynamic equilibrium, i.e. the temperature of the rock matrix and of all fluid phases are identical.

◆ update()

template<class Traits >
template<class ElemSol , class Problem , class Element , class Scv >
void Dumux::TwoPTwoCCO2VolumeVariables< Traits >::update ( const ElemSol &  elemSol,
const Problem &  problem,
const Element &  element,
const Scv &  scv 
)
inline

Updates all quantities for a given control volume.

Parameters
elemSolA vector containing all primary variables connected to the element
problemThe object specifying the problem which ought to be simulated
elementAn element which contains part of the control volume
scvThe sub control volume

◆ useMoles()

template<class Traits >
static constexpr bool Dumux::TwoPTwoCCO2VolumeVariables< Traits >::useMoles ( )
inlinestaticconstexpr

Return whether moles or masses are balanced.

◆ viscosity()

template<class Traits >
Scalar Dumux::TwoPTwoCCO2VolumeVariables< Traits >::viscosity ( const int  phaseIdx) const
inline

Returns the dynamic viscosity of the fluid within the control volume in \(\mathrm{[Pa s]}\).

Parameters
phaseIdxThe phase index

◆ wettingPhase()

template<class Traits >
int Dumux::TwoPTwoCCO2VolumeVariables< Traits >::wettingPhase ( ) const
inline

Returns the wetting phase index.


The documentation for this class was generated from the following file: