|
SpECTRE
v2025.08.19
|
A spectral element with knowledge of its neighbors. More...
#include <Element.hpp>
Public Types | |
| using | Neighbors_t = DirectionMap< VolumeDim, Neighbors< VolumeDim > > |
Public Member Functions | |
| Element (ElementId< VolumeDim > id, Neighbors_t neighbors, std::array< domain::Topology, VolumeDim > topologies=make_array< VolumeDim >(domain::Topology::I1)) | |
| Constructor. More... | |
| Element ()=default | |
| Default needed for serialization. | |
| Element (const Element< VolumeDim > &)=default | |
| Element (Element< VolumeDim > &&)=default | |
| Element< VolumeDim > & | operator= (const Element< VolumeDim > &)=default |
| Element< VolumeDim > & | operator= (Element< VolumeDim > &&)=default |
| const std::unordered_set< Direction< VolumeDim > > & | external_boundaries () const |
| The directions of the faces of the Element that are external boundaries. | |
| const std::unordered_set< Direction< VolumeDim > > & | internal_boundaries () const |
| The directions of the faces of the Element that are internal boundaries. | |
| const ElementId< VolumeDim > & | id () const |
| A unique ID for the Element. | |
| const Neighbors_t & | neighbors () const |
| Information about the neighboring Elements. | |
| size_t | number_of_neighbors () const |
| The number of neighbors this element has. | |
| const std::array< domain::Topology, VolumeDim > & | topologies () const |
| The topology in each dimensio of this Element. | |
| const DirectionMap< VolumeDim, domain::FaceType > & | face_types () const |
| The FaceType in each direction. | |
| void | pup (PUP::er &p) |
A spectral element with knowledge of its neighbors.
| VolumeDim | the volume dimension. |
| Element< VolumeDim >::Element | ( | ElementId< VolumeDim > | id, |
| Neighbors_t | neighbors, | ||
| std::array< domain::Topology, VolumeDim > | topologies = make_array< VolumeDim >(domain::Topology::I1) |
||
| ) |
Constructor.
| id | a unique identifier for the Element. |
| neighbors | info about the Elements that share an interface with this Element. |
| topologies | domain::Topology in each dimension (default value is domain::Topology::I1) |