36#ifndef NEKTAR_INCNAVIERSTOKES_FILTERS_FILTERAEROFORCESSPM_H
37#define NEKTAR_INCNAVIERSTOKES_FILTERS_FILTERAEROFORCESSPM_H
49 const std::weak_ptr<SolverUtils::EquationSystem> &pEquation,
50 const std::map<std::string, std::string> &pParams)
54 pSession, pEquation, pParams);
63 const std::weak_ptr<SolverUtils::EquationSystem> &pEquation,
64 const std::map<std::string, std::string> &pParams);
void v_Initialise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override
NekDouble m_spaceDim
Dimension of the fluid domain.
void v_Update(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override
unsigned int m_outputFrequency
void CalculateForces(const Array< OneD, Array< OneD, NekDouble > > &pIntVel, const Array< OneD, Array< OneD, NekDouble > > &pUpPrev, const MultiRegions::ExpListSharedPtr &pPhi, NekDouble time, NekDouble dt)
Determine the total force on the body defined by (note that if the shape function represents more th...
~FilterAeroForcesSPM() override
static std::string className
Name of the class.
FilterAeroForcesSPM(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< SolverUtils::EquationSystem > &pEquation, const std::map< std::string, std::string > &pParams)
std::vector< std::string > m_dirNames
STL vector containing the names of the different directions.
bool v_IsTimeDependent() override
Array< OneD, NekDouble > m_Forces
Array storing the last value of the aerodynamic forces.
static SolverUtils::FilterSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< SolverUtils::EquationSystem > &pEquation, const std::map< std::string, std::string > &pParams)
Creates an instance of this class.
void v_Finalise(const Array< OneD, const MultiRegions::ExpListSharedPtr > &pFields, const NekDouble &time) override
std::ofstream m_outputStream
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::shared_ptr< Filter > FilterSharedPtr
A shared pointer to a Driver object.
std::shared_ptr< FilterAeroForcesSPM > FilterAeroForcesSPMSharedPtr