35#ifndef NEKTAR_SOLVERUTILS_FORCINGLORENTZ
36#define NEKTAR_SOLVERUTILS_FORCINGLORENTZ
57 const std::weak_ptr<EquationSystem> &pEquation,
59 const unsigned int &pNumForcingFields,
64 p->InitObject(pFields, pNumForcingFields, pForce);
74 const unsigned int &pNumForcingFields,
84 const std::weak_ptr<EquationSystem> &pEquation);
A single node of a format-neutral session configuration tree.
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.
Defines a forcing term to be explicitly applied.
Array< OneD, Array< OneD, NekDouble > > m_Efield
VelocityCorrectionSchemeSharedPtr m_FluidEq
static std::string classNameBody
Name of the class.
static ForcingSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const std::weak_ptr< EquationSystem > &pEquation, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const LibUtilities::SessionNode &pForce)
Creates an instance of this class.
Array< OneD, NekDouble > m_B0
Array< OneD, NekDouble > m_E0
~ForcingLorentz(void) override
void v_InitObject(const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const LibUtilities::SessionNode &pForce) override
Initialise the forcing module.
void v_Apply(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time) override
Adds the body force, -Omega X u.
std::shared_ptr< SessionReader > SessionReaderSharedPtr
SOLVER_UTILS_EXPORT typedef std::shared_ptr< Forcing > ForcingSharedPtr
A shared pointer to an EquationSystem object.
std::shared_ptr< VelocityCorrectionScheme > VelocityCorrectionSchemeSharedPtr