Nektar++
|
#include <Movement.h>
Public Member Functions | |
Movement () | |
Default constructor. More... | |
Movement (const LibUtilities::SessionReaderSharedPtr &pSession, MeshGraph *meshGraph) | |
Constructor to read from XML file. More... | |
~Movement ()=default | |
Default destructor. More... | |
void | WriteMovement (TiXmlElement *root) |
Write the MOVEMENT section of the XML file. More... | |
const InterfaceCollection & | GetInterfaces () const |
const std::map< int, ZoneBaseShPtr > & | GetZones () const |
void | PerformMovement (NekDouble timeStep) |
void | AddZone (ZoneBaseShPtr zone) |
Add a zone object to this Movement data. More... | |
void | AddInterface (std::string name, InterfaceShPtr left, InterfaceShPtr right) |
Add pair of interfaces to this data. More... | |
Protected Attributes | |
InterfaceCollection | m_interfaces |
std::map< int, ZoneBaseShPtr > | m_zones |
bool | m_moveFlag = false |
Private Member Functions | |
void | ReadZones (TiXmlElement *zonesTag, MeshGraph *meshGraph, const LibUtilities::SessionReaderSharedPtr &pSession) |
Read zones given TiXmlDocument. More... | |
void | ReadInterfaces (TiXmlElement *interfacesTag, MeshGraph *meshGraph) |
Read interfaces given TiXmlDocument. More... | |
Definition at line 51 of file Movement.h.
|
inline |
Nektar::SpatialDomains::Movement::Movement | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
MeshGraph * | meshGraph | ||
) |
Constructor to read from XML file.
Definition at line 70 of file Movement/Movement.cpp.
References ASSERTL0, m_interfaces, m_zones, Nektar::SpatialDomains::MovementTypeStr, ReadInterfaces(), ReadZones(), Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::ReduceSum, and Nektar::LibUtilities::ShapeTypeMap.
|
default |
Default destructor.
void Nektar::SpatialDomains::Movement::AddInterface | ( | std::string | name, |
InterfaceShPtr | left, | ||
InterfaceShPtr | right | ||
) |
Add pair of interfaces to this data.
Store an interface pair with this Movement data.
Definition at line 543 of file Movement/Movement.cpp.
References m_interfaces, and CellMLToNektar.pycml::name.
Referenced by Nektar::MovementTests::BOOST_AUTO_TEST_CASE().
void Nektar::SpatialDomains::Movement::AddZone | ( | ZoneBaseShPtr | zone | ) |
Add a zone object to this Movement data.
Store a zone object with this Movement data.
Definition at line 532 of file Movement/Movement.cpp.
References Nektar::SpatialDomains::eFixed, Nektar::SpatialDomains::eNone, m_moveFlag, and m_zones.
Referenced by Nektar::MovementTests::BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 69 of file Movement.h.
References m_interfaces.
Referenced by Nektar::MovementTests::BOOST_AUTO_TEST_CASE().
|
inline |
Definition at line 74 of file Movement.h.
References m_zones.
Referenced by Nektar::MovementTests::BOOST_AUTO_TEST_CASE().
Definition at line 505 of file Movement/Movement.cpp.
References m_interfaces, and m_zones.
|
private |
Read interfaces given TiXmlDocument.
Definition at line 321 of file Movement/Movement.cpp.
References ASSERTL0, Nektar::ErrorUtil::efatal, Nektar::SpatialDomains::MeshGraph::GetCompositeList(), m_interfaces, CellMLToNektar.pycml::name, NEKERROR, and Nektar::SpatialDomains::ReadTag().
Referenced by Movement().
|
private |
Read zones given TiXmlDocument.
Definition at line 199 of file Movement/Movement.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::MovementTests::axis, Nektar::ParseUtils::GenerateVector(), Nektar::SpatialDomains::MeshGraph::GetDomain(), Nektar::SpatialDomains::MeshGraph::GetSpaceDimension(), m_moveFlag, m_zones, Nektar::NekVector< DataType >::Normalize(), Nektar::MovementTests::origin, Nektar::SpatialDomains::ReadTag(), Nektar::MovementTests::velocity, and WARNINGL0.
Referenced by Movement().
void Nektar::SpatialDomains::Movement::WriteMovement | ( | TiXmlElement * | root | ) |
Write the MOVEMENT section of the XML file.
Export this Movement information to a Nektar++ XML file.
Definition at line 406 of file Movement/Movement.cpp.
References Nektar::SpatialDomains::ePrescribe, Nektar::SpatialDomains::eRotate, Nektar::SpatialDomains::eTranslate, Nektar::ParseUtils::GenerateSeqString(), CG_Iterations::label, m_interfaces, m_zones, Nektar::SpatialDomains::MovementTypeStr, Nektar::SpatialDomains::StripParentheses(), and Nektar::UnitTests::z().
Referenced by Nektar::MovementTests::BOOST_AUTO_TEST_CASE().
|
protected |
Definition at line 91 of file Movement.h.
Referenced by AddInterface(), GetInterfaces(), Movement(), PerformMovement(), ReadInterfaces(), and WriteMovement().
|
protected |
Definition at line 93 of file Movement.h.
Referenced by AddZone(), and ReadZones().
|
protected |
Definition at line 92 of file Movement.h.
Referenced by AddZone(), GetZones(), Movement(), PerformMovement(), ReadZones(), and WriteMovement().