43 RegisterCreatorFunction(
"StabilityCoupledLNS",
45 "RHS forcing for coupled LNS stability solver");
55 const unsigned int& pNumForcingFields,
56 const TiXmlElement* pForce)
66 int npts = fields[0]->GetTotPoints();
68 ASSERTL1(fields.num_elements() == outarray.num_elements(),
69 "Fields and outarray are of different size");
72 for (
int i = 0; i < fields.num_elements(); i++)
74 Vmath::Vadd(npts, fields[i]->GetPhys(), 1, outarray[i], 1,
virtual void v_InitObject(const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const TiXmlElement *pForce)
ForcingFactory & GetForcingFactory()
Declaration of the forcing factory singleton.
ForcingStabilityCoupledLNS(const LibUtilities::SessionReaderSharedPtr &pSession)
boost::shared_ptr< SessionReader > SessionReaderSharedPtr
static SolverUtils::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 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)
static std::string className
Name of the class.
Defines a forcing term to be explicitly applied.
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...
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.