Nektar++
|
Base class for the development of solvers. More...
#include <Driver.h>
Public Member Functions | |
virtual | ~Driver () |
Destructor. | |
SOLVER_UTILS_EXPORT void | InitObject (ostream &out=cout) |
Initialise Object. | |
SOLVER_UTILS_EXPORT void | Execute (ostream &out=cout) |
Execute driver. | |
SOLVER_UTILS_EXPORT Array < OneD, EquationSystemSharedPtr > | GetEqu () |
SOLVER_UTILS_EXPORT Array < OneD, NekDouble > | GetRealEvl (void) |
SOLVER_UTILS_EXPORT Array < OneD, NekDouble > | GetImagEvl (void) |
Protected Member Functions | |
Driver (const LibUtilities::SessionReaderSharedPtr pSession) | |
Initialises EquationSystem class members. | |
virtual SOLVER_UTILS_EXPORT void | v_InitObject (ostream &out=cout) |
virtual SOLVER_UTILS_EXPORT void | v_Execute (ostream &out=cout)=0 |
Virtual function for solve implementation. | |
virtual SOLVER_UTILS_EXPORT Array< OneD, NekDouble > | v_GetRealEvl (void) |
virtual SOLVER_UTILS_EXPORT Array< OneD, NekDouble > | v_GetImagEvl (void) |
Protected Attributes | |
LibUtilities::CommSharedPtr | m_comm |
Communication object. | |
LibUtilities::SessionReaderSharedPtr | m_session |
Session reader object. | |
Array< OneD, EquationSystemSharedPtr > | m_equ |
Equation system to solve. | |
int | m_nequ |
number of equations | |
enum EvolutionOperatorType | m_EvolutionOperator |
Evolution Operator. |
Static Protected Attributes | |
static std::string | evolutionOperatorLookupIds [] |
static std::string | evolutionOperatorDef = LibUtilities::SessionReader::RegisterDefaultSolverInfo("EvolutionOperator","Nonlinear") |
static std::string | driverDefault = LibUtilities::SessionReader::RegisterDefaultSolverInfo("Driver","Standard") |
|
virtual |
|
protected |
Initialises EquationSystem class members.
Definition at line 64 of file Driver.cpp.
|
inline |
|
inline |
|
inline |
|
protectedpure virtual |
Virtual function for solve implementation.
Implemented in Nektar::SolverUtils::DriverSteadyState, Nektar::SolverUtils::DriverArpack, Nektar::SolverUtils::DriverModifiedArnoldi, and Nektar::SolverUtils::DriverStandard.
Referenced by Execute().
Reimplemented in Nektar::SolverUtils::DriverArnoldi.
Definition at line 150 of file Driver.cpp.
References ASSERTL0, and Nektar::NullNekDouble1DArray.
Referenced by GetImagEvl().
Reimplemented in Nektar::SolverUtils::DriverArnoldi.
Definition at line 144 of file Driver.cpp.
References ASSERTL0, and Nektar::NullNekDouble1DArray.
Referenced by GetRealEvl().
|
protectedvirtual |
Reimplemented in Nektar::SolverUtils::DriverSteadyState, Nektar::SolverUtils::DriverArnoldi, Nektar::SolverUtils::DriverArpack, Nektar::SolverUtils::DriverModifiedArnoldi, and Nektar::SolverUtils::DriverStandard.
Definition at line 79 of file Driver.cpp.
References ASSERTL0, Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::SolverUtils::eAdjoint, Nektar::SolverUtils::eDirect, Nektar::SolverUtils::eNonlinear, Nektar::SolverUtils::eSkewSymmetric, Nektar::SolverUtils::eTransientGrowth, Nektar::SolverUtils::GetEquationSystemFactory(), m_equ, m_EvolutionOperator, m_nequ, and m_session.
Referenced by InitObject().
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
Communication object.
Definition at line 85 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverStandard::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), and Nektar::SolverUtils::DriverSteadyState::v_Execute().
|
protected |
Equation system to solve.
Definition at line 91 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverSteadyState::ConvergenceHistory(), Nektar::SolverUtils::DriverArnoldi::CopyArnoldiArrayToField(), Nektar::SolverUtils::DriverArnoldi::CopyFieldToArnoldiArray(), Nektar::SolverUtils::DriverArnoldi::CopyFwdToAdj(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_post(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), Nektar::SolverUtils::DriverSteadyState::ExactFilters(), GetEqu(), Nektar::SolverUtils::DriverStandard::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverSteadyState::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_InitObject(), Nektar::SolverUtils::DriverArpack::v_InitObject(), Nektar::SolverUtils::DriverArnoldi::v_InitObject(), v_InitObject(), and Nektar::SolverUtils::DriverArnoldi::WriteFld().
|
protected |
Evolution Operator.
Definition at line 97 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_InitObject().
|
protected |
number of equations
Definition at line 94 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverArnoldi::CopyFieldToArnoldiArray(), Nektar::SolverUtils::DriverModifiedArnoldi::v_InitObject(), Nektar::SolverUtils::DriverArpack::v_InitObject(), and v_InitObject().
|
protected |
Session reader object.
Definition at line 88 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverArnoldi::ArnoldiSummary(), Nektar::SolverUtils::DriverArnoldi::DriverArnoldi(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_post(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverSteadyState::v_Execute(), Nektar::SolverUtils::DriverArpack::v_InitObject(), Nektar::SolverUtils::DriverArnoldi::v_InitObject(), and v_InitObject().