Nektar++
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Nektar::SolverUtils::StationaryPoints Class Referenceabstract

#include <EvaluatePoints.h>

Inheritance diagram for Nektar::SolverUtils::StationaryPoints:
[legend]

Public Member Functions

virtual ~StationaryPoints ()=default
 
SOLVER_UTILS_EXPORT void OutputData (std::string filename, bool verbose, std::map< std::string, NekDouble > &params)
 
void ReSize (int Np)
 
void AssignPoint (int id, int pid, const Array< OneD, NekDouble > &gcoords)
 
void GetCoordsByPID (int pid, Array< OneD, NekDouble > &gcoords)
 
void SetCoordsByPID (int pid, const Array< OneD, NekDouble > &gcoords)
 
void GetPhysicsByPID (int pid, Array< OneD, NekDouble > &data)
 
void SetPhysicsByPID (int pid, const Array< OneD, NekDouble > &data)
 
void GetCoords (int pid, Array< OneD, NekDouble > &gcoords)
 
void SetCoords (int pid, const Array< OneD, NekDouble > &gcoords)
 
void GetPhysics (int pid, Array< OneD, NekDouble > &data)
 
void SetPhysics (int pid, const Array< OneD, NekDouble > &data)
 
void TimeAdvance (int order)
 
int GetTotPoints ()
 
int GetDim ()
 
int LocalToGlobal (int id)
 
int GlobalToLocal (int id)
 

Protected Member Functions

virtual void v_OutputData (std::string filename, bool verbose, std::map< std::string, NekDouble > &params)=0
 
virtual void v_TimeAdvance (int order)=0
 
virtual void v_GetCoords (int pid, Array< OneD, NekDouble > &gcoords)=0
 
virtual void v_SetCoords (int pid, const Array< OneD, NekDouble > &gcoords)=0
 
virtual void v_GetPhysics (int pid, Array< OneD, NekDouble > &data)=0
 
virtual void v_SetPhysics (int pid, const Array< OneD, NekDouble > &data)=0
 
virtual void v_ReSize (int Np)=0
 
virtual void v_AssignPoint (int id, int pid, const Array< OneD, NekDouble > &gcoords)
 

Protected Attributes

int m_dim
 
int m_totPts
 
std::map< int, int > m_localIDToGlobal
 
std::map< int, int > m_globalIDToLocal
 

Detailed Description

Definition at line 57 of file EvaluatePoints.h.

Constructor & Destructor Documentation

◆ ~StationaryPoints()

virtual Nektar::SolverUtils::StationaryPoints::~StationaryPoints ( )
virtualdefault

Member Function Documentation

◆ AssignPoint()

void Nektar::SolverUtils::StationaryPoints::AssignPoint ( int  id,
int  pid,
const Array< OneD, NekDouble > &  gcoords 
)
inline

Definition at line 71 of file EvaluatePoints.h.

73 {
74 v_AssignPoint(id, pid, gcoords);
75 }
virtual void v_AssignPoint(int id, int pid, const Array< OneD, NekDouble > &gcoords)

References v_AssignPoint().

◆ GetCoords()

void Nektar::SolverUtils::StationaryPoints::GetCoords ( int  pid,
Array< OneD, NekDouble > &  gcoords 
)
inline

Definition at line 92 of file EvaluatePoints.h.

93 {
94 v_GetCoords(pid, gcoords);
95 }
virtual void v_GetCoords(int pid, Array< OneD, NekDouble > &gcoords)=0

References v_GetCoords().

◆ GetCoordsByPID()

void Nektar::SolverUtils::StationaryPoints::GetCoordsByPID ( int  pid,
Array< OneD, NekDouble > &  gcoords 
)
inline

Definition at line 76 of file EvaluatePoints.h.

77 {
78 v_GetCoords(GlobalToLocal(pid), gcoords);
79 }

References GlobalToLocal(), and v_GetCoords().

◆ GetDim()

int Nektar::SolverUtils::StationaryPoints::GetDim ( )
inline

Definition at line 116 of file EvaluatePoints.h.

117 {
118 return m_dim;
119 }

References m_dim.

◆ GetPhysics()

void Nektar::SolverUtils::StationaryPoints::GetPhysics ( int  pid,
Array< OneD, NekDouble > &  data 
)
inline

Definition at line 100 of file EvaluatePoints.h.

101 {
102 v_GetPhysics(pid, data);
103 }
virtual void v_GetPhysics(int pid, Array< OneD, NekDouble > &data)=0

References v_GetPhysics().

◆ GetPhysicsByPID()

void Nektar::SolverUtils::StationaryPoints::GetPhysicsByPID ( int  pid,
Array< OneD, NekDouble > &  data 
)
inline

Definition at line 84 of file EvaluatePoints.h.

85 {
86 v_GetPhysics(GlobalToLocal(pid), data);
87 }

References GlobalToLocal(), and v_GetPhysics().

◆ GetTotPoints()

int Nektar::SolverUtils::StationaryPoints::GetTotPoints ( void  )
inline

Definition at line 112 of file EvaluatePoints.h.

113 {
114 return m_totPts;
115 }

References m_totPts.

◆ GlobalToLocal()

int Nektar::SolverUtils::StationaryPoints::GlobalToLocal ( int  id)
inline

Definition at line 124 of file EvaluatePoints.h.

125 {
126 return m_globalIDToLocal[id];
127 }

References m_globalIDToLocal.

Referenced by GetCoordsByPID(), GetPhysicsByPID(), SetCoordsByPID(), and SetPhysicsByPID().

◆ LocalToGlobal()

int Nektar::SolverUtils::StationaryPoints::LocalToGlobal ( int  id)
inline

Definition at line 120 of file EvaluatePoints.h.

121 {
122 return m_localIDToGlobal[id];
123 }

References m_localIDToGlobal.

◆ OutputData()

SOLVER_UTILS_EXPORT void Nektar::SolverUtils::StationaryPoints::OutputData ( std::string  filename,
bool  verbose,
std::map< std::string, NekDouble > &  params 
)
inline

Definition at line 61 of file EvaluatePoints.h.

64 {
65 v_OutputData(filename, verbose, params);
66 }
virtual void v_OutputData(std::string filename, bool verbose, std::map< std::string, NekDouble > &params)=0

References v_OutputData().

◆ ReSize()

void Nektar::SolverUtils::StationaryPoints::ReSize ( int  Np)
inline

Definition at line 67 of file EvaluatePoints.h.

68 {
69 v_ReSize(Np);
70 }

References v_ReSize().

◆ SetCoords()

void Nektar::SolverUtils::StationaryPoints::SetCoords ( int  pid,
const Array< OneD, NekDouble > &  gcoords 
)
inline

Definition at line 96 of file EvaluatePoints.h.

97 {
98 v_SetCoords(pid, gcoords);
99 }
virtual void v_SetCoords(int pid, const Array< OneD, NekDouble > &gcoords)=0

References v_SetCoords().

◆ SetCoordsByPID()

void Nektar::SolverUtils::StationaryPoints::SetCoordsByPID ( int  pid,
const Array< OneD, NekDouble > &  gcoords 
)
inline

Definition at line 80 of file EvaluatePoints.h.

81 {
82 v_SetCoords(GlobalToLocal(pid), gcoords);
83 }

References GlobalToLocal(), and v_SetCoords().

◆ SetPhysics()

void Nektar::SolverUtils::StationaryPoints::SetPhysics ( int  pid,
const Array< OneD, NekDouble > &  data 
)
inline

Definition at line 104 of file EvaluatePoints.h.

105 {
106 v_SetPhysics(pid, data);
107 }
virtual void v_SetPhysics(int pid, const Array< OneD, NekDouble > &data)=0

References v_SetPhysics().

◆ SetPhysicsByPID()

void Nektar::SolverUtils::StationaryPoints::SetPhysicsByPID ( int  pid,
const Array< OneD, NekDouble > &  data 
)
inline

Definition at line 88 of file EvaluatePoints.h.

89 {
90 v_SetPhysics(GlobalToLocal(pid), data);
91 }

References GlobalToLocal(), and v_SetPhysics().

◆ TimeAdvance()

void Nektar::SolverUtils::StationaryPoints::TimeAdvance ( int  order)
inline

Definition at line 108 of file EvaluatePoints.h.

109 {
110 v_TimeAdvance(order);
111 }
virtual void v_TimeAdvance(int order)=0

References v_TimeAdvance().

◆ v_AssignPoint()

void Nektar::SolverUtils::StationaryPoints::v_AssignPoint ( int  id,
int  pid,
const Array< OneD, NekDouble > &  gcoords 
)
protectedvirtual

◆ v_GetCoords()

virtual void Nektar::SolverUtils::StationaryPoints::v_GetCoords ( int  pid,
Array< OneD, NekDouble > &  gcoords 
)
protectedpure virtual

◆ v_GetPhysics()

virtual void Nektar::SolverUtils::StationaryPoints::v_GetPhysics ( int  pid,
Array< OneD, NekDouble > &  data 
)
protectedpure virtual

◆ v_OutputData()

virtual void Nektar::SolverUtils::StationaryPoints::v_OutputData ( std::string  filename,
bool  verbose,
std::map< std::string, NekDouble > &  params 
)
protectedpure virtual

◆ v_ReSize()

virtual void Nektar::SolverUtils::StationaryPoints::v_ReSize ( int  Np)
protectedpure virtual

Implemented in Nektar::SolverUtils::StatLagrangianPoints.

Referenced by ReSize().

◆ v_SetCoords()

virtual void Nektar::SolverUtils::StationaryPoints::v_SetCoords ( int  pid,
const Array< OneD, NekDouble > &  gcoords 
)
protectedpure virtual

◆ v_SetPhysics()

virtual void Nektar::SolverUtils::StationaryPoints::v_SetPhysics ( int  pid,
const Array< OneD, NekDouble > &  data 
)
protectedpure virtual

◆ v_TimeAdvance()

virtual void Nektar::SolverUtils::StationaryPoints::v_TimeAdvance ( int  order)
protectedpure virtual

Member Data Documentation

◆ m_dim

int Nektar::SolverUtils::StationaryPoints::m_dim
protected

◆ m_globalIDToLocal

std::map<int, int> Nektar::SolverUtils::StationaryPoints::m_globalIDToLocal
protected

◆ m_localIDToGlobal

std::map<int, int> Nektar::SolverUtils::StationaryPoints::m_localIDToGlobal
protected

◆ m_totPts

int Nektar::SolverUtils::StationaryPoints::m_totPts
protected