Wrapper class for element and geometry. More...
#include <ContextGeometry.hpp>
Public Member Functions | |
ContextGeometry (LocalContext const &localContext, Element const &element, Geometry const &geometry) | |
Constructor. Stores pointer to localContext, element, and geometry. | |
Element const & | element () const |
Return the bound element (entity of codim 0) | |
LocalContext const & | localContext () const |
Return the LocalContext, either the element or an intersection. | |
Geometry const & | geometry () const |
Return the geometry of the Element. | |
LocalGeometry const & | localGeometry () const |
Return the geometry of the element, or geometryInInside of the intersection. | |
template<class Coordinate > | |
decltype(auto) | local (Coordinate const &p) const |
Coordinate p given in localGeometry , transformed to coordinate in geometry of the LocalContext. | |
template<class Coordinate > | |
decltype(auto) | global (Coordinate const &p) const |
Transformation of coordinate p given in localGeometry to world space coordinates. | |
Dune::GeometryType | type () const |
Return the geometry-type of the localContext. | |
template<class Coordinate > | |
auto | integrationElement (Coordinate const &p) const |
Wrapper class for element and geometry.
A LocalContext can be either a grid entity of codim 0 (called an element) or an intersection of elements. The element and its geometry may be stored externally and can be passed along with the localContext object. Since an intersection has a geometry (and localGeometry) different from the geometry (and localGeometry) of the entity it belongs to, these objects are provided as well.
LC | LocalContext, either element or intersection |
|
inline |
The integration element from the localGeometry
, the quadrature points are defined in.