version 3.8
Dumux::CVFEDarcysLaw< Scalar, GridGeometry > Class Template Reference

Darcy's law for control-volume finite element schemes. More...

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

Inheritance diagram for Dumux::CVFEDarcysLaw< Scalar, GridGeometry >:

Description

template<class Scalar, class GridGeometry>
class Dumux::CVFEDarcysLaw< Scalar, GridGeometry >
Template Parameters
Scalarthe scalar type for scalar physical quantities
GridGeometrythe grid geometry

Static Public Member Functions

template<class Problem , class ElementVolumeVariables , class ElementFluxVarsCache >
static Scalar flux (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const int phaseIdx, const ElementFluxVarsCache &elemFluxVarCache)
 Returns the advective flux of a fluid phase across the given sub-control volume face. More...
 
template<class Problem , class ElementVolumeVariables , class FluxVarCache >
static std::vector< Scalar > calculateTransmissibilities (const Problem &problem, const Element &element, const FVElementGeometry &fvGeometry, const ElementVolumeVariables &elemVolVars, const SubControlVolumeFace &scvf, const FluxVarCache &fluxVarCache)
 

Member Function Documentation

◆ calculateTransmissibilities()

template<class Scalar , class GridGeometry >
template<class Problem , class ElementVolumeVariables , class FluxVarCache >
static std::vector< Scalar > Dumux::CVFEDarcysLaw< Scalar, GridGeometry >::calculateTransmissibilities ( const Problem &  problem,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const SubControlVolumeFace &  scvf,
const FluxVarCache &  fluxVarCache 
)
inlinestatic

◆ flux()

template<class Scalar , class GridGeometry >
template<class Problem , class ElementVolumeVariables , class ElementFluxVarsCache >
static Scalar Dumux::CVFEDarcysLaw< Scalar, GridGeometry >::flux ( const Problem &  problem,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const SubControlVolumeFace &  scvf,
const int  phaseIdx,
const ElementFluxVarsCache &  elemFluxVarCache 
)
inlinestatic
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.

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