#include <ForcingStabilityCoupledLNS.h>
|
virtual void | v_InitObject (const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const TiXmlElement *pForce) |
|
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) |
|
SOLVER_UTILS_EXPORT | Forcing (const LibUtilities::SessionReaderSharedPtr &) |
| Constructor. More...
|
|
SOLVER_UTILS_EXPORT void | EvaluateFunction (Array< OneD, MultiRegions::ExpListSharedPtr > pFields, LibUtilities::SessionReaderSharedPtr pSession, std::string pFieldName, Array< OneD, NekDouble > &pArray, const std::string &pFunctionName, NekDouble pTime=NekDouble(0)) |
|
SOLVER_UTILS_EXPORT void | EvaluateTimeFunction (LibUtilities::SessionReaderSharedPtr pSession, std::string pFieldName, Array< OneD, NekDouble > &pArray, const std::string &pFunctionName, NekDouble pTime=NekDouble(0)) |
|
|
virtual SOLVER_UTILS_EXPORT | ~Forcing () |
|
SOLVER_UTILS_EXPORT void | InitObject (const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const unsigned int &pNumForcingFields, const TiXmlElement *pForce) |
| Initialise the forcing object. More...
|
|
SOLVER_UTILS_EXPORT void | Apply (const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const NekDouble &time) |
| Apply the forcing. More...
|
|
LibUtilities::SessionReaderSharedPtr | m_session |
| Session reader. More...
|
|
Array< OneD, Array< OneD, NekDouble > > | m_Forcing |
| Evaluated forcing function. More...
|
|
int | m_NumVariable |
| Number of variables. More...
|
|
Implements Nektar::SolverUtils::Forcing.
Definition at line 60 of file ForcingStabilityCoupledLNS.cpp.
References ASSERTL1, npts, and Vmath::Vadd().
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,
#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.
std::string Nektar::ForcingStabilityCoupledLNS::className |
|
static |
Initial value:
RegisterCreatorFunction("StabilityCoupledLNS",
"RHS forcing for coupled LNS stability solver")
Name of the class.
Definition at line 68 of file ForcingStabilityCoupledLNS.h.