3.5-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::CCTpfaFVElementGeometry< GG, false > Class Template Reference

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

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

Description

template<class GG>
class Dumux::CCTpfaFVElementGeometry< GG, false >

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

Public Types

using Element = typename GridView::template Codim< 0 >::Entity
 export type of the element More...
 
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...
 

Public Member Functions

 CCTpfaFVElementGeometry (const GridGeometry &gridGeometry)
 Constructor. More...
 
const SubControlVolumescv (GridIndexType scvIdx) const
 
const SubControlVolumeFacescvf (GridIndexType scvfIdx) const
 
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...
 
CCTpfaFVElementGeometry bind (const Element &element) &&
 bind the local view (r-value overload) This overload is called when an instance of this class is a temporary in the usage context This allows a usage like this: const auto view = localView(...).bind(element); More...
 
void bind (const Element &element) &
 
CCTpfaFVElementGeometry bindElement (const Element &element) &&
 bind the local view (r-value overload) This overload is called when an instance of this class is a temporary in the usage context This allows a usage like this: const auto view = localView(...).bindElement(element); More...
 
void bindElement (const Element &element) &
 
bool isBound () const
 Returns true if bind/bindElement has already been called. More...
 
const Elementelement () const
 The bound element. More...
 
const GridGeometrygridGeometry () const
 The global finite volume geometry we are a restriction of. More...
 
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 = 2*dim
 the maximum number of scvfs per element (use cubes for maximum) More...
 

Member Typedef Documentation

◆ Element

template<class GG >
using Dumux::CCTpfaFVElementGeometry< GG, false >::Element = typename GridView::template Codim<0>::Entity

export type of the element

◆ GridGeometry

template<class GG >
using Dumux::CCTpfaFVElementGeometry< GG, false >::GridGeometry = GG

export type of finite volume grid geometry

◆ SubControlVolume

template<class GG >
using Dumux::CCTpfaFVElementGeometry< GG, false >::SubControlVolume = typename GG::SubControlVolume

export type of subcontrol volume

◆ SubControlVolumeFace

template<class GG >
using Dumux::CCTpfaFVElementGeometry< GG, false >::SubControlVolumeFace = typename GG::SubControlVolumeFace

export type of subcontrol volume face

Constructor & Destructor Documentation

◆ CCTpfaFVElementGeometry()

template<class GG >
Dumux::CCTpfaFVElementGeometry< GG, false >::CCTpfaFVElementGeometry ( const GridGeometry gridGeometry)
inline

Constructor.

Member Function Documentation

◆ bind() [1/2]

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

◆ bind() [2/2]

template<class GG >
CCTpfaFVElementGeometry Dumux::CCTpfaFVElementGeometry< GG, false >::bind ( const Element element) &&
inline

bind the local view (r-value overload) This overload is called when an instance of this class is a temporary in the usage context This allows a usage like this: const auto view = localView(...).bind(element);

◆ bindElement() [1/2]

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

◆ bindElement() [2/2]

template<class GG >
CCTpfaFVElementGeometry Dumux::CCTpfaFVElementGeometry< GG, false >::bindElement ( const Element element) &&
inline

bind the local view (r-value overload) This overload is called when an instance of this class is a temporary in the usage context This allows a usage like this: const auto view = localView(...).bindElement(element);

◆ element()

template<class GG >
const Element & Dumux::CCTpfaFVElementGeometry< GG, false >::element ( ) const
inline

The bound element.

◆ flipScvf()

template<class GG >
const SubControlVolumeFace & Dumux::CCTpfaFVElementGeometry< GG, false >::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

◆ gridGeometry()

template<class GG >
const GridGeometry & Dumux::CCTpfaFVElementGeometry< GG, false >::gridGeometry ( ) const
inline

The global finite volume geometry we are a restriction of.

◆ hasBoundaryScvf()

template<class GG >
bool Dumux::CCTpfaFVElementGeometry< GG, false >::hasBoundaryScvf ( ) const
inline

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

◆ isBound()

template<class GG >
bool Dumux::CCTpfaFVElementGeometry< GG, false >::isBound ( ) const
inline

Returns true if bind/bindElement has already been called.

◆ numScv()

template<class GG >
std::size_t Dumux::CCTpfaFVElementGeometry< GG, false >::numScv ( ) const
inline

number of sub control volumes in this fv element geometry

◆ numScvf()

template<class GG >
std::size_t Dumux::CCTpfaFVElementGeometry< GG, false >::numScvf ( ) const
inline

number of sub control volumes in this fv element geometry

◆ scv()

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

Get an elment sub control volume with a global scv index We separate element and neighbor scvs to speed up mapping

◆ scvf()

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

Get an element sub control volume face with a global scvf index We separate element and neighbor scvfs to speed up mapping

Member Data Documentation

◆ maxNumElementScvfs

template<class GG >
constexpr std::size_t Dumux::CCTpfaFVElementGeometry< GG, false >::maxNumElementScvfs = 2*dim
staticconstexpr

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

◆ maxNumElementScvs

template<class GG >
constexpr std::size_t Dumux::CCTpfaFVElementGeometry< GG, false >::maxNumElementScvs = 1
staticconstexpr

the maximum number of scvs per element


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