#include <genericreferenceelements.hh>
ctype | field type for vectors | |
dim | dimension of the reference element |
Public Member Functions | |
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) | |
const FieldVector< ctype, dim > & | position (int i, int c) const |
position of the barycenter of entity (i,c) | |
template<int codim> | |
bool | checkInside (const FieldVector< ctype, dim-codim > &local, int i) const |
check if a local coordinate is in the reference element of subentity (i,codim) | |
bool | checkInside (const FieldVector< ctype, dim > &local) const |
check if a local coordinate is in the reference element | |
template<int codim> | |
FieldVector< ctype, dim > | global (const FieldVector< ctype, dim-codim > &local, int i, int c) const |
map a local coordinate on subentity (i,codim) into the reference element | |
template<int codim> | |
FieldVector< ctype, dim > | global (const FieldVector< ctype, dim-codim > &local, int i) const |
map a local coordinate on subentity (i,codim) into the reference element | |
template<int codim> | |
Codim< codim >::Mapping & | mapping (int i) const |
obtain the embedding of subentity (i,codim) into the reference element | |
GeometryType | type (int i, int c) const |
obtain the type of subentity (i,c) | |
double | volume () const |
obtain the volume of the reference element | |
template<GeometryType::BasicType geoType> | |
void | initialize () |
initialize the reference element | |
Classes | |
struct | Codim |
Collection of types depending on the codimension. More... |
int Dune::GenericReferenceElement< ctype, dim >::size | ( | int | c | ) | const [inline] |
number of subentities of codimension c
[in] | c | codimension whose size is desired |
int Dune::GenericReferenceElement< ctype, dim >::size | ( | int | i, | |
int | c, | |||
int | cc | |||
) | const [inline] |
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.
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E |
[in] | cc | codimension whose size is desired (c <= cc <= dim) |
int Dune::GenericReferenceElement< ctype, dim >::subEntity | ( | int | i, | |
int | c, | |||
int | ii, | |||
int | cc | |||
) | const [inline] |
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 subentity of codimension c of the current reference element. This method returns the number of S with respect to the current reference element.
[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) |
const FieldVector< ctype, dim >& Dune::GenericReferenceElement< ctype, dim >::position | ( | int | i, | |
int | c | |||
) | const [inline] |
position of the barycenter of entity (i,c)
Denote by E the i-th subentity of codimension c of the current reference element. This method returns the center of gravity of E within the current reference element.
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E |
bool Dune::GenericReferenceElement< ctype, dim >::checkInside | ( | const FieldVector< ctype, dim-codim > & | local, | |
int | i | |||
) | const [inline] |
check if a local coordinate is in the reference element of subentity (i,codim)
Denote by E the i-th subentity of codimension codim of the current reference element. This method return true, if the given local coordinate is within the reference element for entity E.
codim | codimension of subentity E |
[in] | local | coordinates of the point with respect to the reference element of E |
[in] | i | number of subentity E (0 <= i < size( c )) |
Referenced by Dune::GenericReferenceElement< ctype, 2 >::checkInside().
bool Dune::GenericReferenceElement< ctype, dim >::checkInside | ( | const FieldVector< ctype, dim > & | local | ) | const [inline] |
check if a local coordinate is in the reference element
This method return true, if the given local coordinate is within this reference element.
[in] | local | coordinates of the point |
FieldVector< ctype, dim > Dune::GenericReferenceElement< ctype, dim >::global | ( | const FieldVector< ctype, dim-codim > & | local, | |
int | i, | |||
int | c | |||
) | const [inline] |
map a local coordinate on subentity (i,codim) into the reference element
Denote by E the i-th subentity of codimension codim of the current reference element. This method maps a point within the reference element of E into the current reference element.
codim | codimension of subentity E |
[in] | local | coordinates of the point with respect to the reference element of E |
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E |
Referenced by Dune::GenericReferenceElement< ctype, 2 >::global().
FieldVector< ctype, dim > Dune::GenericReferenceElement< ctype, dim >::global | ( | const FieldVector< ctype, dim-codim > & | local, | |
int | i | |||
) | const [inline] |
map a local coordinate on subentity (i,codim) into the reference element
Denote by E the i-th subentity of codimension codim of the current reference element. This method maps a point within the reference element of E into the current reference element.
codim | codimension of subentity E |
[in] | local | coordinates of the point with respect to the reference element of E |
[in] | i | number of subentity E (0 <= i < size( c )) |
Codim< codim >::Mapping& Dune::GenericReferenceElement< ctype, dim >::mapping | ( | int | i | ) | const [inline] |
obtain the embedding of subentity (i,codim) into the reference element
Denote by E the i-th subentity of codimension codim of the current reference element. This method returns a Dune::GenericGeometry::HybridMapping HybridMapping that maps the reference element of E into the current reference element.
This mehtod can be used in a GenericGeometry to represent subentities of the current reference element.
codim | codimension of subentity E |
[in] | i | number of subentity E (0 <= i < size( c )) |
GeometryType Dune::GenericReferenceElement< ctype, dim >::type | ( | int | i, | |
int | c | |||
) | const [inline] |
obtain the type of subentity (i,c)
Denote by E the i-th subentity of codimension c of the current reference element. This method returns the GeometryType of E.
[in] | i | number of subentity E (0 <= i < size( c )) |
[in] | c | codimension of subentity E |
void Dune::GenericReferenceElement< ctype, dim >::initialize | ( | ) | [inline] |
initialize the reference element
Initialize the reference element for GeometryType (geoType, dim).
geoType | basic geometry of the desired reference element |