The grid geometry class for models using finite element schemes. This is basically a wrapper around a function space basis. More...
#include <dumux/discretization/fem/fegridgeometry.hh>
The grid geometry class for models using finite element schemes. This is basically a wrapper around a function space basis.
FEB | The finite element function space basis |
MapperTraits | Traits class containing data types for mappers |
Public Types | |
using | DiscretizationMethod = DiscretizationMethods::FEM |
export the discretization method this geometry belongs to More... | |
using | GridView = typename FEB::GridView |
export the grid view type More... | |
using | Extrusion = Extrusion_t< Traits > |
export the type of extrusion More... | |
using | FEBasis = FEB |
export the type of finite element basis More... | |
using | LocalView = typename Traits::template LocalView< ThisType > |
export local view More... | |
using | Grid = typename GV::Grid |
export the grid type More... | |
using | GlobalCoordinate = typename Element::Geometry::GlobalCoordinate |
export the global coordinate type More... | |
using | ElementMapper = typename Traits::ElementMapper |
export the element mapper type More... | |
using | VertexMapper = typename Traits::VertexMapper |
export the vertex mapper type More... | |
Public Member Functions | |
FEGridGeometry (std::shared_ptr< FEBasis > feBasis) | |
Constructor. More... | |
auto | numDofs () const |
The total number of degrees of freedom. More... | |
const FEBasis & | feBasis () const |
The total number of degrees of freedom. More... | |
bool | dofOnPeriodicBoundary (GridIndexType dofIdx) const |
If a vertex / d.o.f. is on a periodic boundary. More... | |
GridIndexType | periodicallyMappedDof (GridIndexType dofIdx) const |
The index of the vertex / d.o.f. on the other side of the periodic boundary. More... | |
const std::unordered_map< GridIndexType, GridIndexType > & | periodicVertexMap () const |
Returns the map between dofs across periodic boundaries. More... | |
void | update () |
Update all fvElementGeometries (do this again after grid adaption) More... | |
void | update (const GridView &gridView) |
Update all fvElementGeometries (call this after grid adaption) More... | |
void | update (GridView &&gridView) |
Update all fvElementGeometries (call this after grid adaption) More... | |
const GridView & | gridView () const |
Return the gridView this grid geometry object lives on. More... | |
const VertexMapper & | vertexMapper () const |
Returns the mapper for vertices to indices for constant grids. More... | |
VertexMapper & | vertexMapper () |
Returns the mapper for vertices to indices for possibly adaptive grids. More... | |
const ElementMapper & | elementMapper () const |
Returns the mapper for elements to indices for constant grids. More... | |
ElementMapper & | elementMapper () |
Returns the mapper for elements to indices for possibly adaptive grids. More... | |
const BoundingBoxTree & | boundingBoxTree () const |
Returns the bounding box tree of the grid. More... | |
const ElementMap & | elementMap () const |
Returns the element index to element map. More... | |
Element | element (GridIndexType eIdx) const |
Get an element from a global element index. More... | |
const GlobalCoordinate & | bBoxMin () const |
The coordinate of the corner of the GridView's bounding box with the smallest values. More... | |
const GlobalCoordinate & | bBoxMax () const |
The coordinate of the corner of the GridView's bounding box with the largest values. More... | |
bool | isPeriodic () const |
Returns if the grid geometry is periodic (at all) More... | |
void | setPeriodic (bool value=true) |
Set the periodicity of the grid geometry. More... | |
Static Public Attributes | |
static constexpr DiscretizationMethod | discMethod {} |
using Dumux::FEGridGeometry< FEB, Traits >::DiscretizationMethod = DiscretizationMethods::FEM |
export the discretization method this geometry belongs to
|
inherited |
export the element mapper type
using Dumux::FEGridGeometry< FEB, Traits >::Extrusion = Extrusion_t<Traits> |
export the type of extrusion
using Dumux::FEGridGeometry< FEB, Traits >::FEBasis = FEB |
export the type of finite element basis
|
inherited |
export the global coordinate type
|
inherited |
export the grid type
using Dumux::FEGridGeometry< FEB, Traits >::GridView = typename FEB::GridView |
export the grid view type
using Dumux::FEGridGeometry< FEB, Traits >::LocalView = typename Traits::template LocalView<ThisType> |
export local view
|
inherited |
export the vertex mapper type
|
inline |
Constructor.
|
inlineinherited |
The coordinate of the corner of the GridView's bounding box with the largest values.
|
inlineinherited |
The coordinate of the corner of the GridView's bounding box with the smallest values.
|
inlineinherited |
Returns the bounding box tree of the grid.
|
inline |
If a vertex / d.o.f. is on a periodic boundary.
|
inlineinherited |
Get an element from a global element index.
|
inlineinherited |
Returns the element index to element map.
|
inlineinherited |
Returns the mapper for elements to indices for possibly adaptive grids.
|
inlineinherited |
Returns the mapper for elements to indices for constant grids.
|
inline |
The total number of degrees of freedom.
|
inlineinherited |
Return the gridView this grid geometry object lives on.
|
inlineinherited |
Returns if the grid geometry is periodic (at all)
|
inline |
The total number of degrees of freedom.
|
inline |
The index of the vertex / d.o.f. on the other side of the periodic boundary.
|
inline |
Returns the map between dofs across periodic boundaries.
|
inlineinherited |
Set the periodicity of the grid geometry.
|
inlineinherited |
Update all fvElementGeometries (do this again after grid adaption)
|
inlineinherited |
Update all fvElementGeometries (call this after grid adaption)
|
inlineinherited |
Update all fvElementGeometries (call this after grid adaption)
|
inlineinherited |
Returns the mapper for vertices to indices for possibly adaptive grids.
|
inlineinherited |
Returns the mapper for vertices to indices for constant grids.
|
staticconstexpr |