Stencil-local finite volume geometry (scvs and scvfs) for cell-centered TPFA models Specialization for grid caching disabled.
#include <dumux/discretization/cellcentered/mpfa/fvelementgeometry.hh>
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 geometries More... | |
Public Member Functions | |
CCMpfaFVElementGeometry (const GridGeometry &gridGeometry) | |
Constructor. More... | |
const SubControlVolume & | scv (GridIndexType scvIdx) const |
const SubControlVolumeFace & | scvf (GridIndexType scvfIdx) const |
const SubControlVolumeFace & | flipScvf (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... | |
CCMpfaFVElementGeometry | 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) & |
CCMpfaFVElementGeometry | 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) & |
bool | isBound () const |
Returns true if bind/bindElement has already been called. More... | |
const Element & | element () const |
The bound element. More... | |
const GridGeometry & | gridGeometry () 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... | |
SubControlVolume::Traits::Geometry | geometry (const SubControlVolume &scv) const |
Create the geometry of a given sub control volume. More... | |
SubControlVolumeFace::Traits::Geometry | geometry (const SubControlVolumeFace &scvf) const |
Create the geometry of a given sub control volume face. More... | |
SubControlVolumeFace::Traits::GlobalPosition | vertexCorner (const SubControlVolumeFace &scvf) const |
Return the position of the scvf corner that coincides with an element vertex. More... | |
SubControlVolumeFace::Traits::GlobalPosition | facetCorner (const SubControlVolumeFace &scvf) const |
Return the corner of the scvf that is inside the facet the scvf is embedded in. 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... | |
using Dumux::CCMpfaFVElementGeometry< GG, false >::Element = typename GridView::template Codim<0>::Entity |
using Dumux::CCMpfaFVElementGeometry< GG, false >::GridGeometry = GG |
using Dumux::CCMpfaFVElementGeometry< GG, false >::SubControlVolume = typename GG::SubControlVolume |
using Dumux::CCMpfaFVElementGeometry< GG, false >::SubControlVolumeFace = typename GG::SubControlVolumeFace |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
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
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Get an element sub control volume with a global scv index We separate element and neighbor scvs to speed up mapping
|
inline |
Get an element sub control volume face with a global scvf index We separate element and neighbor scvfs to speed up mapping
|
inline |
|
staticconstexpr |
|
staticconstexpr |