35#ifndef NEKTAR_SOLVERUTILS_FILTERS_EVALUATEPOINTS_H
36#define NEKTAR_SOLVERUTILS_FILTERS_EVALUATEPOINTS_H
52class StationaryPoints;
62 std::string filename,
bool verbose,
63 std::map<std::string, NekDouble> ¶ms)
131 std::map<std::string, NekDouble> ¶ms) = 0;
187 if (
m_data.size() < nPhys)
221 std::map<
int, std::set<int>> &callbackUpdateMobCoords);
223 std::map<
int, std::set<int>> &callbackUpdateMobCoords);
228 const NekDouble &time, std::vector<std::string> &defaultValues);
237 std::set<int> ¬found);
240 std::set<int> ¬found);
244 void Pack2Int(
const int &a,
const int &b,
double &
d);
246 void Pack3Int(
const int &a,
const int &b,
const int &c,
double &
d);
247 void unPack3Int(
int &a,
int &b,
int &c,
const double &
d);
248 void Pack2Short(
const int &a,
const int &b,
int &c);
#define SOLVER_UTILS_EXPORT
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
void PartitionLocalPoints(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, std::set< int > ¬found)
SOLVER_UTILS_EXPORT void EvaluateMobilePhys(const MultiRegions::ExpListSharedPtr &pField, std::vector< Array< OneD, NekDouble > > &PhysicsData, NekDouble time)
std::map< int, int > m_recvStatInfo
SOLVER_UTILS_EXPORT void Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time, std::vector< std::string > &defaultValues)
NekDouble GetDefaultValue(const int i, const Array< OneD, const NekDouble > x, const NekDouble time)
SOLVER_UTILS_EXPORT void PassMobilePhysToStatic(std::map< int, std::set< int > > &callbackUpdateMobCoords)
void Pack2Int(const int &a, const int &b, double &d)
SOLVER_UTILS_EXPORT void PartitionMobilePts(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields)
virtual ~EvaluatePoints()
void unPack2Short(int &a, int &b, const int &c)
SOLVER_UTILS_EXPORT void SetUpCommInfo()
SOLVER_UTILS_EXPORT void CopyMobilePtsToStatic()
SOLVER_UTILS_EXPORT void CopyStaticPtsToMobile()
void Pack2Short(const int &a, const int &b, int &c)
StationaryPointsSharedPtr m_staticPts
virtual void v_ModifyVelocity(Array< OneD, NekDouble > gcoords, NekDouble time, Array< OneD, NekDouble > vel)
SOLVER_UTILS_EXPORT EvaluatePoints()
void PartitionExchangeNonlocalPoints(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, std::set< int > ¬found)
void GatherMobilePhysics(std::map< int, Array< OneD, NekDouble > > &revData)
void Pack3Int(const int &a, const int &b, const int &c, double &d)
void unPack2Int(int &a, int &b, const double &d)
void UpdateMobileCoords(std::map< int, Array< OneD, NekDouble > > &globalCoords)
std::map< int, int > m_recvMobInfo
std::map< int, MobilePointSharedPtr > m_mobilePts
LibUtilities::CommSharedPtr m_comm
std::map< int, LibUtilities::EquationSharedPtr > m_defaultValueFunction
SOLVER_UTILS_EXPORT void PassStaticCoordsToMobile(std::map< int, std::set< int > > &callbackUpdateMobCoords)
void unPack3Int(int &a, int &b, int &c, const double &d)
Array< OneD, NekDouble > m_data
Array< OneD, NekDouble > m_global
static MobilePointSharedPtr create(int dim, int sRank, const Array< OneD, NekDouble > global)
Creates an instance of this class.
void SetLocalCoords(int eId, const Array< OneD, NekDouble > &local)
MobilePoint(int dim, int sRank, const Array< OneD, NekDouble > global)
Array< OneD, NekDouble > GetData()
Array< OneD, NekDouble > m_local
Array< OneD, NekDouble > GetLocalCoords()
void SetGlobalCoords(const Array< OneD, NekDouble > &global)
Array< OneD, NekDouble > GetGlobalCoords()
void SetData(int nPhys, const Array< OneD, NekDouble > data)
void SetCoordsByPID(int pid, const Array< OneD, NekDouble > &gcoords)
void GetCoordsByPID(int pid, Array< OneD, NekDouble > &gcoords)
virtual void v_GetPhysics(int pid, Array< OneD, NekDouble > &data)=0
virtual void v_SetPhysics(int pid, const Array< OneD, NekDouble > &data)=0
void GetPhysicsByPID(int pid, Array< OneD, NekDouble > &data)
void SetPhysics(int pid, const Array< OneD, NekDouble > &data)
virtual void v_SetCoords(int pid, const Array< OneD, NekDouble > &gcoords)=0
virtual void v_TimeAdvance(int order)=0
void AssignPoint(int id, int pid, const Array< OneD, NekDouble > &gcoords)
void TimeAdvance(int order)
SOLVER_UTILS_EXPORT void OutputData(std::string filename, bool verbose, std::map< std::string, NekDouble > ¶ms)
void SetPhysicsByPID(int pid, const Array< OneD, NekDouble > &data)
void GetPhysics(int pid, Array< OneD, NekDouble > &data)
int LocalToGlobal(int id)
virtual void v_ReSize(int Np)=0
virtual void v_GetCoords(int pid, Array< OneD, NekDouble > &gcoords)=0
virtual void v_OutputData(std::string filename, bool verbose, std::map< std::string, NekDouble > ¶ms)=0
int GlobalToLocal(int id)
void GetCoords(int pid, Array< OneD, NekDouble > &gcoords)
void SetCoords(int pid, const Array< OneD, NekDouble > &gcoords)
virtual ~StationaryPoints()=default
virtual void v_AssignPoint(int id, int pid, const Array< OneD, NekDouble > &gcoords)
std::map< int, int > m_globalIDToLocal
std::map< int, int > m_localIDToGlobal
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::shared_ptr< StationaryPoints > StationaryPointsSharedPtr
std::shared_ptr< MobilePoint > MobilePointSharedPtr
std::vector< double > d(NPUPPER *NPUPPER)
void Vcopy(int n, const T *x, const int incx, T *y, const int incy)