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

Stencil-local finite volume geometry (scvs and scvfs) for cell-centered mpfa models Specialization for grid caching enabled. More...

#include <dumux/discretization/cellcentered/mpfa/fvelementgeometry.hh>

Description

template<class GG>
class Dumux::CCMpfaFVElementGeometry< GG, true >

Stencil-local finite volume geometry (scvs and scvfs) for cell-centered mpfa models Specialization for grid caching enabled.

Note
The finite volume geometries are stored in the corresponding FVGridGeometry

Public Types

using SubControlVolume = typename GG::SubControlVolume
 export type of subcontrol volume More...
 
using SubControlVolumeFace = typename GG::SubControlVolumeFace
 export type of subcontrol volume face More...
 
using GridGeometry = GG
 export type of finite volume grid geometry More...
 
using FVGridGeometry = GridGeometry
 

Public Member Functions

 CCMpfaFVElementGeometry (const GridGeometry &gridGeometry)
 Constructor. More...
 
const SubControlVolumescv (GridIndexType scvIdx) const
 Get an element sub control volume with a global scv index. More...
 
const SubControlVolumeFacescvf (GridIndexType scvfIdx) const
 Get an element sub control volume face with a global scvf index. More...
 
const SubControlVolumeFaceflipScvf (GridIndexType scvfIdx, unsigned int outsideScvIdx=0) const
 
std::size_t numScv () const
 number of sub control volumes in this fv element geometry More...
 
std::size_t numScvf () const
 number of sub control volumes in this fv element geometry More...
 
void bind (const Element &element)
 Binding of an element, called by the local assembler to prepare element assembly. More...
 
void bindElement (const Element &element)
 Bind only element-local. More...
 
const GridGeometryfvGridGeometry () const
 The global finite volume geometry we are a restriction of. More...
 
const GridGeometrygridGeometry () const
 
bool hasBoundaryScvf () const
 Returns whether one of the geometry's scvfs lies on a boundary. More...
 

Static Public Attributes

static constexpr std::size_t maxNumElementScvs = 1
 the maximum number of scvs per element More...
 
static constexpr std::size_t maxNumElementScvfs = dim == 3 ? 24 : 8
 the maximum number of scvfs per element (use cubes for maximum) More...
 

Member Typedef Documentation

◆ FVGridGeometry

template<class GG >
using Dumux::CCMpfaFVElementGeometry< GG, true >::FVGridGeometry = GridGeometry

◆ GridGeometry

template<class GG >
using Dumux::CCMpfaFVElementGeometry< GG, true >::GridGeometry = GG

export type of finite volume grid geometry

◆ SubControlVolume

template<class GG >
using Dumux::CCMpfaFVElementGeometry< GG, true >::SubControlVolume = typename GG::SubControlVolume

export type of subcontrol volume

◆ SubControlVolumeFace

template<class GG >
using Dumux::CCMpfaFVElementGeometry< GG, true >::SubControlVolumeFace = typename GG::SubControlVolumeFace

export type of subcontrol volume face

Constructor & Destructor Documentation

◆ CCMpfaFVElementGeometry()

template<class GG >
Dumux::CCMpfaFVElementGeometry< GG, true >::CCMpfaFVElementGeometry ( const GridGeometry gridGeometry)
inline

Constructor.

Member Function Documentation

◆ bind()

template<class GG >
void Dumux::CCMpfaFVElementGeometry< GG, true >::bind ( const Element &  element)
inline

Binding of an element, called by the local assembler to prepare element assembly.

◆ bindElement()

template<class GG >
void Dumux::CCMpfaFVElementGeometry< GG, true >::bindElement ( const Element &  element)
inline

Bind only element-local.

◆ flipScvf()

template<class GG >
const SubControlVolumeFace & Dumux::CCMpfaFVElementGeometry< GG, true >::flipScvf ( GridIndexType  scvfIdx,
unsigned int  outsideScvIdx = 0 
) const
inline

Get the scvf on the same face but from the other side Note that e.g. the normals might be different in the case of surface grids

◆ fvGridGeometry()

template<class GG >
const GridGeometry & Dumux::CCMpfaFVElementGeometry< GG, true >::fvGridGeometry ( ) const
inline

The global finite volume geometry we are a restriction of.

◆ gridGeometry()

template<class GG >
const GridGeometry & Dumux::CCMpfaFVElementGeometry< GG, true >::gridGeometry ( ) const
inline

◆ hasBoundaryScvf()

template<class GG >
bool Dumux::CCMpfaFVElementGeometry< GG, true >::hasBoundaryScvf ( ) const
inline

Returns whether one of the geometry's scvfs lies on a boundary.

◆ numScv()

template<class GG >
std::size_t Dumux::CCMpfaFVElementGeometry< GG, true >::numScv ( ) const
inline

number of sub control volumes in this fv element geometry

◆ numScvf()

template<class GG >
std::size_t Dumux::CCMpfaFVElementGeometry< GG, true >::numScvf ( ) const
inline

number of sub control volumes in this fv element geometry

◆ scv()

template<class GG >
const SubControlVolume & Dumux::CCMpfaFVElementGeometry< GG, true >::scv ( GridIndexType  scvIdx) const
inline

Get an element sub control volume with a global scv index.

◆ scvf()

template<class GG >
const SubControlVolumeFace & Dumux::CCMpfaFVElementGeometry< GG, true >::scvf ( GridIndexType  scvfIdx) const
inline

Get an element sub control volume face with a global scvf index.

Member Data Documentation

◆ maxNumElementScvfs

template<class GG >
constexpr std::size_t Dumux::CCMpfaFVElementGeometry< GG, true >::maxNumElementScvfs = dim == 3 ? 24 : 8
staticconstexpr

the maximum number of scvfs per element (use cubes for maximum)

◆ maxNumElementScvs

template<class GG >
constexpr std::size_t Dumux::CCMpfaFVElementGeometry< GG, true >::maxNumElementScvs = 1
staticconstexpr

the maximum number of scvs per element


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