Nektar++
|
Base class for the development of solvers. More...
#include <Driver.h>
Public Member Functions | |
virtual | ~Driver () |
Destructor. More... | |
SOLVER_UTILS_EXPORT void | InitObject (ostream &out=cout) |
Initialise Object. More... | |
SOLVER_UTILS_EXPORT void | Execute (ostream &out=cout) |
Execute driver. More... | |
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. More... | |
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. More... | |
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. More... | |
LibUtilities::SessionReaderSharedPtr | m_session |
Session reader object. More... | |
LibUtilities::SessionReaderSharedPtr | session_LinNS |
I the Coupling between SFD and arnoldi. More... | |
Array< OneD, EquationSystemSharedPtr > | m_equ |
Equation system to solve. More... | |
int | m_nequ |
number of equations More... | |
enum EvolutionOperatorType | m_EvolutionOperator |
Evolution Operator. More... | |
Static Protected Attributes | |
static std::string | evolutionOperatorLookupIds [] |
static std::string | evolutionOperatorDef |
static std::string | driverDefault |
|
virtual |
|
protected |
Initialises EquationSystem class members.
Definition at line 76 of file Driver.cpp.
|
inline |
Execute driver.
Definition at line 126 of file Driver.h.
References v_Execute().
|
inline |
Definition at line 131 of file Driver.h.
References m_equ.
Definition at line 141 of file Driver.h.
References v_GetImagEvl().
Definition at line 136 of file Driver.h.
References v_GetRealEvl().
|
inline |
Initialise Object.
Definition at line 121 of file Driver.h.
References v_InitObject().
|
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 198 of file Driver.cpp.
References ASSERTL0, and Nektar::NullNekDouble1DArray.
Referenced by GetImagEvl().
Reimplemented in Nektar::SolverUtils::DriverArnoldi.
Definition at line 192 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 90 of file Driver.cpp.
References ASSERTL0, Nektar::LibUtilities::SessionReader::CreateInstance(), Nektar::LibUtilities::NekFactory< tKey, tBase, >::CreateInstance(), Nektar::SolverUtils::eAdaptiveSFD, Nektar::SolverUtils::eAdjoint, Nektar::SolverUtils::eDirect, Nektar::SolverUtils::eNonlinear, Nektar::SolverUtils::eSkewSymmetric, Nektar::SolverUtils::eTransientGrowth, Nektar::SolverUtils::GetEquationSystemFactory(), m_equ, m_EvolutionOperator, m_nequ, m_session, and session_LinNS.
Referenced by InitObject(), Nektar::SolverUtils::DriverStandard::v_InitObject(), and Nektar::SolverUtils::DriverArnoldi::v_InitObject().
|
staticprotected |
|
staticprotected |
|
staticprotected |
|
protected |
Communication object.
Definition at line 85 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverArnoldi::ArnoldiSummary(), Nektar::SolverUtils::DriverSteadyState::ConvergenceHistory(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_big(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_small(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), Nektar::SolverUtils::DriverStandard::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverSteadyState::v_Execute(), and Nektar::SolverUtils::DriverModifiedArnoldi::v_InitObject().
|
protected |
Equation system to solve.
Definition at line 94 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverSteadyState::ComputeSFD(), 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(), 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 100 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverArnoldi::CopyFieldToArnoldiArray(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), Nektar::SolverUtils::DriverSteadyState::PrintSummarySFD(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverSteadyState::v_Execute(), and v_InitObject().
|
protected |
number of equations
Definition at line 97 of file Driver.h.
Referenced by Nektar::SolverUtils::DriverSteadyState::ComputeSFD(), Nektar::SolverUtils::DriverSteadyState::ConvergenceHistory(), Nektar::SolverUtils::DriverArnoldi::CopyFieldToArnoldiArray(), Nektar::SolverUtils::DriverSteadyState::v_Execute(), 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::DriverSteadyState::ReadEVfile(), 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().
|
protected |
I the Coupling between SFD and arnoldi.
Definition at line 91 of file Driver.h.
Referenced by v_InitObject().