Nektar++
|
#include <Conditions.h>
Public Member Functions | |
BoundaryConditions (const LibUtilities::SessionReaderSharedPtr &pSession, const MeshGraphSharedPtr &meshGraph) | |
BoundaryConditions (void) | |
~BoundaryConditions (void) | |
const BoundaryRegionCollection & | GetBoundaryRegions (void) const |
void | AddBoundaryRegions (const int regionID, BoundaryRegionShPtr &bRegion) |
const BoundaryConditionCollection & | GetBoundaryConditions (void) const |
void | AddBoundaryConditions (const int regionID, BoundaryConditionMapShPtr &bCond) |
const std::string | GetVariable (unsigned int indx) |
std::map< int, LibUtilities::CommSharedPtr > | GetBoundaryCommunicators () const |
const std::map< int, std::string > & | GetBoundaryLabels (void) const |
Protected Attributes | |
MeshGraphSharedPtr | m_meshGraph |
The mesh graph to use for referencing geometry info. More... | |
LibUtilities::SessionReaderSharedPtr | m_session |
BoundaryRegionCollection | m_boundaryRegions |
std::map< int, std::string > | m_boundaryLabels |
BoundaryConditionCollection | m_boundaryConditions |
std::map< int, LibUtilities::CommSharedPtr > | m_boundaryCommunicators |
Private Member Functions | |
void | Read (TiXmlElement *conditions) |
Read segments (and general MeshGraph) given TiXmlDocument. More... | |
void | ReadBoundaryRegions (TiXmlElement *regions) |
void | ReadBoundaryConditions (TiXmlElement *conditions) |
void | CreateBoundaryComms () |
Definition at line 224 of file Conditions.h.
Nektar::SpatialDomains::BoundaryConditions::BoundaryConditions | ( | const LibUtilities::SessionReaderSharedPtr & | pSession, |
const MeshGraphSharedPtr & | meshGraph | ||
) |
Constructor - collective on the session's communicator.
Definition at line 48 of file Conditions.cpp.
Nektar::SpatialDomains::BoundaryConditions::BoundaryConditions | ( | void | ) |
Definition at line 57 of file Conditions.cpp.
Nektar::SpatialDomains::BoundaryConditions::~BoundaryConditions | ( | void | ) |
Definition at line 61 of file Conditions.cpp.
|
inline |
Definition at line 249 of file Conditions.h.
References m_boundaryConditions.
Referenced by Nektar::PulseWaveSystem::SetUpDomainInterfaceBCs().
|
inline |
Definition at line 239 of file Conditions.h.
References m_boundaryRegions.
Referenced by Nektar::PulseWaveSystem::SetUpDomainInterfaceBCs().
|
private |
Create a new communicator for each boundary region. Collective on the session's communicator.
Definition at line 180 of file Conditions.cpp.
References ASSERTL0, m_boundaryCommunicators, m_boundaryRegions, m_session, and Nektar::SpatialDomains::ShareAllBoundaryIDs().
Referenced by Read().
|
inline |
Definition at line 260 of file Conditions.h.
References m_boundaryCommunicators.
Referenced by Nektar::FieldUtils::OutputFileBase::v_Process().
|
inline |
Definition at line 244 of file Conditions.h.
References m_boundaryConditions.
Referenced by Nektar::MultiRegions::DisContField::FindPeriodicTraces(), Nektar::MultiRegions::DisContField::GenerateBoundaryConditionExpansion(), Nektar::MultiRegions::DisContField::GetDomainBCs(), and Nektar::MultiRegions::DisContField3DHomogeneous1D::SetupBoundaryConditions().
|
inline |
Definition at line 265 of file Conditions.h.
References m_boundaryLabels.
Referenced by Nektar::FieldUtils::OutputVtk::OutputFromExpLowOrderMultiBlock().
|
inline |
Definition at line 234 of file Conditions.h.
References m_boundaryRegions.
Referenced by Nektar::SolverUtils::ForcingAbsorption::CalcAbsorption(), Nektar::MultiRegions::DisContField::FindPeriodicTraces(), Nektar::MultiRegions::DisContField::GenerateBoundaryConditionExpansion(), Nektar::MultiRegions::DisContField::GetDomainBCs(), main(), Nektar::FieldUtils::OutputVtk::OutputFromExpLowOrderMultiBlock(), Nektar::MultiRegions::DisContField3DHomogeneous1D::SetupBoundaryConditions(), Nektar::MultiRegions::DisContField3DHomogeneous2D::SetupBoundaryConditions(), Nektar::PulseWaveSystem::SetUpDomainInterfaceBCs(), Nektar::SolverUtils::FilterAeroForces::v_Initialise(), Nektar::FilterMovingBody::v_Initialise(), Nektar::FieldUtils::OutputFileBase::v_Process(), Nektar::FieldUtils::ProcessBodyFittedVelocity::v_Process(), Nektar::FieldUtils::ProcessBoundaryExtract::v_Process(), Nektar::FieldUtils::ProcessWallNormalData::v_Process(), and Nektar::FieldUtils::ProcessWSS::v_Process().
|
inline |
Definition at line 255 of file Conditions.h.
References m_session.
|
private |
Read segments (and general MeshGraph) given TiXmlDocument.
Collective on the session's communicator.
Definition at line 220 of file Conditions.cpp.
References ASSERTL0, CreateBoundaryComms(), ReadBoundaryConditions(), and ReadBoundaryRegions().
Referenced by BoundaryConditions().
|
private |
Definition at line 328 of file Conditions.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::StdRegions::find(), Nektar::ParseUtils::GenerateSeqVector(), Nektar::LibUtilities::SessionReader::GetXMLElementTimeLevel(), m_boundaryCommunicators, m_boundaryConditions, m_boundaryRegions, and m_session.
Referenced by Read().
|
private |
All elements are of the form: "<B ID="#"> ... </B>", with ? being the element type.
Definition at line 238 of file Conditions.cpp.
References ASSERTL0, Nektar::LibUtilities::SessionReader::GetXMLElementTimeLevel(), m_boundaryLabels, m_boundaryRegions, m_meshGraph, m_session, and CellMLToNektar.pycml::name.
Referenced by Read().
|
protected |
Definition at line 278 of file Conditions.h.
Referenced by CreateBoundaryComms(), GetBoundaryCommunicators(), and ReadBoundaryConditions().
|
protected |
Definition at line 277 of file Conditions.h.
Referenced by AddBoundaryConditions(), GetBoundaryConditions(), and ReadBoundaryConditions().
|
protected |
Definition at line 276 of file Conditions.h.
Referenced by GetBoundaryLabels(), and ReadBoundaryRegions().
|
protected |
Definition at line 275 of file Conditions.h.
Referenced by AddBoundaryRegions(), CreateBoundaryComms(), GetBoundaryRegions(), ReadBoundaryConditions(), and ReadBoundaryRegions().
|
protected |
The mesh graph to use for referencing geometry info.
Definition at line 272 of file Conditions.h.
Referenced by ReadBoundaryRegions().
|
protected |
Definition at line 273 of file Conditions.h.
Referenced by BoundaryConditions(), CreateBoundaryComms(), GetVariable(), ReadBoundaryConditions(), and ReadBoundaryRegions().