version 3.10-dev
Dumux::TwoPVolumeVariables< Traits > Class Template Reference

Contains the quantities which are are constant within a finite volume in the two-phase model.

#include <dumux/porousmediumflow/2p/volumevariables.hh>

Inheritance diagram for Dumux::TwoPVolumeVariables< Traits >:

Public Types

using FluidSystem = typename Traits::FluidSystem
 Export type of fluid system. More...
 
using FluidState = typename Traits::FluidState
 Export type of fluid state. 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 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)
 Sets complete fluid state. More...
 
const FluidStatefluidState () const
 Returns the phase state for the control volume. More...
 
const SolidStatesolidState () const
 Returns the phase state for the control volume. More...
 
Scalar saturation (int phaseIdx) const
 Returns the saturation of a given phase within the control volume in \([-]\). More...
 
Scalar density (int phaseIdx) const
 Returns the mass density of a given phase within the control volume in \([kg/m^3]\). More...
 
Scalar pressure (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 capillaryPressure () const
 Returns the capillary pressure within the control volume in \([kg/(m*s^2)=N/m^2=Pa]\). More...
 
Scalar temperature () const
 Returns temperature inside the sub-control volume in \([K]\). More...
 
Scalar viscosity (int phaseIdx) const
 Returns the dynamic viscosity of the fluid within the control volume in \(\mathrm{[Pa s]}\). More...
 
Scalar mobility (int phaseIdx) const
 Returns the effective mobility of a given phase within the control volume in \([s*m/kg]\). More...
 
Scalar porosity () const
 Returns the average porosity within the control volume in \([-]\). More...
 
const PermeabilityType & permeability () const
 Returns the permeability within the control volume in \([m^2]\). 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 int numFluidPhases ()
 Return number of phases considered by the model. More...
 
static constexpr int numFluidComponents ()
 Return number of components considered by the model. More...
 

Protected Attributes

FluidState fluidState_
 
SolidState solidState_
 

Member Typedef Documentation

◆ FluidState

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

◆ FluidSystem

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

◆ Indices

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

◆ PrimaryVariables

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

◆ SolidState

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

◆ SolidSystem

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

Member Function Documentation

◆ capillaryPressure()

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

◆ completeFluidState()

template<class Traits >
template<class ElemSol , class Problem , class Element , class Scv >
void Dumux::TwoPVolumeVariables< Traits >::completeFluidState ( const ElemSol &  elemSol,
const Problem &  problem,
const Element &  element,
const Scv &  scv,
FluidState fluidState,
SolidState solidState 
)
inline
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::TwoPVolumeVariables< Traits >::density ( int  phaseIdx) const
inline
Parameters
phaseIdxThe phase index

◆ extrusionFactor()

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

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::TwoPVolumeVariables< Traits >::fluidState ( ) const
inline

◆ mobility()

template<class Traits >
Scalar Dumux::TwoPVolumeVariables< Traits >::mobility ( int  phaseIdx) const
inline
Parameters
phaseIdxThe phase index

◆ numFluidComponents()

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

◆ numFluidPhases()

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

◆ permeability()

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

◆ porosity()

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

◆ pressure()

template<class Traits >
Scalar Dumux::TwoPVolumeVariables< Traits >::pressure ( int  phaseIdx) const
inline
Parameters
phaseIdxThe phase index

◆ priVar()

template<class Traits >
Scalar Dumux::PorousMediumFlowVolumeVariables< Traits >::priVar ( const int  pvIdx) const
inlineinherited
Parameters
pvIdxThe index of the primary variable of interest

◆ priVars()

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

◆ saturation()

template<class Traits >
Scalar Dumux::TwoPVolumeVariables< Traits >::saturation ( int  phaseIdx) const
inline
Parameters
phaseIdxThe phase index

◆ solidState()

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

◆ temperature()

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

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::TwoPVolumeVariables< Traits >::update ( const ElemSol &  elemSol,
const Problem &  problem,
const Element &  element,
const Scv &  scv 
)
inline
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

◆ viscosity()

template<class Traits >
Scalar Dumux::TwoPVolumeVariables< Traits >::viscosity ( int  phaseIdx) const
inline
Parameters
phaseIdxThe phase index

◆ wettingPhase()

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

Member Data Documentation

◆ fluidState_

template<class Traits >
FluidState Dumux::TwoPVolumeVariables< Traits >::fluidState_
protected

◆ solidState_

template<class Traits >
SolidState Dumux::TwoPVolumeVariables< Traits >::solidState_
protected

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