Nektar++
|
Base class for the development of solvers. More...
#include <DriverArnoldi.h>
Public Member Functions | |
SOLVER_UTILS_EXPORT void | ArnoldiSummary (std::ostream &out) |
Public Member Functions inherited from Nektar::SolverUtils::Driver | |
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 | |
DriverArnoldi (const LibUtilities::SessionReaderSharedPtr pSession) | |
Constructor. | |
virtual | ~DriverArnoldi () |
Destructor. | |
void | CopyArnoldiArrayToField (Array< OneD, NekDouble > &array) |
Copy Arnoldi storage to fields. | |
void | CopyFieldToArnoldiArray (Array< OneD, NekDouble > &array) |
Copy fields to Arnoldi storage. | |
void | CopyFwdToAdj () |
Copy the forward field to the adjoint system in transient growth calculations. | |
void | WriteFld (std::string file, std::vector< Array< OneD, NekDouble > > coeffs) |
void | WriteFld (std::string file, Array< OneD, NekDouble > coeffs) |
void | WriteEvs (ostream &evlout, const int k, const NekDouble real, const NekDouble imag, NekDouble resid=NekConstants::kNekUnsetDouble) |
virtual void | v_InitObject (ostream &out=cout) |
virtual Array< OneD, NekDouble > | v_GetRealEvl (void) |
virtual Array< OneD, NekDouble > | v_GetImagEvl (void) |
Protected Member Functions inherited from Nektar::SolverUtils::Driver | |
Driver (const LibUtilities::SessionReaderSharedPtr pSession) | |
Initialises EquationSystem class members. | |
virtual SOLVER_UTILS_EXPORT void | v_Execute (ostream &out=cout)=0 |
Virtual function for solve implementation. |
Protected Attributes | |
int | m_kdim |
int | m_nvec |
Dimension of Krylov subspace. | |
int | m_nits |
Number of vectors to test. | |
NekDouble | m_evtol |
Maxmum number of iterations. | |
NekDouble | m_period |
Tolerance of iteratiosn. | |
bool | m_timeSteppingAlgorithm |
Period of time stepping algorithm. | |
int | m_infosteps |
underlying operator is time stepping | |
int | m_nfields |
interval to dump information if required. | |
NekDouble | m_realShift |
NekDouble | m_imagShift |
Array< OneD, NekDouble > | m_real_evl |
Array< OneD, NekDouble > | m_imag_evl |
Protected Attributes inherited from Nektar::SolverUtils::Driver | |
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. |
Friends | |
class | MemoryManager< DriverArnoldi > |
Additional Inherited Members | |
Static Protected Attributes inherited from Nektar::SolverUtils::Driver | |
static std::string | evolutionOperatorLookupIds [] |
static std::string | evolutionOperatorDef = LibUtilities::SessionReader::RegisterDefaultSolverInfo("EvolutionOperator","Nonlinear") |
static std::string | driverDefault = LibUtilities::SessionReader::RegisterDefaultSolverInfo("Driver","Standard") |
Base class for the development of solvers.
Definition at line 46 of file DriverArnoldi.h.
|
protected |
Constructor.
Definition at line 46 of file DriverArnoldi.cpp.
References m_infosteps, and Nektar::SolverUtils::Driver::m_session.
|
protectedvirtual |
void Nektar::SolverUtils::DriverArnoldi::ArnoldiSummary | ( | std::ostream & | out | ) |
Definition at line 102 of file DriverArnoldi.cpp.
References ASSERTL0, m_evtol, m_imagShift, m_kdim, m_nits, m_nvec, m_realShift, Nektar::SolverUtils::Driver::m_session, and m_timeSteppingAlgorithm.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::v_InitObject(), and Nektar::SolverUtils::DriverArpack::v_InitObject().
|
protected |
Copy Arnoldi storage to fields.
Copy Arnoldi array to field variables which depend from either the m_fields or m_forces
Definition at line 142 of file DriverArnoldi.cpp.
References Nektar::SolverUtils::Driver::m_equ, m_nfields, and Vmath::Vcopy().
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Copy fields to Arnoldi storage.
Copy field variables which depend from either the m_fields or m_forces array the Arnoldi array
Definition at line 159 of file DriverArnoldi.cpp.
References Nektar::SolverUtils::Driver::m_equ, Nektar::SolverUtils::Driver::m_nequ, m_nfields, and Vmath::Vcopy().
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Copy the forward field to the adjoint system in transient growth calculations.
Initialisation for the transient growth
Definition at line 177 of file DriverArnoldi.cpp.
References ASSERTL0, Nektar::SolverUtils::Driver::m_equ, m_nfields, m_timeSteppingAlgorithm, and Vmath::Vcopy().
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
inlineprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Driver.
Definition at line 102 of file DriverArnoldi.h.
References m_imag_evl.
|
inlineprotectedvirtual |
Reimplemented from Nektar::SolverUtils::Driver.
Definition at line 97 of file DriverArnoldi.h.
References m_real_evl.
|
protectedvirtual |
Reimplemented from Nektar::SolverUtils::Driver.
Reimplemented in Nektar::SolverUtils::DriverArpack, and Nektar::SolverUtils::DriverModifiedArnoldi.
Definition at line 64 of file DriverArnoldi.cpp.
References ASSERTL0, Nektar::SolverUtils::Driver::m_equ, m_evtol, m_imagShift, m_kdim, m_nfields, m_nits, m_nvec, m_period, m_realShift, Nektar::SolverUtils::Driver::m_session, and m_timeSteppingAlgorithm.
|
protected |
Definition at line 233 of file DriverArnoldi.cpp.
References Nektar::NekConstants::kNekUnsetDouble, m_period, m_realShift, and m_timeSteppingAlgorithm.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Definition at line 200 of file DriverArnoldi.cpp.
References ASSERTL1, Nektar::SolverUtils::Driver::m_equ, and m_nfields.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_post(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Definition at line 215 of file DriverArnoldi.cpp.
References ASSERTL1, Nektar::SolverUtils::Driver::m_equ, and m_nfields.
|
friend |
Definition at line 49 of file DriverArnoldi.h.
|
protected |
Maxmum number of iterations.
Definition at line 57 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_InitObject().
Definition at line 68 of file DriverArnoldi.h.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_GetImagEvl().
|
protected |
Definition at line 65 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_InitObject().
|
protected |
underlying operator is time stepping
Definition at line 61 of file DriverArnoldi.h.
Referenced by DriverArnoldi(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Definition at line 54 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverArpack::v_InitObject(), and v_InitObject().
|
protected |
interval to dump information if required.
Definition at line 63 of file DriverArnoldi.h.
Referenced by CopyArnoldiArrayToField(), CopyFieldToArnoldiArray(), CopyFwdToAdj(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), v_InitObject(), and WriteFld().
|
protected |
Number of vectors to test.
Definition at line 56 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_InitObject().
|
protected |
Dimension of Krylov subspace.
Definition at line 55 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverArpack::v_InitObject(), and v_InitObject().
|
protected |
Tolerance of iteratiosn.
Definition at line 58 of file DriverArnoldi.h.
Referenced by v_InitObject(), and WriteEvs().
Definition at line 67 of file DriverArnoldi.h.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_GetRealEvl().
|
protected |
Definition at line 64 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverArpack::v_Execute(), v_InitObject(), and WriteEvs().
|
protected |
Period of time stepping algorithm.
Definition at line 59 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), CopyFwdToAdj(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), Nektar::SolverUtils::DriverArpack::v_Execute(), v_InitObject(), and WriteEvs().