Nektar++
Public Member Functions | Protected Member Functions | List of all members
Nektar::SpatialDomains::ZoneFixed Struct Referencefinal

Fixed zone: does not move. More...

#include <Zones.h>

Inheritance diagram for Nektar::SpatialDomains::ZoneFixed:
[legend]

Public Member Functions

 ZoneFixed (int id, int domainID, const CompositeMap &domain, const int coordDim)
 Constructor. More...
 
 ~ZoneFixed () override=default
 Default destructor. More...
 
- Public Member Functions inherited from Nektar::SpatialDomains::ZoneBase
 ZoneBase (MovementType type, int indx, int domainID, 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...
 
int & GetDomainID ()
 Returns the ID of the domain making up this Zone. 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...
 
std::array< std::set< GeometrySharedPtr >, 3 > & GetConstituentElements ()
 Returns constituent elements, i.e. faces + edges. More...
 
std::vector< PointGeom > & GetOriginalVertex ()
 Returns all points in the zone at initialisation. More...
 
virtual std::vector< NekDoublev_GetDisp () const
 Returns zone displacment. More...
 

Protected Member Functions

bool v_Move (NekDouble time) final
 Virtual function for movement of the zone at. More...
 
std::vector< NekDoublev_GetDisp () const override
 Returns the displacement of the zone. More...
 
virtual bool v_Move (NekDouble time)
 Virtual function for movement of the zone at. More...
 

Additional Inherited Members

- Protected Attributes inherited from Nektar::SpatialDomains::ZoneBase
MovementType m_type = MovementType::eNone
 Type of zone movement. More...
 
int m_id
 Zone ID. More...
 
int m_domainID
 ID for the composite making up this zone. More...
 
CompositeMap m_domain
 Zone domain. More...
 
std::vector< GeometrySharedPtrm_elements
 Vector of highest dimension zone elements. More...
 
std::array< std::set< GeometrySharedPtr >, 3 > m_constituentElements
 Array of all dimension elements i.e. faces = [2], edges = [1], geom = [0]. More...
 
bool m_moved = true
 Moved flag. More...
 
int m_coordDim
 Coordinate dimension. More...
 
std::vector< PointGeomSharedPtrm_verts
 Vector of all points in the zone. More...
 
std::vector< CurveSharedPtrm_curves
 Vector of all curves in the zone. More...
 
std::vector< PointGeomm_origVerts
 Vector of all points in the zone at initialisation. More...
 

Detailed Description

Fixed zone: does not move.

Definition at line 292 of file Zones.h.

Constructor & Destructor Documentation

◆ ZoneFixed()

Nektar::SpatialDomains::ZoneFixed::ZoneFixed ( int  id,
int  domainID,
const CompositeMap domain,
const int  coordDim 
)
inline

Constructor.

Definition at line 295 of file Zones.h.

297 : ZoneBase(MovementType::eFixed, id, domainID, domain, coordDim)
298 {
299 }
ZoneBase(MovementType type, int indx, int domainID, CompositeMap domain, int coordDim)
Constructor.

◆ ~ZoneFixed()

Nektar::SpatialDomains::ZoneFixed::~ZoneFixed ( )
overridedefault

Default destructor.

Member Function Documentation

◆ v_GetDisp()

std::vector< NekDouble > Nektar::SpatialDomains::ZoneFixed::v_GetDisp ( ) const
overrideprotectedvirtual

Returns the displacement of the zone.

Reimplemented from Nektar::SpatialDomains::ZoneBase.

Definition at line 342 of file Movement/Zones.cpp.

343{
344 std::vector<NekDouble> disp(m_coordDim);
345 for (int i = 0; i < m_coordDim; ++i)
346 {
347 disp[i] = 0.0;
348 }
349
350 return disp;
351}
int m_coordDim
Coordinate dimension.
Definition: Zones.h:155

References Nektar::SpatialDomains::ZoneBase::m_coordDim.

◆ v_Move()

bool Nektar::SpatialDomains::ZoneFixed::v_Move ( NekDouble  time)
finalprotectedvirtual

Virtual function for movement of the zone at.

Parameters
time

Reimplemented from Nektar::SpatialDomains::ZoneBase.

Definition at line 337 of file Movement/Zones.cpp.

338{
339 return false;
340}