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

Specialization of the CCTpfaDarcysLaw grids where dim < dimWorld (network/surface grids) More...

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

Description

template<class ScalarType, class GridGeometry>
class Dumux::CCTpfaDarcysLaw< ScalarType, GridGeometry, true >

Specialization of the CCTpfaDarcysLaw grids where dim < dimWorld (network/surface grids)

Public Types

using Scalar = ScalarType
 state the scalar type of the law More...
 
using DiscretizationMethod = DiscretizationMethods::CCTpfa
 
using Cache = TpfaDarcysLawCache< ThisType, GridGeometry >
 state the type for the corresponding cache More...
 

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

Static Public Attributes

static constexpr DiscretizationMethod discMethod {}
 state the discretization method this implementation belongs to More...
 

Member Typedef Documentation

◆ Cache

template<class ScalarType , class GridGeometry >
using Dumux::CCTpfaDarcysLaw< ScalarType, GridGeometry, true >::Cache = TpfaDarcysLawCache<ThisType, GridGeometry>

state the type for the corresponding cache

◆ DiscretizationMethod

template<class ScalarType , class GridGeometry >
using Dumux::CCTpfaDarcysLaw< ScalarType, GridGeometry, true >::DiscretizationMethod = DiscretizationMethods::CCTpfa

◆ Scalar

template<class ScalarType , class GridGeometry >
using Dumux::CCTpfaDarcysLaw< ScalarType, GridGeometry, true >::Scalar = ScalarType

state the scalar type of the law

Member Function Documentation

◆ calculateTransmissibility()

template<class ScalarType , class GridGeometry >
template<class Problem , class ElementVolumeVariables >
static Scalar Dumux::CCTpfaDarcysLaw< ScalarType, GridGeometry, true >::calculateTransmissibility ( const Problem &  problem,
const Element &  element,
const FVElementGeometry &  fvGeometry,
const ElementVolumeVariables &  elemVolVars,
const SubControlVolumeFace &  scvf 
)
inlinestatic

◆ flux()

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

precompute alpha := n^T*K*g

On interior faces with one neighbor we have to add K-weighted gravitational contributions

Member Data Documentation

◆ discMethod

template<class ScalarType , class GridGeometry >
constexpr DiscretizationMethod Dumux::CCTpfaDarcysLaw< ScalarType, GridGeometry, true >::discMethod {}
staticconstexpr

state the discretization method this implementation belongs to


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