|
Nektar++
|
#include <NSAdvectionLevelSet.h>
Static Public Member Functions | |
| static SolverUtils::AdvectionSharedPtr | create (std::string) |
| Creates an instance of this class. | |
Static Public Attributes | |
| static std::string | className |
| Name of class. | |
Protected Member Functions | |
| NSAdvectionLevelSet () | |
| ~NSAdvectionLevelSet () override=default | |
| void | v_InitObject (LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields) override |
| Initialises the advection object. | |
| 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, const Array< OneD, Array< OneD, NekDouble > > &pFwd=NullNekDoubleArrayOfArray, const Array< OneD, Array< OneD, NekDouble > > &pBwd=NullNekDoubleArrayOfArray) override |
| Advects a vector field. | |
Protected Member Functions inherited from Nektar::SolverUtils::Advection | |
| virtual SOLVER_UTILS_EXPORT | ~Advection ()=default |
| virtual SOLVER_UTILS_EXPORT void | v_SetBaseFlow (const Array< OneD, Array< OneD, NekDouble > > &inarray, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields) |
| Overrides the base flow used during linearised advection. | |
Friends | |
| class | MemoryManager< NSAdvectionLevelSet > |
Additional Inherited Members | |
Public Member Functions inherited from Nektar::SolverUtils::Advection | |
| SOLVER_UTILS_EXPORT void | InitObject (LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields) |
| Interface function to initialise the advection object. | |
| 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, const Array< OneD, Array< OneD, NekDouble > > &pFwd=NullNekDoubleArrayOfArray, const Array< OneD, Array< OneD, NekDouble > > &pBwd=NullNekDoubleArrayOfArray) |
| Interface function to advect the vector field. | |
| template<typename FuncPointerT , typename ObjectPointerT > | |
| void | SetFluxVector (FuncPointerT func, ObjectPointerT obj) |
| Set the flux vector callback function. | |
| void | SetRiemannSolver (RiemannSolverSharedPtr riemann) |
| Set a Riemann solver object for this advection object. | |
| void | SetFluxVector (AdvectionFluxVecCB fluxVector) |
| Set the flux vector callback function. | |
| void | SetBaseFlow (const Array< OneD, Array< OneD, NekDouble > > &inarray, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields) |
| Set the base flow used for linearised advection objects. | |
| template<typename DataType , typename TypeNekBlkMatSharedPtr > | |
| SOLVER_UTILS_EXPORT void | AddTraceJacToMat (const int nConvectiveFields, const int nSpaceDim, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, TypeNekBlkMatSharedPtr > &TracePntJacCons, Array< OneD, Array< OneD, TypeNekBlkMatSharedPtr > > &gmtxarray, const Array< OneD, TypeNekBlkMatSharedPtr > &TracePntJacGrad, const Array< OneD, Array< OneD, DataType > > &TracePntJacGradSign) |
| template<typename DataType , typename TypeNekBlkMatSharedPtr > | |
| void | CalcJacobTraceInteg (const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const int m, const int n, const Array< OneD, const TypeNekBlkMatSharedPtr > &PntJac, const Array< OneD, const Array< OneD, DataType > > &PntJacSign, Array< OneD, DNekMatSharedPtr > &TraceJacFwd, Array< OneD, DNekMatSharedPtr > &TraceJacBwd) |
| template<typename DataType , typename TypeNekBlkMatSharedPtr > | |
| void | AddTraceJacToMat (const int nConvectiveFields, const int nSpaceDim, const Array< OneD, MultiRegions::ExpListSharedPtr > &pFields, const Array< OneD, TypeNekBlkMatSharedPtr > &TracePntJacCons, Array< OneD, Array< OneD, TypeNekBlkMatSharedPtr > > &gmtxarray, const Array< OneD, TypeNekBlkMatSharedPtr > &TracePntJacGrad, const Array< OneD, Array< OneD, DataType > > &TracePntJacGradSign) |
Protected Attributes inherited from Nektar::SolverUtils::Advection | |
| AdvectionFluxVecCB | m_fluxVector |
| Callback function to the flux vector (set when advection is in conservative form). | |
| RiemannSolverSharedPtr | m_riemann |
| Riemann solver for DG-type schemes. | |
| int | m_spaceDim |
| Storage for space dimension. Used for homogeneous extension. | |
Definition at line 44 of file NSAdvectionLevelSet.h.
|
protected |
Definition at line 46 of file NSAdvectionLevelSet.cpp.
|
overrideprotecteddefault |
|
inlinestatic |
Creates an instance of this class.
Definition at line 50 of file NSAdvectionLevelSet.h.
References Nektar::MemoryManager< DataType >::AllocateSharedPtr().
|
overrideprotectedvirtual |
Advects a vector field.
Implements Nektar::SolverUtils::Advection.
Definition at line 64 of file NSAdvectionLevelSet.cpp.
References ASSERTL0, ASSERTL1, Vmath::Neg(), Vmath::Vmul(), Vmath::Vvtvp(), and Vmath::Zero().
|
overrideprotectedvirtual |
Initialises the advection object.
This function should be overridden in derived classes to initialise the specific advection data members. However, this base class function should be called as the first statement of the overridden function to ensure the base class is correctly initialised in order.
| pSession | Session information. |
| pFields | Expansion lists for scalar fields. |
Reimplemented from Nektar::SolverUtils::Advection.
Definition at line 54 of file NSAdvectionLevelSet.cpp.
References Nektar::SolverUtils::Advection::v_InitObject().
|
friend |
Definition at line 1 of file NSAdvectionLevelSet.h.
|
static |
Name of class.
Definition at line 56 of file NSAdvectionLevelSet.h.