|
Nektar++
|
Translating zone: addition of a constant vector to every point. More...
#include <Zones.h>
Public Member Functions | |
| ZoneTranslate (int id, int domainID, const CompositeMap &domain, const int coordDim, const Array< OneD, LibUtilities::EquationSharedPtr > &velocityEqns, const Array< OneD, LibUtilities::EquationSharedPtr > &displacementEqns) | |
| ~ZoneTranslate () override=default | |
| Default destructor. | |
| std::vector< NekDouble > | GetVel (NekDouble &time) const |
| Returns the velocity of the zone. | |
| std::vector< NekDouble > | GetDisp (NekDouble &time) |
| Returns the displacement of the zone. | |
| std::vector< NekDouble > | v_GetDisp () const override |
| Returns zone displacment. | |
| Array< OneD, LibUtilities::EquationSharedPtr > | GetVelocityEquation () const |
| Returns the equation for the velocity of the translation. | |
| Array< OneD, LibUtilities::EquationSharedPtr > | GetDisplacementEquation () const |
| Returns the equation for the displacement of the translation. | |
| const Array< OneD, NekDouble > & | GetZoneBox () const |
| const Array< OneD, NekDouble > & | GetZoneLength () const |
| void | UpdateZoneBox (const Array< OneD, NekDouble > &ZoneBox, const Array< OneD, NekDouble > &ZoneLength) |
Public Member Functions inherited from Nektar::SpatialDomains::ZoneBase | |
| 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 NekDouble | v_GetAngle () const |
| Returns zone rotate angle. | |
Protected Member Functions | |
| bool | v_Move (NekDouble time) final |
| Virtual function for movement of the zone at. | |
Protected Attributes | |
| Array< OneD, LibUtilities::EquationSharedPtr > | m_velocityEqns |
| Array< OneD, LibUtilities::EquationSharedPtr > | m_displacementEqns |
| std::vector< NekDouble > | m_disp |
| Array< OneD, NekDouble > | m_ZoneBox |
| Array< OneD, NekDouble > | m_ZoneLength |
Protected Attributes inherited from Nektar::SpatialDomains::ZoneBase | |
| 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. | |
Translating zone: addition of a constant vector to every point.
| Nektar::SpatialDomains::ZoneTranslate::ZoneTranslate | ( | int | id, |
| int | domainID, | ||
| const CompositeMap & | domain, | ||
| const int | coordDim, | ||
| const Array< OneD, LibUtilities::EquationSharedPtr > & | velocityEqns, | ||
| const Array< OneD, LibUtilities::EquationSharedPtr > & | displacementEqns | ||
| ) |
Constructor for translating zone
| id | Zone ID |
| domainID | ID associated with the the domain making up the zone |
| domain | Domain that the zone consists of |
| coordDim | Coordinate dimension |
| velocity | Vector of translation velocity in x,y,z direction |
Definition at line 305 of file Movement/Zones.cpp.
References Nektar::SpatialDomains::ZoneBase::m_origVerts, m_ZoneBox, m_ZoneLength, tinysimd::max(), and tinysimd::min().
|
overridedefault |
Default destructor.
Returns the displacement of the zone.
Definition at line 356 of file Movement/Zones.cpp.
References Nektar::SpatialDomains::ZoneBase::m_coordDim, m_disp, and m_displacementEqns.
Referenced by v_Move().
|
inline |
Returns the equation for the displacement of the translation.
Definition at line 314 of file Zones.h.
References m_displacementEqns.
Referenced by export_Zones().
Returns the velocity of the zone.
Definition at line 345 of file Movement/Zones.cpp.
References Nektar::SpatialDomains::ZoneBase::m_coordDim, and m_velocityEqns.
|
inline |
Returns the equation for the velocity of the translation.
Definition at line 307 of file Zones.h.
References m_velocityEqns.
Referenced by export_Zones().
|
inline |
Definition at line 326 of file Zones.h.
References m_ZoneLength.
|
inline |
Definition at line 332 of file Zones.h.
References m_ZoneBox, and m_ZoneLength.
|
inlineoverridevirtual |
Returns zone displacment.
Reimplemented from Nektar::SpatialDomains::ZoneBase.
Definition at line 301 of file Zones.h.
References m_disp.
|
finalprotectedvirtual |
Virtual function for movement of the zone at.
| time |
Reimplemented from Nektar::SpatialDomains::ZoneBase.
Definition at line 366 of file Movement/Zones.cpp.
References Nektar::SpatialDomains::ZoneBase::ClearBoundingBoxes(), GetDisp(), Nektar::SpatialDomains::ZoneBase::m_coordDim, Nektar::SpatialDomains::ZoneBase::m_curves, Nektar::SpatialDomains::ZoneBase::m_origVerts, and Nektar::SpatialDomains::ZoneBase::m_verts.
|
protected |
Definition at line 343 of file Zones.h.
Referenced by GetDisp(), and v_GetDisp().
|
protected |
Definition at line 342 of file Zones.h.
Referenced by GetDisp(), and GetDisplacementEquation().
|
protected |
Definition at line 341 of file Zones.h.
Referenced by GetVel(), and GetVelocityEquation().
Definition at line 344 of file Zones.h.
Referenced by GetZoneBox(), UpdateZoneBox(), and ZoneTranslate().
Definition at line 345 of file Zones.h.
Referenced by GetZoneLength(), UpdateZoneBox(), and ZoneTranslate().