|
Nektar++
|
Zone base: Contains the shared functions and variables. More...
#include <Zones.h>
Public Member Functions | |
| ZoneBase (MovementType type, int indx, int domainID, CompositeMap domain, int coordDim) | |
| Constructor. | |
| virtual | ~ZoneBase ()=default |
| Default destructor. | |
| MovementType | GetMovementType () const |
| Returns the type of movement. | |
| CompositeMap | GetDomain () const |
| Returns the domain the zone is on. | |
| int & | GetId () |
| Returns the zone ID. | |
| int & | GetDomainID () |
| Returns the ID of the domain making up this Zone. | |
| bool | Move (NekDouble time) |
| Performs the movement of the zone at. | |
| std::vector< Geometry * > const & | GetElements () const |
| Returns all highest dimension elements in the zone. | |
| bool & | GetMoved () |
| Returns the flag which states if the zone has moved in this timestep. | |
| void | ClearBoundingBoxes () |
| Clears all bounding boxes associated with the zones elements. | |
| std::array< std::set< Geometry * >, 3 > & | GetConstituentElements () |
| Returns constituent elements, i.e. faces + edges. | |
| std::vector< PointGeom > & | GetOriginalVertex () |
| Returns all points in the zone at initialisation. | |
| virtual std::vector< NekDouble > | v_GetDisp () const |
| Returns zone displacment. | |
| virtual NekDouble | v_GetAngle () const |
| Returns zone rotate angle. | |
Protected Member Functions | |
| virtual bool | v_Move (NekDouble time) |
| Virtual function for movement of the zone at. | |
Protected Attributes | |
| MovementType | m_type = MovementType::eNone |
| Type of zone movement. | |
| int | m_id |
| Zone ID. | |
| int | m_domainID |
| ID for the composite making up this zone. | |
| CompositeMap | m_domain |
| Zone domain. | |
| std::vector< Geometry * > | m_elements |
| Vector of highest dimension zone elements. | |
| std::array< std::set< Geometry * >, 3 > | m_constituentElements |
| Array of all dimension elements i.e. faces = [2], edges = [1], geom = [0]. | |
| bool | m_moved = true |
| Moved flag. | |
| int | m_coordDim |
| Coordinate dimension. | |
| std::vector< PointGeomUniquePtr > | m_verts |
| Vector of all points in the zone. | |
| std::vector< CurveSharedPtr > | m_curves |
| Vector of all curves in the zone. | |
| std::vector< PointGeom > | m_origVerts |
| Vector of all points in the zone at initialisation. | |
| Nektar::SpatialDomains::ZoneBase::ZoneBase | ( | MovementType | type, |
| int | indx, | ||
| int | domainID, | ||
| CompositeMap | domain, | ||
| int | coordDim | ||
| ) |
Constructor.
Definition at line 45 of file Movement/Zones.cpp.
References Nektar::SpatialDomains::Geometry2D::GetCurve(), Nektar::SpatialDomains::SegGeom::GetCurve(), Nektar::SpatialDomains::Geometry::GetGlobalID(), Nektar::SpatialDomains::Geometry::GetVertex(), m_constituentElements, 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 180 of file Movement/Zones.cpp.
References m_elements.
Referenced by export_Zones(), Nektar::SpatialDomains::ZoneRotate::v_Move(), and Nektar::SpatialDomains::ZoneTranslate::v_Move().
|
inline |
Returns constituent elements, i.e. faces + edges.
Definition at line 116 of file Zones.h.
References m_constituentElements.
|
inline |
Returns the domain the zone is on.
Definition at line 77 of file Zones.h.
References m_domain.
Referenced by export_Zones().
|
inline |
Returns the ID of the domain making up this Zone.
Definition at line 89 of file Zones.h.
References m_domainID.
Referenced by export_Zones().
|
inline |
Returns all highest dimension elements in the zone.
Definition at line 101 of file Zones.h.
References m_elements.
Referenced by export_Zones().
|
inline |
Returns the zone ID.
Definition at line 83 of file Zones.h.
References m_id.
Referenced by export_Zones().
|
inline |
Returns the flag which states if the zone has moved in this timestep.
Definition at line 107 of file Zones.h.
References m_moved.
Referenced by export_Zones().
|
inline |
Returns the type of movement.
Definition at line 71 of file Zones.h.
References m_type.
Referenced by export_Zones().
|
inline |
Returns all points in the zone at initialisation.
Definition at line 122 of file Zones.h.
References m_origVerts.
|
inline |
Performs the movement of the zone at.
| time |
Definition at line 95 of file Zones.h.
References v_Move().
Referenced by export_Zones().
|
inlinevirtual |
Returns zone rotate angle.
Reimplemented in Nektar::SpatialDomains::ZoneRotate, and Nektar::SpatialDomains::ZoneFixed.
Definition at line 140 of file Zones.h.
|
inlinevirtual |
Returns zone displacment.
Reimplemented in Nektar::SpatialDomains::ZoneTranslate, and Nektar::SpatialDomains::ZoneFixed.
Definition at line 128 of file Zones.h.
References m_coordDim.
|
inlineprotectedvirtual |
Virtual function for movement of the zone at.
| time |
Reimplemented in Nektar::SpatialDomains::ZoneRotate, Nektar::SpatialDomains::ZoneTranslate, and Nektar::SpatialDomains::ZoneFixed.
Definition at line 171 of file Zones.h.
Referenced by Move().
|
protected |
Array of all dimension elements i.e. faces = [2], edges = [1], geom = [0].
Definition at line 158 of file Zones.h.
Referenced by GetConstituentElements(), and ZoneBase().
|
protected |
Coordinate dimension.
Definition at line 162 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneTranslate::GetDisp(), Nektar::SpatialDomains::ZoneTranslate::GetVel(), v_GetDisp(), Nektar::SpatialDomains::ZoneFixed::v_GetDisp(), and Nektar::SpatialDomains::ZoneTranslate::v_Move().
|
protected |
Vector of all curves in the zone.
Definition at line 166 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), and ZoneBase().
|
protected |
|
protected |
ID for the composite making up this zone.
Definition at line 151 of file Zones.h.
Referenced by GetDomainID().
|
protected |
Vector of highest dimension zone elements.
Definition at line 155 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 168 of file Zones.h.
Referenced by GetOriginalVertex(), Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), ZoneBase(), and Nektar::SpatialDomains::ZoneTranslate::ZoneTranslate().
|
protected |
|
protected |
Vector of all points in the zone.
Definition at line 164 of file Zones.h.
Referenced by Nektar::SpatialDomains::ZoneRotate::v_Move(), Nektar::SpatialDomains::ZoneTranslate::v_Move(), and ZoneBase().