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

Class for defining the gravity term of a two-phase flow saturation equation. More...

#include <dumux/porousmediumflow/2p/sequential/transport/cellcentered/gravitypart.hh>

Inheritance diagram for Dumux::GravityPart< TypeTag >:
Inheritance graph

Description

template<class TypeTag>
class Dumux::GravityPart< TypeTag >

Class for defining the gravity term of a two-phase flow saturation equation.

Defines the gravity term of the form

\[ \bar \lambda \boldsymbol K \, (\rho_n - \rho_w) \, g \, \textbf{grad} \, z, \]

where \( \bar \lambda = \lambda_w f_n = \lambda_n f_w \) and \( \lambda \) is a phase mobility and \( f \) a phase fractional flow function, \( \boldsymbol K \) is the intrinsic permeability, \( \rho \) is a phase density and \( g \) is the gravity constant.

Template Parameters
TypeTagThe Type Tag

Public Member Functions

void getFlux (DimVector &flux, const Intersection &intersection, const Scalar satI, const Scalar satJ) const
 Returns convective term for current element face. More...
 
 GravityPart (Problem &problem)
 Constructs a GravityPart object. More...
 
void initialize ()
 For initialization. More...
 
Scalar getFlux (const Intersection &intersection, const Scalar sat) const
 Returns convective term for current element face. More...
 

Constructor & Destructor Documentation

◆ GravityPart()

template<class TypeTag >
Dumux::GravityPart< TypeTag >::GravityPart ( Problem &  problem)
inline

Constructs a GravityPart object.

Parameters
problemA problem class object

Member Function Documentation

◆ getFlux() [1/2]

template<class TypeTag >
Scalar Dumux::ConvectivePart< TypeTag >::getFlux ( const Intersection &  intersection,
const Scalar  sat 
) const
inlineinherited

Returns convective term for current element face.

Parameters
intersectionIntersection of two grid elements/global boundary
satSaturation of current element
Returns
Convective flux

◆ getFlux() [2/2]

template<class TypeTag >
void Dumux::GravityPart< TypeTag >::getFlux ( DimVector &  flux,
const Intersection &  intersection,
const Scalar  satI,
const Scalar  satJ 
) const
inline

Returns convective term for current element face.

Parameters
fluxFlux vector (gets the flux from the function)
intersectionIntersection of two grid elements/global boundary
satIsaturation of current element
satJsaturation of neighbor element

◆ initialize()

template<class TypeTag >
void Dumux::GravityPart< TypeTag >::initialize ( )
inline

For initialization.


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