Nektar++
|
Base class for the development of solvers. More...
#include <DriverArnoldi.h>
Public Member Functions | |
Array< OneD, NekDouble > | GetRealEvl (void) |
Array< OneD, NekDouble > | GetImagEvl (void) |
Public Member Functions inherited from Nektar::SolverUtils::Driver | |
virtual | ~Driver ()=default |
Destructor. More... | |
SOLVER_UTILS_EXPORT void | InitObject (std::ostream &out=std::cout) |
Initialise Object. More... | |
SOLVER_UTILS_EXPORT void | Execute (std::ostream &out=std::cout) |
Execute driver. More... | |
SOLVER_UTILS_EXPORT Array< OneD, EquationSystemSharedPtr > | GetEqu () |
Protected Member Functions | |
DriverArnoldi (const LibUtilities::SessionReaderSharedPtr pSession, const SpatialDomains::MeshGraphSharedPtr pGraph) | |
Constructor. More... | |
~DriverArnoldi () override=default | |
Destructor. More... | |
void | v_InitObject (std::ostream &out=std::cout) override |
Virtual function for initialisation implementation. More... | |
void | v_Execute (std::ostream &out=std::cout) override |
Virtual function for solve implementation. More... | |
void | CopyArnoldiArrayToField (Array< OneD, NekDouble > &array) |
Copy Arnoldi storage to fields. More... | |
void | CopyFieldToArnoldiArray (Array< OneD, NekDouble > &array) |
Copy fields to Arnoldi storage. More... | |
void | CopyFwdToAdj () |
Copy the forward field to the adjoint system in transient growth calculations. More... | |
void | WriteFld (std::string file, std::vector< Array< OneD, NekDouble > > coeffs) |
Write coefficients to file. More... | |
void | WriteFld (std::string file, Array< OneD, NekDouble > coeffs) |
void | WriteEvs (std::ostream &evlout, const int k, const NekDouble real, const NekDouble imag, NekDouble resid=NekConstants::kNekUnsetDouble, bool DumpInverse=true) |
void | MaskInit () |
Init mask. More... | |
void | GetMaskInfo (std::vector< std::vector< LibUtilities::EquationSharedPtr > > &selectedDomains, std::set< int > &unselectedVariables) |
SOLVER_UTILS_EXPORT void | ArnoldiSummary (std::ostream &out) |
Protected Member Functions inherited from Nektar::SolverUtils::Driver | |
Driver (const LibUtilities::SessionReaderSharedPtr pSession, const SpatialDomains::MeshGraphSharedPtr pGraph) | |
Initialises EquationSystem class members. More... | |
virtual SOLVER_UTILS_EXPORT void | v_InitObject (std::ostream &out=std::cout) |
Virtual function for initialisation implementation. More... | |
virtual SOLVER_UTILS_EXPORT void | v_Execute (std::ostream &out=std::cout)=0 |
Virtual function for solve implementation. More... | |
Friends | |
class | MemoryManager< DriverArnoldi > |
Additional Inherited Members | |
Static Protected Attributes inherited from Nektar::SolverUtils::Driver | |
static std::string | evolutionOperatorLookupIds [] |
static std::string | evolutionOperatorDef |
static std::string | driverDefault |
Base class for the development of solvers.
Definition at line 44 of file DriverArnoldi.h.
|
protected |
Constructor.
Constructor
Definition at line 46 of file DriverArnoldi.cpp.
References m_infosteps, and Nektar::SolverUtils::Driver::m_session.
|
overrideprotecteddefault |
Destructor.
|
protected |
Definition at line 131 of file DriverArnoldi.cpp.
References ASSERTL0, Nektar::SolverUtils::Driver::m_comm, m_evtol, m_imagShift, m_kdim, m_nits, m_nvec, m_realShift, Nektar::SolverUtils::Driver::m_session, and m_timeSteppingAlgorithm.
Referenced by Nektar::SolverUtils::DriverArpack::v_InitObject(), and Nektar::SolverUtils::DriverModifiedArnoldi::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 178 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 196 of file DriverArnoldi.cpp.
References Nektar::SolverUtils::eAdaptiveSFD, Nektar::SolverUtils::Driver::m_equ, Nektar::SolverUtils::Driver::m_EvolutionOperator, Nektar::SolverUtils::Driver::m_nequ, m_nfields, and Vmath::Vcopy().
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_update(), Nektar::SolverUtils::DriverArpack::v_Execute(), and Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute().
|
protected |
Copy the forward field to the adjoint system in transient growth calculations.
Initialisation for the transient growth
Definition at line 224 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().
Definition at line 54 of file DriverArnoldi.h.
References m_imag_evl.
|
protected |
Definition at line 337 of file DriverArnoldi.cpp.
References m_nfields, and Nektar::SolverUtils::Driver::m_session.
Referenced by MaskInit().
Definition at line 49 of file DriverArnoldi.h.
References m_real_evl.
|
protected |
Init mask.
Definition at line 386 of file DriverArnoldi.cpp.
References FilterPython_Function::field, Vmath::Fill(), GetMaskInfo(), Nektar::SolverUtils::Driver::m_equ, m_maskCoeffs, m_maskPhys, m_nfields, and m_useMask.
Referenced by v_InitObject().
|
overrideprotectedvirtual |
Virtual function for solve implementation.
Implements Nektar::SolverUtils::Driver.
Reimplemented in Nektar::SolverUtils::DriverArpack, Nektar::SolverUtils::DriverModifiedArnoldi, and Nektar::SolverUtils::DriverSteadyState.
Definition at line 123 of file DriverArnoldi.cpp.
References ASSERTL0.
|
overrideprotectedvirtual |
Virtual function for initialisation implementation.
Arnoldi driver initialisation
Reimplemented from Nektar::SolverUtils::Driver.
Reimplemented in Nektar::SolverUtils::DriverArpack, Nektar::SolverUtils::DriverModifiedArnoldi, and Nektar::SolverUtils::DriverSteadyState.
Definition at line 57 of file DriverArnoldi.cpp.
References ASSERTL0, Nektar::ErrorUtil::efatal, Nektar::SolverUtils::Driver::m_equ, m_evtol, m_imagShift, m_kdim, m_negatedOp, m_nfields, m_nits, m_nvec, m_period, m_realShift, Nektar::SolverUtils::Driver::m_session, m_timeSteppingAlgorithm, MaskInit(), NEKERROR, and Nektar::SolverUtils::Driver::v_InitObject().
Referenced by Nektar::SolverUtils::DriverArpack::v_InitObject(), and Nektar::SolverUtils::DriverModifiedArnoldi::v_InitObject().
|
protected |
Definition at line 285 of file DriverArnoldi.cpp.
References Nektar::NekConstants::kNekUnsetDouble, tinysimd::log(), m_imagShift, m_negatedOp, m_period, m_realShift, m_timeSteppingAlgorithm, and sign.
Referenced by Nektar::SolverUtils::DriverModifiedArnoldi::EV_post(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Definition at line 262 of file DriverArnoldi.cpp.
References ASSERTL1, Nektar::SolverUtils::Driver::m_equ, and m_nfields.
|
protected |
Write coefficients to file.
Definition at line 244 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().
|
friend |
Definition at line 1 of file DriverArnoldi.h.
|
protected |
Maxmum number of iterations.
Definition at line 63 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), Nektar::SolverUtils::DriverArpack::v_Execute(), and v_InitObject().
Definition at line 75 of file DriverArnoldi.h.
Referenced by GetImagEvl(), Nektar::SolverUtils::DriverArpack::v_Execute(), and Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute().
|
protected |
Definition at line 71 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), v_InitObject(), and WriteEvs().
|
protected |
underlying operator is time stepping
Definition at line 67 of file DriverArnoldi.h.
Referenced by DriverArnoldi(), and Nektar::SolverUtils::DriverArpack::v_Execute().
|
protected |
Definition at line 60 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverSteadyState::ComputeOptimization(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), v_InitObject(), and Nektar::SolverUtils::DriverArpack::v_InitObject().
Definition at line 78 of file DriverArnoldi.h.
Referenced by MaskInit(), and Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute().
Definition at line 79 of file DriverArnoldi.h.
Referenced by MaskInit().
|
protected |
Definition at line 72 of file DriverArnoldi.h.
Referenced by Nektar::SolverUtils::DriverArpack::v_Execute(), v_InitObject(), and WriteEvs().
|
protected |
interval to dump information if required.
Definition at line 69 of file DriverArnoldi.h.
Referenced by CopyArnoldiArrayToField(), CopyFieldToArnoldiArray(), CopyFwdToAdj(), GetMaskInfo(), MaskInit(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), v_InitObject(), and WriteFld().
|
protected |
Number of vectors to test.
Definition at line 62 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), and v_InitObject().
|
protected |
Dimension of Krylov subspace.
Definition at line 61 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), Nektar::SolverUtils::DriverArpack::v_Execute(), Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute(), v_InitObject(), and Nektar::SolverUtils::DriverArpack::v_InitObject().
|
protected |
Tolerance of iterations.
Definition at line 64 of file DriverArnoldi.h.
Referenced by v_InitObject(), and WriteEvs().
Operator in solve call is negated.
Definition at line 74 of file DriverArnoldi.h.
Referenced by GetRealEvl(), Nektar::SolverUtils::DriverArpack::v_Execute(), and Nektar::SolverUtils::DriverModifiedArnoldi::v_Execute().
|
protected |
Definition at line 70 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 65 of file DriverArnoldi.h.
Referenced by ArnoldiSummary(), CopyFwdToAdj(), Nektar::SolverUtils::DriverModifiedArnoldi::EV_test(), Nektar::SolverUtils::DriverArpack::v_Execute(), v_InitObject(), and WriteEvs().
|
protected |