Nektar++
|
Base class for the development of solvers. More...
#include <DriverArpack.h>
Static Public Member Functions | |
static DriverSharedPtr | create (const LibUtilities::SessionReaderSharedPtr &pSession) |
Creates an instance of this class. |
Static Public Attributes | |
static std::string | className = GetDriverFactory().RegisterCreatorFunction("Arpack", DriverArpack::create) |
Name of the class. |
Protected Member Functions | |
DriverArpack (const LibUtilities::SessionReaderSharedPtr pSession) | |
Constructor. | |
virtual | ~DriverArpack () |
Destructor. | |
virtual void | v_InitObject (ostream &out=cout) |
Virtual function for initialisation implementation. | |
virtual void | v_Execute (ostream &out=cout) |
Virtual function for solve implementation. | |
Protected Member Functions inherited from Nektar::SolverUtils::DriverArnoldi | |
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 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. |
Protected Attributes | |
int | m_maxn |
int | m_maxnev |
int | m_maxncv |
Protected Attributes inherited from Nektar::SolverUtils::DriverArnoldi | |
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. |
Static Protected Attributes | |
static std::string | arpackProblemTypeLookupIds [] |
static std::string | arpackProblemTypeDefault = LibUtilities::SessionReader::RegisterDefaultSolverInfo("ArpackProblemType","LargestMag") |
static std::string | driverLookupId = LibUtilities::SessionReader::RegisterEnumValue("Driver","Arpack",0) |
Static Private Attributes | |
static std::string | ArpackProblemTypeTrans [] |
Friends | |
class | MemoryManager< DriverArpack > |
Additional Inherited Members | |
Public Member Functions inherited from Nektar::SolverUtils::DriverArnoldi | |
SOLVER_UTILS_EXPORT void | ArnoldiSummary (std::ostream &out) |
Base class for the development of solvers.
Definition at line 48 of file DriverArpack.h.
|
protected |
|
protectedvirtual |
|
inlinestatic |
Creates an instance of this class.
Definition at line 54 of file DriverArpack.h.
|
protectedvirtual |
Virtual function for solve implementation.
Implements Nektar::SolverUtils::Driver.
Definition at line 109 of file DriverArpack.cpp.
References ArpackProblemTypeTrans, ASSERTL0, Nektar::SolverUtils::DriverArnoldi::CopyArnoldiArrayToField(), Nektar::SolverUtils::DriverArnoldi::CopyFieldToArnoldiArray(), Nektar::SolverUtils::DriverArnoldi::CopyFwdToAdj(), Arpack::Dnaupd(), Arpack::Dneupd(), Nektar::SolverUtils::eTransientGrowth, Nektar::NekConstants::kNekZeroTol, Nektar::SolverUtils::Driver::m_comm, Nektar::SolverUtils::Driver::m_equ, Nektar::SolverUtils::Driver::m_EvolutionOperator, Nektar::SolverUtils::DriverArnoldi::m_evtol, Nektar::SolverUtils::DriverArnoldi::m_imag_evl, Nektar::SolverUtils::DriverArnoldi::m_imagShift, Nektar::SolverUtils::DriverArnoldi::m_infosteps, Nektar::SolverUtils::DriverArnoldi::m_kdim, m_maxn, Nektar::SolverUtils::DriverArnoldi::m_nfields, Nektar::SolverUtils::DriverArnoldi::m_nits, Nektar::SolverUtils::DriverArnoldi::m_nvec, Nektar::SolverUtils::DriverArnoldi::m_real_evl, Nektar::SolverUtils::DriverArnoldi::m_realShift, Nektar::SolverUtils::Driver::m_session, Nektar::SolverUtils::DriverArnoldi::m_timeSteppingAlgorithm, Nektar::SolverUtils::DriverArnoldi::WriteEvs(), and Nektar::SolverUtils::DriverArnoldi::WriteFld().
|
protectedvirtual |
Virtual function for initialisation implementation.
Reimplemented from Nektar::SolverUtils::DriverArnoldi.
Definition at line 78 of file DriverArpack.cpp.
References Nektar::SolverUtils::DriverArnoldi::ArnoldiSummary(), ArpackProblemTypeTrans, ASSERTL0, Nektar::SolverUtils::Driver::m_equ, Nektar::SolverUtils::DriverArnoldi::m_kdim, m_maxn, m_maxncv, m_maxnev, Nektar::SolverUtils::Driver::m_nequ, Nektar::SolverUtils::DriverArnoldi::m_nvec, and Nektar::SolverUtils::Driver::m_session.
|
friend |
Definition at line 51 of file DriverArpack.h.
|
staticprotected |
Definition at line 85 of file DriverArpack.h.
|
staticprotected |
Definition at line 84 of file DriverArpack.h.
|
staticprivate |
Definition at line 89 of file DriverArpack.h.
Referenced by v_Execute(), and v_InitObject().
|
static |
Name of the class.
Definition at line 61 of file DriverArpack.h.
|
staticprotected |
Definition at line 86 of file DriverArpack.h.
|
protected |
Definition at line 66 of file DriverArpack.h.
Referenced by v_Execute(), and v_InitObject().
|
protected |
Definition at line 68 of file DriverArpack.h.
Referenced by v_InitObject().
|
protected |
Definition at line 67 of file DriverArpack.h.
Referenced by v_InitObject().