1 #ifndef DUNE_PDELAB_COMMON_REFERENCEELEMENTS_HH 2 #define DUNE_PDELAB_COMMON_REFERENCEELEMENTS_HH 4 #include <dune/geometry/quadraturerules.hh> 5 #include <dune/geometry/referenceelements.hh> 51 using Coordinate = FieldVector<CoordinateField,dimension>;
55 return _ref_el->size(c);
58 int size(
int i,
int c,
int cc)
const 60 return _ref_el->size(i,c,cc);
65 return _ref_el->subEntity(i,c,ii,cc);
68 GeometryType
type(
int i,
int c)
const 70 return _ref_el->type(i,c);
75 return _ref_el->type();
80 return _ref_el->position(i,c);
85 return _ref_el->checkInside(local);
91 return _ref_el->geometry(i);
96 return _ref_el->volume();
101 return _ref_el->integrationOuterNormal(face);
137 template<
typename Geometry>
140 typename Geometry::ctype,
141 Geometry::mydimension
146 return { ReferenceElements<typename Geometry::ctype,Geometry::mydimension>::general(geo.type()) };
157 #endif // DUNE_PDELAB_COMMON_REFERENCEELEMENTS_HH static const std::size_t dimension
The dimension of the reference element.
Definition: referenceelements.hh:48
typename RE::template Codim< codim > Codim
Definition: referenceelements.hh:40
GeometryType type() const
Definition: referenceelements.hh:73
ctype CoordinateField
The coordinate field type.
Definition: referenceelements.hh:45
int size(int c) const
Definition: referenceelements.hh:53
ReferenceElementWrapper< ReferenceElement< typename Geometry::ctype, Geometry::mydimension > > referenceElement(const Geometry &geo)
Returns the reference element for the given geometry.
Definition: referenceelements.hh:144
Definition: adaptivity.hh:27
typename Codim< 0 >::Geometry::ctype ctype
The coordinate field type.
Definition: referenceelements.hh:43
const Coordinate & position(int i, int c) const
Definition: referenceelements.hh:78
int size(int i, int c, int cc) const
Definition: referenceelements.hh:58
const Coordinate & integrationOuterNormal(int face) const
Definition: referenceelements.hh:99
int subEntity(int i, int c, int ii, int cc) const
Definition: referenceelements.hh:63
GeometryType type(int i, int c) const
Definition: referenceelements.hh:68
bool checkInside(const Coordinate &local) const
Definition: referenceelements.hh:83
FieldVector< CoordinateField, dimension > Coordinate
The coordinate type of the reference element.
Definition: referenceelements.hh:51
CoordinateField volume() const
Definition: referenceelements.hh:94
Codim< codim >::Geometry geometry(int i) const
Definition: referenceelements.hh:89
Wrapper for Dune::ReferenceElement with value semantics.
Definition: referenceelements.hh:34