|
Nektar++
|
Translating zone: addition of a constant vector to every point. More...
#include <Zones.h>
Public Member Functions | |
| ZoneTranslate (int id, const CompositeMap &domain, const int coordDim, const std::vector< NekDouble > &velocity) | |
| virtual | ~ZoneTranslate ()=default |
| Default destructor. More... | |
| std::vector< NekDouble > | GetVel () const |
| Returns the velocity of the zone. More... | |
| virtual bool | v_Move (NekDouble time) final |
| Virtual function for movement of the zone at. More... | |
Public Member Functions inherited from Nektar::SpatialDomains::ZoneBase | |
| 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 Attributes | |
| std::vector< NekDouble > | m_velocity |
Protected Attributes inherited from Nektar::SpatialDomains::ZoneBase | |
| 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... | |
Translating zone: addition of a constant vector to every point.
|
inline |
Constructor for translating zone
| id | Zone ID |
| domain | Domain that the zone consists of |
| coordDim | Coordinate dimension |
| velocity | Vector of translation velocity in x,y,z direction |
Definition at line 189 of file Zones.h.
References Nektar::SpatialDomains::eTranslate.
|
virtualdefault |
Default destructor.
|
inline |
|
finalvirtual |
Virtual function for movement of the zone at.
| time |
Reimplemented from Nektar::SpatialDomains::ZoneBase.
Definition at line 234 of file Zones.cpp.
References Nektar::SpatialDomains::ZoneBase::ClearBoundingBoxes(), Nektar::SpatialDomains::ZoneBase::m_coordDim, Nektar::SpatialDomains::ZoneBase::m_curves, Nektar::SpatialDomains::ZoneBase::m_origVerts, m_velocity, and Nektar::SpatialDomains::ZoneBase::m_verts.