41 #ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_EULER_TIME_INTEGRATION_SCHEME
42 #define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_EULER_TIME_INTEGRATION_SCHEME
44 #define LUE LIB_UTILITIES_EXPORT
51 namespace LibUtilities
61 std::vector<NekDouble> freeParams)
64 boost::ignore_unused(order);
66 ASSERTL1(variant ==
"Backward" || variant ==
"Forward",
67 "Euler Time integration scheme unknown variant: " + variant +
68 ". Must be 'Backward' or 'Forward'");
83 std::string variant,
unsigned int order,
84 std::vector<NekDouble> freeParams)
86 boost::ignore_unused(order);
90 variant, 1, freeParams);
101 if (variant ==
"Backward")
107 else if (variant ==
"Forward")
114 phase->m_variant = variant;
116 phase->m_name = variant + std::string(
"EulerOrder") +
117 std::to_string(phase->m_order);
119 phase->m_numsteps = 1;
120 phase->m_numstages = 1;
134 phase->m_numMultiStepValues = 1;
135 phase->m_numMultiStepImplicitDerivs = 0;
136 phase->m_numMultiStepDerivs = 0;
138 phase->m_timeLevelOffset[0] = 0;
140 phase->CheckAndVerify();
151 return std::string(
"Euler");
174 std::vector<NekDouble> freeParams)
177 boost::ignore_unused(variant);
178 boost::ignore_unused(order);
182 std::string variant,
unsigned int order,
183 std::vector<NekDouble> freeParams)
185 boost::ignore_unused(variant);
186 boost::ignore_unused(order);
190 "Backward", 1, freeParams);
202 std::vector<NekDouble> freeParams)
205 boost::ignore_unused(variant);
206 boost::ignore_unused(order);
210 std::string variant,
unsigned int order,
211 std::vector<NekDouble> freeParams)
213 boost::ignore_unused(variant);
214 boost::ignore_unused(order);
218 "Forward", 1, freeParams);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
static std::string className
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
BackwardEulerTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
EulerTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, std::string variant)
virtual LUE NekDouble v_GetTimeStability() const override
static std::string className
virtual LUE std::string v_GetFullName() const override
virtual LUE std::string v_GetName() const override
virtual ~EulerTimeIntegrationScheme()
static std::string className
ForwardEulerTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
Base class for GLM time integration schemes.
TimeIntegrationAlgorithmGLMVector m_integration_phases
LUE std::string GetVariant() const
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< TimeIntegrationAlgorithmGLM > TimeIntegrationAlgorithmGLMSharedPtr
@ eExplicit
Formally explicit scheme.
@ eDiagonallyImplicit
Diagonally implicit scheme (e.g. the DIRK schemes)
std::vector< TimeIntegrationAlgorithmGLMSharedPtr > TimeIntegrationAlgorithmGLMVector
std::shared_ptr< TimeIntegrationScheme > TimeIntegrationSchemeSharedPtr
The above copyright notice and this permission notice shall be included.