Interactionvolume container for 3-d MPFA L-method. More...
#include <dumux/porousmediumflow/2p/sequential/diffusion/mpfa/lmethod/3dinteractionvolumecontainer.hh>
Interactionvolume container for 3-d MPFA L-method.
Container class which stores MPFA-interaction-volume information for each vertex of a DUNE grid. Each InteractionVolume
object stores the information which is necessary to calculate MPFA transmissibility matrices:
Public Types | |
using | InteractionVolume = typename GET_PROP_TYPE(TypeTag, MPFAInteractionVolume) |
Type for storing an MPFA-interaction-volume. (Usually of type FvMpfaL3dInteractionVolume or FvMpfaL3dInteractionVolumeAdaptive) More... | |
Public Member Functions | |
void | update () |
Updates the interaction volume container. More... | |
void | initialize (bool solveTwice=true) |
Initializes the interaction volume container. More... | |
InteractionVolume & | interactionVolume (int vertexIdx) |
Returns an interaction volume. More... | |
InteractionVolume & | interactionVolume (int vertexIdx) const |
Returns an interaction volume. More... | |
GlobalInteractionVolumeVector & | interactionVolumesGlobal () |
Returns the interaction volumes container. More... | |
GlobalInteractionVolumeVector & | interactionVolumesGlobal () const |
Returns the interaction volumes container. More... | |
Scalar | faceAreaFactor (InteractionVolume &interactionVolume, int elemGlobalIdx, int elemLocalIdx, int localFaceIdx) |
Returns the area weighting factor for the fluxes. More... | |
Scalar | faceAreaFactor (int elemGlobalIdx, int indexInInside) |
Returns the area weighting factor for the fluxes. More... | |
Scalar | getRealFluxFaceArea (InteractionVolume &interactionVolume, int elemGlobalIdx, int elemLocalIdx, int localFaceIdx) |
Returns the area trough which fluxes are calculated by the MPFA. More... | |
Scalar | getRealFluxFaceArea (int elemGlobalIdx, int indexInInside) |
Returns the area trough which fluxes are calculated by the MPFA. More... | |
Scalar | getRealFaceArea (InteractionVolume &interactionVolume, int elemGlobalIdx, int elemLocalIdx, int localFaceIdx) |
Returns the face area of the element. More... | |
Scalar | getRealFaceArea (int elemGlobalIdx, int indexInInside) |
Returns the face area of the element. More... | |
FvMpfaL3dInteractionVolumeContainer (Problem &problem) | |
Constructs a FvMpfaL3dInteractionVolumeContainer object. More... | |
Protected Member Functions | |
void | storeSubVolumeElements (const Element &element, std::vector< std::vector< int > > &elemVertMap) |
Function for storing the elements of an interaction volume and constructing a map from a vertex to its surrounding elements. More... | |
void | storeIntersectionInfo (const Element &element, std::vector< std::vector< int > > &elemVertMap) |
Stores information with respect to DUNE intersections in the interaction volumes. More... | |
void | storeInnerInteractionVolume (InteractionVolume &interactionVolume, const Vertex &vertex, bool sameLevel=true) |
Stores additional information which can be constructed for interaction volumes of non-boundary vertices. More... | |
void | storeBoundaryInteractionVolume (InteractionVolume &interactionVolume, const Vertex &vertex) |
Stores additional information for interaction volumes of boundary vertices. More... | |
void | addRealFluxFaceArea_ (Scalar faceArea, int eIdxGlobal, int fIdx) |
void | addRealFaceArea_ (Scalar faceArea, int eIdxGlobal, int fIdx) |
Protected Attributes | |
Problem & | problem_ |
GlobalInteractionVolumeVector | interactionVolumes_ |
FaceAreaVector | realFluxFaceArea_ |
using Dumux::FvMpfaL3dInteractionVolumeContainer< TypeTag >::InteractionVolume = typename GET_PROP_TYPE(TypeTag, MPFAInteractionVolume) |
Type for storing an MPFA-interaction-volume. (Usually of type FvMpfaL3dInteractionVolume or FvMpfaL3dInteractionVolumeAdaptive)
|
inline |
Constructs a FvMpfaL3dInteractionVolumeContainer object.
problem | A problem class object |
|
inlineprotected |
|
inlineprotected |
|
inline |
Returns the area weighting factor for the fluxes.
elemGlobalIdx | Global index of an element in the DUNE grid |
indexInInside | Local index of the face in the DUNE reference element |
|
inline |
Returns the area weighting factor for the fluxes.
interactionVolume | An interaction volume object |
elemGlobalIdx | Global index of an element in the DUNE grid |
elemLocalIdx | Local index of an element in the interaction volume |
localFaceIdx | Local index of a flux face with respect to an element of the interaction volume |
|
inline |
Returns the face area of the element.
elemGlobalIdx | Global index of an element in the DUNE grid |
indexInInside | Local index of the face in the DUNE reference element |
|
inline |
Returns the face area of the element.
interactionVolume | An interaction volume object |
elemGlobalIdx | Global index of an element in the DUNE grid |
elemLocalIdx | Local index of an element in the interaction volume |
localFaceIdx | Local index of a flux face with respect to an element of the interaction volume |
|
inline |
Returns the area trough which fluxes are calculated by the MPFA.
elemGlobalIdx | Global index of an element in the DUNE grid |
indexInInside | Local index of the face in the DUNE reference element |
|
inline |
Returns the area trough which fluxes are calculated by the MPFA.
interactionVolume | An interaction volume object |
elemGlobalIdx | Global index of an element in the DUNE grid |
elemLocalIdx | Local index of an element in the interaction volume |
localFaceIdx | Local index of a flux face with respect to an element of the interaction volume |
|
inline |
Initializes the interaction volume container.
Builds and stores the interaction volumes for the entire grid
|
inline |
Returns an interaction volume.
vertexIdx | Global index of a vertex in the DUNE grid |
|
inline |
Returns an interaction volume.
vertexIdx | Global index of a vertex in the DUNE grid |
|
inline |
Returns the interaction volumes container.
|
inline |
Returns the interaction volumes container.
|
protected |
Stores additional information for interaction volumes of boundary vertices.
Stores additional information for interaction volumes of boundary vertices:
Assumes a local storage following the DUNE reference element index, which is performed by the function FvMpfaL3dInteractionVolumeContainer<TypeTag>::storeSubVolumeElements(const Element& element, std::vector < std::vector<int> >& elemVertMap).
interactionVolume | An interaction volume object |
vertex | The vertex (level dim entity) for which the interaction volume is stored |
|
protected |
Stores additional information which can be constructed for interaction volumes of non-boundary vertices.
Stores additional information which can be constructed for interaction volumes of non-boundary vertices:
Assumes a local storage following the DUNE reference element index, which is performed by the function FvMpfaL3dInteractionVolumeContainer<TypeTag>::storeSubVolumeElements(const Element& element, std::vector < std::vector<int> >& elemVertMap).
interactionVolume | An interaction volume object |
vertex | The vertex (level dim entity) for which the interaction volume is stored |
sameLevel | Level indicator: true if all elements of an interaction volume are of the same level |
|
protected |
Stores information with respect to DUNE intersections in the interaction volumes.
Stores information with respect to DUNE intersections, such as normals, in the interaction volumes. Assumes a local storage following the DUNE reference element index, which is performed by the function FvMpfaL3dInteractionVolumeContainer<TypeTag>::storeSubVolumeElements(const Element& element, std::vector < std::vector<int> >& elemVertMap).
element | A level 0 Entity of a DUNE grid |
elemVertMap | Vector containing the global vertex-element map |
|
protected |
Function for storing the elements of an interaction volume and constructing a map from a vertex to its surrounding elements.
Stores an element in all interaction volumes it belongs to. Additionally, the global index of an element is stored at the position of its local index according to a DUNE reference element for every vertex of the element.
element | A level 0 Entity of a DUNE grid |
elemVertMap | Vector containing the global vertex-element map |
|
inline |
Updates the interaction volume container.
Rebuilds and stores the interaction volumes for the entire grid
|
protected |
|
protected |
|
protected |