Nektar++
|
#include <EvaluatePoints.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT | EvaluatePoints () |
virtual | ~EvaluatePoints () |
SOLVER_UTILS_EXPORT void | PartitionMobilePts (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields) |
SOLVER_UTILS_EXPORT void | EvaluateMobilePhys (const MultiRegions::ExpListSharedPtr &pField, std::vector< Array< OneD, NekDouble > > &PhysicsData, NekDouble time) |
SOLVER_UTILS_EXPORT void | PassMobilePhysToStatic (std::map< int, std::set< int > > &callbackUpdateMobCoords) |
SOLVER_UTILS_EXPORT void | PassStaticCoordsToMobile (std::map< int, std::set< int > > &callbackUpdateMobCoords) |
SOLVER_UTILS_EXPORT void | CopyStaticPtsToMobile () |
SOLVER_UTILS_EXPORT void | CopyMobilePtsToStatic () |
SOLVER_UTILS_EXPORT void | Initialise (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time, std::vector< std::string > &defaultValues) |
SOLVER_UTILS_EXPORT void | SetUpCommInfo () |
Protected Member Functions | |
void | UpdateMobileCoords (std::map< int, Array< OneD, NekDouble > > &globalCoords) |
void | GatherMobilePhysics (std::map< int, Array< OneD, NekDouble > > &revData) |
void | PartitionLocalPoints (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, std::set< int > ¬found) |
void | PartitionExchangeNonlocalPoints (const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, std::set< int > ¬found) |
void | SyncColumnComm () |
NekDouble | GetDefaultValue (const int i, const Array< OneD, const NekDouble > x, const NekDouble time) |
void | Pack2Int (const int &a, const int &b, double &d) |
void | unPack2Int (int &a, int &b, const double &d) |
void | Pack3Int (const int &a, const int &b, const int &c, double &d) |
void | unPack3Int (int &a, int &b, int &c, const double &d) |
void | Pack2Short (const int &a, const int &b, int &c) |
void | unPack2Short (int &a, int &b, const int &c) |
virtual void | v_ModifyVelocity (Array< OneD, NekDouble > gcoords, NekDouble time, Array< OneD, NekDouble > vel) |
Protected Attributes | |
int | m_spacedim |
int | m_rank |
int | m_rowRank |
int | m_columnRank |
bool | m_isHomogeneous1D |
int | m_nPhysics |
LibUtilities::CommSharedPtr | m_comm |
StationaryPointsSharedPtr | m_staticPts |
std::map< int, MobilePointSharedPtr > | m_mobilePts |
std::map< int, LibUtilities::EquationSharedPtr > | m_defaultValueFunction |
std::map< int, int > | m_recvMobInfo |
std::map< int, int > | m_recvStatInfo |
Definition at line 210 of file EvaluatePoints.h.
Nektar::SolverUtils::EvaluatePoints::EvaluatePoints | ( | ) |
Definition at line 104 of file EvaluatePoints.cpp.
|
virtual |
Definition at line 111 of file EvaluatePoints.cpp.
void Nektar::SolverUtils::EvaluatePoints::CopyMobilePtsToStatic | ( | ) |
Definition at line 737 of file EvaluatePoints.cpp.
References ASSERTL0, m_columnRank, m_isHomogeneous1D, m_mobilePts, m_staticPts, and CellMLToNektar.cellml_metadata::p.
void Nektar::SolverUtils::EvaluatePoints::CopyStaticPtsToMobile | ( | ) |
Definition at line 722 of file EvaluatePoints.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, m_columnRank, m_isHomogeneous1D, m_mobilePts, m_rank, m_spacedim, m_staticPts, and CellMLToNektar.cellml_metadata::p.
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Initialise().
void Nektar::SolverUtils::EvaluatePoints::EvaluateMobilePhys | ( | const MultiRegions::ExpListSharedPtr & | pField, |
std::vector< Array< OneD, NekDouble > > & | PhysicsData, | ||
NekDouble | time | ||
) |
Definition at line 154 of file EvaluatePoints.cpp.
References GetDefaultValue(), m_columnRank, m_comm, m_isHomogeneous1D, m_mobilePts, m_nPhysics, Nektar::LibUtilities::ReduceSum, and v_ModifyVelocity().
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Update().
|
protected |
Definition at line 274 of file EvaluatePoints.cpp.
References m_columnRank, m_comm, m_mobilePts, m_nPhysics, m_rank, m_recvMobInfo, CellMLToNektar.cellml_metadata::p, Pack3Int(), and Vmath::Vcopy().
Referenced by PassMobilePhysToStatic().
|
protected |
Definition at line 673 of file EvaluatePoints.cpp.
References m_defaultValueFunction, m_spacedim, and Nektar::UnitTests::z().
Referenced by EvaluateMobilePhys().
void Nektar::SolverUtils::EvaluatePoints::Initialise | ( | const Array< OneD, const MultiRegions::ExpListSharedPtr > & | pFields, |
const NekDouble & | time, | ||
std::vector< std::string > & | defaultValues | ||
) |
Definition at line 118 of file EvaluatePoints.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), ASSERTL0, Nektar::ErrorUtil::efatal, m_columnRank, m_comm, m_defaultValueFunction, m_isHomogeneous1D, m_rank, m_rowRank, m_spacedim, and NEKERROR.
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Initialise().
|
protected |
Definition at line 55 of file EvaluatePoints.cpp.
References Nektar::UnitTests::d(), and CellMLToNektar.cellml_metadata::p.
Referenced by PartitionExchangeNonlocalPoints(), and SyncColumnComm().
|
protected |
Definition at line 88 of file EvaluatePoints.cpp.
References CellMLToNektar.cellml_metadata::p.
Referenced by SetUpCommInfo().
|
protected |
Definition at line 69 of file EvaluatePoints.cpp.
References Nektar::UnitTests::d(), CellMLToNektar.cellml_metadata::p, and Nektar::UnitTests::q().
Referenced by GatherMobilePhysics(), PartitionExchangeNonlocalPoints(), and PassStaticCoordsToMobile().
|
protected |
Definition at line 464 of file EvaluatePoints.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), m_columnRank, m_comm, m_isHomogeneous1D, m_mobilePts, m_rank, m_recvMobInfo, m_recvStatInfo, m_rowRank, m_spacedim, CellMLToNektar.cellml_metadata::p, Pack2Int(), Pack3Int(), Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::ReduceSum, unPack2Int(), and unPack3Int().
Referenced by PartitionMobilePts().
|
protected |
Definition at line 429 of file EvaluatePoints.cpp.
References m_columnRank, m_isHomogeneous1D, m_mobilePts, and CellMLToNektar.cellml_metadata::p.
Referenced by PartitionMobilePts().
void Nektar::SolverUtils::EvaluatePoints::PartitionMobilePts | ( | const Array< OneD, const MultiRegions::ExpListSharedPtr > & | pFields | ) |
Definition at line 381 of file EvaluatePoints.cpp.
References PartitionExchangeNonlocalPoints(), PartitionLocalPoints(), and SyncColumnComm().
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Update().
void Nektar::SolverUtils::EvaluatePoints::PassMobilePhysToStatic | ( | std::map< int, std::set< int > > & | callbackUpdateMobCoords | ) |
Definition at line 390 of file EvaluatePoints.cpp.
References GatherMobilePhysics(), m_nPhysics, m_staticPts, and unPack3Int().
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Update().
void Nektar::SolverUtils::EvaluatePoints::PassStaticCoordsToMobile | ( | std::map< int, std::set< int > > & | callbackUpdateMobCoords | ) |
Definition at line 410 of file EvaluatePoints.cpp.
References m_rank, m_spacedim, m_staticPts, CellMLToNektar.cellml_metadata::p, Pack3Int(), and UpdateMobileCoords().
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Update().
void Nektar::SolverUtils::EvaluatePoints::SetUpCommInfo | ( | ) |
Definition at line 321 of file EvaluatePoints.cpp.
References m_columnRank, m_comm, m_mobilePts, m_rank, m_recvMobInfo, m_recvStatInfo, m_rowRank, CellMLToNektar.cellml_metadata::p, Pack2Short(), Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::ReduceSum, and unPack2Short().
Referenced by Nektar::SolverUtils::FilterLagrangianPoints::v_Initialise().
|
protected |
Definition at line 621 of file EvaluatePoints.cpp.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr(), m_columnRank, m_comm, m_isHomogeneous1D, m_mobilePts, m_spacedim, CellMLToNektar.cellml_metadata::p, Pack2Int(), Nektar::LibUtilities::ReduceMax, Nektar::LibUtilities::ReduceSum, unPack2Int(), and Vmath::Vcopy().
Referenced by PartitionMobilePts().
|
protected |
Definition at line 62 of file EvaluatePoints.cpp.
References Nektar::UnitTests::d(), and CellMLToNektar.cellml_metadata::p.
Referenced by PartitionExchangeNonlocalPoints(), and SyncColumnComm().
|
protected |
Definition at line 95 of file EvaluatePoints.cpp.
References CellMLToNektar.cellml_metadata::p.
Referenced by SetUpCommInfo().
|
protected |
Definition at line 79 of file EvaluatePoints.cpp.
References Nektar::UnitTests::d(), CellMLToNektar.cellml_metadata::p, and Nektar::UnitTests::q().
Referenced by PartitionExchangeNonlocalPoints(), PassMobilePhysToStatic(), and UpdateMobileCoords().
|
protected |
Definition at line 688 of file EvaluatePoints.cpp.
References m_columnRank, m_comm, m_isHomogeneous1D, m_mobilePts, m_rank, m_recvStatInfo, m_spacedim, and unPack3Int().
Referenced by PassStaticCoordsToMobile().
|
protectedvirtual |
Reimplemented in Nektar::SolverUtils::FilterLagrangianPoints.
Definition at line 266 of file EvaluatePoints.cpp.
Referenced by EvaluateMobilePhys().
|
protected |
Definition at line 255 of file EvaluatePoints.h.
Referenced by CopyMobilePtsToStatic(), CopyStaticPtsToMobile(), EvaluateMobilePhys(), GatherMobilePhysics(), Initialise(), PartitionExchangeNonlocalPoints(), PartitionLocalPoints(), SetUpCommInfo(), SyncColumnComm(), and UpdateMobileCoords().
|
protected |
Definition at line 258 of file EvaluatePoints.h.
Referenced by EvaluateMobilePhys(), GatherMobilePhysics(), Initialise(), PartitionExchangeNonlocalPoints(), SetUpCommInfo(), SyncColumnComm(), and UpdateMobileCoords().
|
protected |
Definition at line 261 of file EvaluatePoints.h.
Referenced by GetDefaultValue(), and Initialise().
|
protected |
Definition at line 256 of file EvaluatePoints.h.
Referenced by CopyMobilePtsToStatic(), CopyStaticPtsToMobile(), EvaluateMobilePhys(), Initialise(), PartitionExchangeNonlocalPoints(), PartitionLocalPoints(), SyncColumnComm(), and UpdateMobileCoords().
|
protected |
Definition at line 260 of file EvaluatePoints.h.
Referenced by CopyMobilePtsToStatic(), CopyStaticPtsToMobile(), EvaluateMobilePhys(), GatherMobilePhysics(), PartitionExchangeNonlocalPoints(), PartitionLocalPoints(), SetUpCommInfo(), SyncColumnComm(), and UpdateMobileCoords().
|
protected |
Definition at line 257 of file EvaluatePoints.h.
Referenced by EvaluateMobilePhys(), GatherMobilePhysics(), and PassMobilePhysToStatic().
|
protected |
Definition at line 253 of file EvaluatePoints.h.
Referenced by CopyStaticPtsToMobile(), GatherMobilePhysics(), Initialise(), Nektar::SolverUtils::FilterLagrangianPoints::OutputStatPoints(), PartitionExchangeNonlocalPoints(), PassStaticCoordsToMobile(), SetUpCommInfo(), UpdateMobileCoords(), and Nektar::SolverUtils::FilterLagrangianPoints::v_Initialise().
|
protected |
Definition at line 267 of file EvaluatePoints.h.
Referenced by GatherMobilePhysics(), PartitionExchangeNonlocalPoints(), and SetUpCommInfo().
|
protected |
Definition at line 268 of file EvaluatePoints.h.
Referenced by PartitionExchangeNonlocalPoints(), SetUpCommInfo(), and UpdateMobileCoords().
|
protected |
Definition at line 254 of file EvaluatePoints.h.
Referenced by Initialise(), PartitionExchangeNonlocalPoints(), and SetUpCommInfo().
|
protected |
Definition at line 252 of file EvaluatePoints.h.
Referenced by CopyStaticPtsToMobile(), Nektar::SolverUtils::FilterLagrangianPoints::ExtraPhysicsVars(), GetDefaultValue(), Nektar::SolverUtils::FilterLagrangianPoints::GetPhysicsData(), Initialise(), Nektar::SolverUtils::FilterLagrangianPoints::OutputSamplePoints(), PartitionExchangeNonlocalPoints(), PassStaticCoordsToMobile(), SyncColumnComm(), UpdateMobileCoords(), Nektar::SolverUtils::FilterLagrangianPoints::v_Initialise(), and Nektar::SolverUtils::FilterLagrangianPoints::v_ModifyVelocity().
|
protected |
Definition at line 259 of file EvaluatePoints.h.
Referenced by CopyMobilePtsToStatic(), CopyStaticPtsToMobile(), Nektar::SolverUtils::FilterLagrangianPoints::OutputSamplePoints(), Nektar::SolverUtils::FilterLagrangianPoints::OutputStatPoints(), PassMobilePhysToStatic(), PassStaticCoordsToMobile(), Nektar::SolverUtils::FilterLagrangianPoints::v_Initialise(), and Nektar::SolverUtils::FilterLagrangianPoints::v_Update().