This class provides access to geometric and topological properties of a reference element.
More...
|
int | size (int c) const |
| number of subentities of codimension c
|
|
int | size (int i, int c, int cc) const |
| number of subentities of codimension cc of subentity (i,c)
|
|
int | subEntity (int i, int c, int ii, int cc) const |
| obtain number of ii-th subentity with codim cc of (i,c)
|
|
auto | subEntities (int i, int c, int cc) const |
| Obtain the range of numbers of subentities with codim cc of (i,c)
|
|
decltype(auto) | type (int i, int c) const |
| obtain the type of subentity (i,c)
|
|
decltype(auto) | type () const |
| obtain the type of this reference element
|
|
decltype(auto) | position (int i, int c) const |
| position of the barycenter of entity (i,c)
|
|
bool | checkInside (const Coordinate &local) const |
| check if a coordinate is in the reference element
|
|
template<int codim> |
Codim< codim >::Geometry | geometry (int i) const |
| obtain the embedding of subentity (i,codim) into the reference element
|
|
CoordinateField | volume () const |
| obtain the volume of the reference element
|
|
decltype(auto) | integrationOuterNormal (int face) const |
| obtain the integration outer normal of the reference element
|
|
| ReferenceElement () |
| Constructs an empty reference element.
|
|
const Implementation & | impl () const |
| Returns a reference to the internal implementation object.
|
|
bool | operator== (const ReferenceElement &r) const |
| Compares for equality with another reference element.
|
|
bool | operator!= (const ReferenceElement &r) const |
| Compares for inequality with another reference element.
|
|
template<typename Implementation>
class Dune::Geo::ReferenceElement< Implementation >
This class provides access to geometric and topological properties of a reference element.
This includes its type, the number of subentities, the volume, and a method for checking if a point is contained in the reference element. The embedding of each subentity into the reference element is also provided.
This class has value semantics, i.e. you can (and should) pass it around by value and not by reference and store a copy of it.
Instances of this object for a given geometry type can be retrieved from the ReferenceElements class.
template<typename Implementation >
number of subentities of codimension cc of subentity (i,c)
Denote by E the i-th subentity of codimension c of the current reference element. This method returns the number of subentities of codimension cc of the current reference element, that are also a subentity of E. If cc<c this number is zero.
- Parameters
-
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E (0 <= c <= dim) |
[in] | cc | codimension whose size is desired (0 <= cc <= dim) |
template<typename Implementation >
Obtain the range of numbers of subentities with codim cc of (i,c)
Denote by E the i-th subentity of codimension c of the current reference element. This method returns a range of numbers of all subentities of E with codimension cc. Notice that the sub-subentity codimension as well as the numbers in the returned range are given with respect to the reference element itself and not with respect to E. For 0<=cc<c this will return an empty range. The returned range r provide the methods r.begin(), r.end(), r.contains(std::size_t) and r.size() mimicking an immutable iterable set.
- Parameters
-
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E |
[in] | cc | codimension of subentity S (0 <= cc <= dim) |
- Returns
- An iterable range of numbers of the sub-subentities.
template<typename Implementation >
obtain number of ii-th subentity with codim cc of (i,c)
Denote by E the i-th subentity of codimension c of the current reference element. And denote by S the ii-th subentity of codimension (cc-c) of E. Then, S is a also a subentity of codimension cc of the current reference element. This method returns the number of S with respect to the current reference element.
- Parameters
-
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E |
[in] | ii | number of subentity S (with respect to E) |
[in] | cc | codimension of subentity S (c <= cc <= dim) |