44 RegisterCreatorFunction(
"Programmatic",
46 "Programmatic Forcing");
61 const unsigned int& pNumForcingFields,
62 const TiXmlElement* pForce)
65 int nq = pFields[0]->GetTotPoints();
82 Vmath::Vadd(outarray[i].num_elements(), outarray[i], 1,
Array< OneD, Array< OneD, NekDouble > > m_Forcing
Evaluated forcing function.
static SOLVER_UTILS_EXPORT ForcingSharedPtr create(const LibUtilities::SessionReaderSharedPtr &pSession, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const TiXmlElement *pForce)
Creates an instance of this class.
virtual SOLVER_UTILS_EXPORT 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)
ForcingProgrammatic(const LibUtilities::SessionReaderSharedPtr &pSession)
ForcingFactory & GetForcingFactory()
Declaration of the forcing factory singleton.
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
static std::string className
Name of the class.
virtual SOLVER_UTILS_EXPORT void v_InitObject(const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const TiXmlElement *pForce)
int m_NumVariable
Number of variables.
SOLVER_UTILS_EXPORT Array< OneD, Array< OneD, NekDouble > > & UpdateForces()
Defines a forcing term to be explicitly applied.
void Vadd(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Add vector z = x+y.