35#ifndef NEKTAR_SOLVERUTILS_FILTERS_FILTERENERGY1D_H
36#define NEKTAR_SOLVERUTILS_FILTERS_FILTERENERGY1D_H
58 const std::shared_ptr<EquationSystem> &pEquation,
59 const std::map<std::string, std::string> &pParams)
62 pSession, pEquation, pParams);
71 const std::shared_ptr<EquationSystem> &pEquation,
#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.
Filter for one-dimensional energy spectrum.
void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pField, const NekDouble &time) override
Initialize filter.
static std::string className
Name of the class.
SOLVER_UTILS_EXPORT ~FilterEnergy1D() override
Destructor.
bool v_IsTimeDependent() override
unsigned int m_outputFrequency
Output frequency.
SOLVER_UTILS_EXPORT FilterEnergy1D(const LibUtilities::SessionReaderSharedPtr &pSession, const std::shared_ptr< EquationSystem > &pEquation, const ParamMap &pParams)
Set up filter with output file and frequency parameters.
void v_Update(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pField, const NekDouble &time) override
Update filter output with the current timestep's orthogonal coefficients.
static FilterSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const std::shared_ptr< EquationSystem > &pEquation, const std::map< std::string, std::string > &pParams)
Creates an instance of this class.
unsigned int m_index
Current index counter.
void v_Finalise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pField, const NekDouble &time) override
std::ofstream m_out
Output file.
std::map< std::string, std::string > ParamMap
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Filter > FilterSharedPtr
A shared pointer to a Driver object.