3.4
DUNE for Multi-{Phase, Component, Scale, Physics, ...} flow and transport in porous media
Loading...
Searching...
No Matches
Dumux::DarcysLawImplementation< TypeTag, DiscretizationMethod::ccmpfa > Class Template Reference

Darcy's law for cell-centered finite volume schemes with multi-point flux approximation. More...

#include <dumux/flux/ccmpfa/darcyslaw.hh>

Inheritance diagram for Dumux::DarcysLawImplementation< TypeTag, DiscretizationMethod::ccmpfa >:

Description

template<class TypeTag>
class Dumux::DarcysLawImplementation< TypeTag, DiscretizationMethod::ccmpfa >

Darcy's law for cell-centered finite volume schemes with multi-point flux approximation.

Public Types

using Cache = MpfaDarcysLawCache

Static Public Member Functions

template<class ElementFluxVariablesCache>
static Scalar flux (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const unsigned int phaseIdx, const ElementFluxVariablesCache &elemFluxVarsCache)
 Returns the advective flux of a fluid phase across the given sub-control volume face.

Static Public Attributes

static const DiscretizationMethod discMethod = DiscretizationMethod::ccmpfa

Member Typedef Documentation

◆ Cache

template<class TypeTag>
using Dumux::DarcysLawImplementation< TypeTag, DiscretizationMethod::ccmpfa >::Cache = MpfaDarcysLawCache

Member Function Documentation

◆ flux()

template<class TypeTag>
template<class ElementFluxVariablesCache>
Scalar Dumux::DarcysLawImplementation< TypeTag, DiscretizationMethod::ccmpfa >::flux ( const Problem & problem,
const Element & element,
const FVElementGeometry & fvGeometry,
const ElementVolumeVariables & elemVolVars,
const SubControlVolumeFace & scvf,
const unsigned int phaseIdx,
const ElementFluxVariablesCache & elemFluxVarsCache )
inlinestatic

Returns the advective flux of a fluid phase across the given sub-control volume face.

Note
This assembles the term \(-|\sigma| \mathbf{n}^T \mathbf{K} \left( \nabla p - \rho \mathbf{g} \right)\), where \(|\sigma|\) is the area of the face and \(\mathbf{n}\) is the outer normal vector. Thus, the flux is given in N*m, and can be converted into a volume flux (m^3/s) or mass flux (kg/s) by applying an upwind scheme for the mobility or the product of density and mobility, respectively.

Member Data Documentation

◆ discMethod


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