Nektar++
|
Zone base: Contains the shared functions and variables. More...
#include <Zones.h>
Public Member Functions | |
ZoneBase (MovementType type, int indx, CompositeMap domain, int coordDim) | |
Constructor. More... | |
virtual | ~ZoneBase ()=default |
Default destructor. More... | |
MovementType | GetMovementType () const |
Returns the type of movement. More... | |
CompositeMap | GetDomain () const |
Returns the domain the zone is on. More... | |
int & | GetId () |
Returns the zone ID. More... | |
bool | Move (NekDouble time) |
Performs the movement of the zone at. More... | |
std::vector< GeometrySharedPtr > const & | GetElements () const |
Returns all highest dimension elements in the zone. More... | |
bool & | GetMoved () |
Returns the flag which states if the zone has moved in this timestep. More... | |
void | ClearBoundingBoxes () |
Clears all bounding boxes associated with the zones elements. More... | |
Protected Member Functions | |
virtual bool | v_Move (NekDouble time) |
Virtual function for movement of the zone at. More... | |
Protected Attributes | |
MovementType | m_type = MovementType::eNone |
Type of zone movement. More... | |
int | m_id |
Zone ID. More... | |
CompositeMap | m_domain |
Zone domain. More... | |
std::vector< GeometrySharedPtr > | m_elements |
Vector of highest dimension zone elements. More... | |
bool | m_moved = true |
Moved flag. More... | |
int | m_coordDim |
Coordinate dimension. More... | |
std::vector< PointGeomSharedPtr > | m_verts |
Vector of all points in the zone. More... | |
std::vector< CurveSharedPtr > | m_curves |
Vector of all curves in the zone. More... | |
std::vector< PointGeom > | m_origVerts |
Vector of all points in the zone at initialisation. More... | |
Nektar::SpatialDomains::ZoneBase::ZoneBase | ( | MovementType | type, |
int | indx, | ||
CompositeMap | domain, | ||
int | coordDim | ||
) |
Constructor.
Definition at line 47 of file Zones.cpp.
References m_curves, m_domain, m_elements, m_origVerts, and m_verts.
|
virtualdefault |
Default destructor.
void Nektar::SpatialDomains::ZoneBase::ClearBoundingBoxes | ( | ) |
Clears all bounding boxes associated with the zones elements.
Definition at line 158 of file Zones.cpp.
References m_elements.
Referenced by Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), and Nektar::SpatialDomains::ZonePrescribe::v_Move().
|
inline |
|
inline |
Returns all highest dimension elements in the zone.
Definition at line 95 of file Zones.h.
References m_elements.
|
inline |
|
inline |
|
inline |
|
inline |
Performs the movement of the zone at.
time |
Definition at line 89 of file Zones.h.
References v_Move().
|
inlineprotectedvirtual |
Virtual function for movement of the zone at.
time |
Reimplemented in Nektar::SpatialDomains::ZoneRotate, Nektar::SpatialDomains::ZoneTranslate, Nektar::SpatialDomains::ZonePrescribe, and Nektar::SpatialDomains::ZoneFixed.
Definition at line 130 of file Zones.h.
Referenced by Move().
|
protected |
Coordinate dimension.
Definition at line 121 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneTranslate::v_Move().
|
protected |
Vector of all curves in the zone.
Definition at line 125 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), and ZoneBase().
|
protected |
|
protected |
Vector of highest dimension zone elements.
Definition at line 117 of file Zones.h.
Referenced by ClearBoundingBoxes(), GetElements(), and ZoneBase().
|
protected |
|
protected |
|
protected |
Vector of all points in the zone at initialisation.
Definition at line 127 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), Nektar::SpatialDomains::ZonePrescribe::v_Move(), and ZoneBase().
|
protected |
|
protected |
Vector of all points in the zone.
Definition at line 123 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), Nektar::SpatialDomains::ZonePrescribe::v_Move(), and ZoneBase().