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 const Coordinate & position(int i, int c) const
Definition: referenceelements.hh:78
CoordinateField volume() const
Definition: referenceelements.hh:94
bool checkInside(const Coordinate &local) const
Definition: referenceelements.hh:83
typename Codim< 0 >::Geometry::ctype ctype
The coordinate field type.
Definition: referenceelements.hh:43
const Coordinate & integrationOuterNormal(int face) const
Definition: referenceelements.hh:99
int size(int i, int c, int cc) const
Definition: referenceelements.hh:58
int size(int c) const
Definition: referenceelements.hh:53
static const std::size_t dimension
The dimension of the reference element.
Definition: referenceelements.hh:48
ctype CoordinateField
The coordinate field type.
Definition: referenceelements.hh:45
Codim< codim >::Geometry geometry(int i) const
Definition: referenceelements.hh:89
GeometryType type(int i, int c) const
Definition: referenceelements.hh:68
For backward compatibility – Do not use this!
Definition: adaptivity.hh:27
GeometryType type() const
Definition: referenceelements.hh:73
Wrapper for Dune::ReferenceElement with value semantics.
Definition: referenceelements.hh:34
typename RE::template Codim< codim > Codim
Definition: referenceelements.hh:40
ReferenceElementWrapper< ReferenceElement< typename Geometry::ctype, Geometry::mydimension > > referenceElement(const Geometry &geo)
Returns the reference element for the given geometry.
Definition: referenceelements.hh:144
FieldVector< CoordinateField, dimension > Coordinate
The coordinate type of the reference element.
Definition: referenceelements.hh:51
int subEntity(int i, int c, int ii, int cc) const
Definition: referenceelements.hh:63