37#include <boost/format.hpp>
54 const std::weak_ptr<SolverUtils::EquationSystem> &pEquation,
81 const size_t numFields =
m_cell->GetNumCellVariables();
89 for (
size_t j = 0; j < numFields; ++j)
94 const int nppp = pFields[0]->GetPlane(0)->GetTotPoints();
98 locCoord = std::get<1>(x);
99 const int indx = std::get<2>(x);
100 const int expId = std::get<3>(x);
103 pFields[j]->GetPhys_Offset(expId);
106 data[indx * numFields + j] =
107 pFields[0]->GetExp(expId)->StdPhysEvaluate(locCoord,
115 locCoord = std::get<1>(x);
116 const int indx = std::get<2>(x);
117 const int expId = std::get<3>(x);
119 physvals =
m_cell->GetCellSolution(j) +
120 pFields[0]->GetPhys_Offset(expId);
123 data[indx * numFields + j] =
124 pFields[0]->GetExp(expId)->StdPhysEvaluate(locCoord,
133 v_WriteData(vComm->GetRank(), data, numFields, time);
138 const int &numFields,
150 std::stringstream vOutputFilename;
162 m_outputStream.open(vOutputFilename.str().c_str(), ofstream::app);
208 for (
int j = 0; j < numFields; ++j)
CellModelSharedPtr m_cell
static SolverUtils::FilterSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< SolverUtils::EquationSystem > &pEquation, const ParamMap &pParams)
Creates an instance of this class.
static std::string className
Name of the class.
virtual void v_WriteData(const int &rank, const Array< OneD, NekDouble > &data, const int &numFields, const NekDouble &time)
~FilterCellHistoryPoints() override
FilterCellHistoryPoints(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< SolverUtils::EquationSystem > &pEquation, const ParamMap &pParams)
void v_Update(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
unsigned int m_outputFrequency
Array< OneD, Array< OneD, const NekDouble > > m_historyPoints
std::ofstream m_outputStream
int m_outputPlane
plane to take history point from if using a homogeneous1D expansion
unsigned int m_outputIndex
std::list< std::tuple< Array< OneD, const NekDouble >, Array< OneD, const NekDouble >, int, int > > m_historyList
std::map< std::string, std::string > ParamMap
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Comm > CommSharedPtr
Pointer to a Communicator object.
FilterFactory & GetFilterFactory()