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. | |
LibUtilities::SessionReaderSharedPtr | session_LinNS |
I the Coupling between SFD and arnoldi. | |
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 |
static std::string | driverDefault |
|
virtual |
|
protected |
Initialises EquationSystem class members.
Definition at line 75 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 197 of file Driver.cpp.
References ASSERTL0, and Nektar::NullNekDouble1DArray.
Referenced by GetImagEvl().
Reimplemented in Nektar::SolverUtils::DriverArnoldi.
Definition at line 191 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 89 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().
|
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().