Definition of a 1D finite element (interval). More...
#include <ptems/finiteelement.hpp>
Public Types | |
typedef LegacyRandomAccessIterator< const Vector< 1 > > | iterator |
Type for an iterator over the list of vertices for the element. More... | |
typedef iterator | const_iterator |
Type for a const iterator over the list of vertices for the element. More... | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Type for an iterator over the list of vertices for the element, iterating in reverse. More... | |
typedef std::reverse_iterator< reverse_iterator > | const_reverse_iterator |
Type for a const iterator over the list of vertices for the element, iterating in reverse. More... | |
typedef LegacyRandomAccessIterator< const PFEFace< 1 > > | faceiterator |
Type for an iterator over the list of faces for the element. More... | |
typedef faceiterator | const_faceiterator |
Type for a const iterator over the list of faces for the element. More... | |
typedef std::reverse_iterator< faceiterator > | reverse_faceiterator |
Type for an iterator over the list of faces for the element, iterating in reverse. More... | |
typedef std::reverse_iterator< const_faceiterator > | const_reverse_faceiterator |
Type for a const iterator over the list of faces for the element, iterating in reverse. More... | |
Public Member Functions | |
std::size_t | Index () const |
The index of the finite element within the mesh,. More... | |
const Vector< 1 > & | operator[] (std::size_t i) const |
Returns the ith vertex of the finite element. More... | |
const Vector< 1 > & | Vertex (std::size_t i) const |
Returns the ith vertex of the finite element. More... | |
std::size_t | VertexIndex (std::size_t i) const |
Returns the index in the mesh of ith vertex of the finite element. More... | |
iterator | begin () const |
Gets the begin iterator for iterating over the vertices of the element. More... | |
iterator | end () const |
Gets the end iterator for iterating over the vertices of the element. More... | |
const_iterator | cbegin () const |
Gets the const begin iterator for iterating over the vertices of the element. More... | |
const_iterator | cend () const |
Gets the const end iterator for iterating over the vertices of the element. More... | |
reverse_iterator | rbegin () const |
Gets the begin iterator for iterating over the vertices of the element in reverse. More... | |
reverse_iterator | rend () const |
Gets the end iterator for iterating over the vertices of the element in reverse. More... | |
const_reverse_iterator | crbegin () const |
Gets the const begin iterator for iterating over the vertices of the element in reverse. More... | |
const_reverse_iterator | crend () const |
Gets the const end iterator for iterating over the vertices of the element in reverse. More... | |
const PFEFace< 1 > & | Face (std::size_t i) const |
Returns the ith face of the finite element. More... | |
faceiterator | begin_faces () const |
Gets the begin iterator for iterating over the faces of the element. More... | |
faceiterator | end_faces () const |
Gets the end iterator for iterating over the faces of the element. More... | |
const_faceiterator | cbegin_faces () const |
Gets the const begin iterator for iterating over the faces of the element. More... | |
const_faceiterator | cend_faces () const |
Gets the const end iterator for iterating over the faces of the element. More... | |
reverse_faceiterator | rbegin_faces () const |
Gets the begin iterator for iterating over the faces of the element in reverse. More... | |
reverse_faceiterator | rend_faces () const |
Gets the end iterator for iterating over the faces of the element in reverse. More... | |
const_reverse_faceiterator | crbegin_faces () const |
Gets the const begin iterator for iterating over the faces of the element in reverse. More... | |
const_reverse_faceiterator | crend_faces () const |
Gets the const end iterator for iterating over the faces of the element in reverse. More... | |
std::size_t | VertexCount () const |
Gets the number of vertices in the element. More... | |
std::size_t | FaceCount () const |
Gets the number of faces in the element. More... | |
double | Diameter () const |
Gets the diameter of the element. More... | |
double | Volume () const |
Gets the volume of the element. More... | |
Vector< 1 > | Barycentre () const |
Gets the barycentre of the element. More... | |
BBox< 1 > | BoundingBox () const |
Computes the bounding box for the element. More... | |
bool | SetNeighbour (const std::shared_ptr< FiniteElement< 1 >> &element) |
Specify that the specified element is a neighbour of this element. More... | |
std::shared_ptr< FEMesh< 1 > > | Mesh () const |
Gets a reference to the underlying mesh for the element. More... | |
const std::array< ReferenceMapping< 1 >, 1 > & | ReferenceMappings () const |
Gets the mapping from the element to the reference interval. More... | |
template<typename ALGO > | |
QuadraturePoints< 1 > | ComputeQuadraturePoints (ALGO algorithm, std::size_t order) |
Computes the quadrature points for the element. More... | |
T | shared_from_this (T... args) |
T | weak_from_this (T... args) |
Friends | |
class | FEMesh< 1 > |
Definition of a 1D finite element (interval).
typedef faceiterator ptems::FiniteElement< 1 >::const_faceiterator |
Type for a const iterator over the list of faces for the element.
typedef iterator ptems::FiniteElement< 1 >::const_iterator |
Type for a const iterator over the list of vertices for the element.
typedef std::reverse_iterator<const_faceiterator> ptems::FiniteElement< 1 >::const_reverse_faceiterator |
Type for a const iterator over the list of faces for the element, iterating in reverse.
Type for a const iterator over the list of vertices for the element, iterating in reverse.
typedef LegacyRandomAccessIterator< const PFEFace<1> > ptems::FiniteElement< 1 >::faceiterator |
Type for an iterator over the list of faces for the element.
typedef LegacyRandomAccessIterator< const Vector<1> > ptems::FiniteElement< 1 >::iterator |
Type for an iterator over the list of vertices for the element.
Type for an iterator over the list of faces for the element, iterating in reverse.
typedef std::reverse_iterator<iterator> ptems::FiniteElement< 1 >::reverse_iterator |
Type for an iterator over the list of vertices for the element, iterating in reverse.
|
inline |
Gets the barycentre of the element.
|
inline |
Gets the begin iterator for iterating over the vertices of the element.
|
inline |
Gets the begin iterator for iterating over the faces of the element.
|
inline |
Computes the bounding box for the element.
|
inline |
Gets the const begin iterator for iterating over the vertices of the element.
|
inline |
Gets the const begin iterator for iterating over the faces of the element.
|
inline |
Gets the const end iterator for iterating over the vertices of the element.
|
inline |
Gets the const end iterator for iterating over the faces of the element.
|
inline |
Computes the quadrature points for the element.
The points are in local element coordinates, and weights are for the global integration.
ALGO | Type of an algorithm for generating quadrature points on a reference element |
algorithm | An algorithm for generating quadrature points on a reference element |
order | The order of the quadrature |
|
inline |
Gets the const begin iterator for iterating over the vertices of the element in reverse.
|
inline |
Gets the const begin iterator for iterating over the faces of the element in reverse.
|
inline |
Gets the const end iterator for iterating over the vertices of the element in reverse.
|
inline |
Gets the const end iterator for iterating over the faces of the element in reverse.
|
inline |
Gets the diameter of the element.
|
inline |
Gets the end iterator for iterating over the vertices of the element.
|
inline |
Gets the end iterator for iterating over the faces of the element.
|
inline |
Returns the ith face of the finite element.
i | The index of the face to get. |
std::out_of_range | If i is not less than FaceCount() |
|
inline |
Gets the number of faces in the element.
|
inline |
The index of the finite element within the mesh,.
|
inline |
Gets a reference to the underlying mesh for the element.
|
inline |
Returns the ith vertex of the finite element.
i | The index of the vertex to get. |
std::out_of_range | If i is not less than VertexCount() |
|
inline |
Gets the begin iterator for iterating over the vertices of the element in reverse.
|
inline |
Gets the begin iterator for iterating over the faces of the element in reverse.
|
inline |
Gets the mapping from the element to the reference interval.
|
inline |
Gets the end iterator for iterating over the vertices of the element in reverse.
|
inline |
Gets the end iterator for iterating over the faces of the element in reverse.
|
inline |
Specify that the specified element is a neighbour of this element.
element | The neighbour |
|
inline |
Returns the ith vertex of the finite element.
i | The index of the vertex to get. |
std::out_of_range | If i is not less than VertexCount() |
|
inline |
Gets the number of vertices in the element.
|
inline |
Returns the index in the mesh of ith vertex of the finite element.
i | The index of the vertex to get. |
std::out_of_range | If i is not less than VertexCount() |
|
inline |
Gets the volume of the element.