35 #ifndef NEKTAR_SOLVERUTILS_FILTERS_FILTERENERGY1D_H
36 #define NEKTAR_SOLVERUTILS_FILTERS_FILTERENERGY1D_H
60 const std::weak_ptr<EquationSystem> &pEquation,
61 const std::map<std::string, std::string> &pParams)
73 const std::weak_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.
static std::string className
Name of the class.
SOLVER_UTILS_EXPORT FilterEnergy1D(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const ParamMap &pParams)
Set up filter with output file and frequency parameters.
unsigned int m_outputFrequency
Output frequency.
unsigned int m_index
Current index counter.
virtual void v_Finalise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pField, const NekDouble &time)
SOLVER_UTILS_EXPORT ~FilterEnergy1D()
Destructor.
virtual void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pField, const NekDouble &time)
Initialize filter.
std::ofstream m_out
Output file.
virtual void v_Update(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pField, const NekDouble &time)
Update filter output with the current timestep's orthogonal coefficients.
virtual bool v_IsTimeDependent()
static FilterSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const std::map< std::string, std::string > &pParams)
Creates an instance of this class.
std::map< std::string, std::string > ParamMap
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< Filter > FilterSharedPtr
A shared pointer to a Driver object.
The above copyright notice and this permission notice shall be included.