36 #ifndef NEKTAR_SOLVERUTILS_ADVECTION
37 #define NEKTAR_SOLVERUTILS_ADVECTION
40 #include <boost/function.hpp>
56 typedef boost::function<
void (
79 const int nConvectiveFields,
93 template<
typename FuncPo
interT,
typename ObjectPo
interT>
145 const int nConvectiveFields,
LibUtilities::NekFactory< std::string, Advection, std::string > AdvectionFactory
Datatype of the NekFactory used to instantiate classes derived from the Advection class...
virtual SOLVER_UTILS_EXPORT void v_Advect(const int nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &advVel, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time)=0
Advects a vector field.
SOLVER_UTILS_EXPORT void InitObject(LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields)
Interface function to initialise the advection object.
boost::shared_ptr< Advection > AdvectionSharedPtr
A shared pointer to an Advection object.
RiemannSolverSharedPtr m_riemann
Riemann solver for DG-type schemes.
SOLVER_UTILS_EXPORT void Advect(const int nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &advVel, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time)
Interface function to advect the vector field.
boost::shared_ptr< RiemannSolver > RiemannSolverSharedPtr
A shared pointer to an EquationSystem object.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
void SetFluxVector(FuncPointerT func, ObjectPointerT obj)
Set the flux vector callback function.
void SetBaseFlow(const Array< OneD, Array< OneD, NekDouble > > &inarray)
Set the base flow used for linearised advection objects.
void SetFluxVector(AdvectionFluxVecCB fluxVector)
Set the flux vector callback function.
AdvectionFactory & GetAdvectionFactory()
Gets the factory for initialising advection objects.
virtual SOLVER_UTILS_EXPORT void v_SetBaseFlow(const Array< OneD, Array< OneD, NekDouble > > &inarray)
Overrides the base flow used during linearised advection.
#define SOLVER_UTILS_EXPORT
AdvectionFluxVecCB m_fluxVector
Callback function to the flux vector (set when advection is in conservative form).
int m_spaceDim
Storage for space dimension. Used for homogeneous extension.
virtual SOLVER_UTILS_EXPORT void v_InitObject(LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields)
Initialises the advection object.
Defines a callback function which evaluates the flux vector.
Provides a generic Factory class.
void SetRiemannSolver(RiemannSolverSharedPtr riemann)
Set a Riemann solver object for this advection object.