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
60 std::vector<NekDouble> freeParams)
63 boost::ignore_unused(order);
65 ASSERTL1(variant ==
"Backward" || variant ==
"Forward",
66 "Euler Time integration scheme unknown variant: " + variant +
67 ". Must be 'Backward' or 'Forward'");
82 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
84 boost::ignore_unused(order);
88 variant, 1, freeParams);
99 if (variant ==
"Backward")
105 else if (variant ==
"Forward")
112 phase->m_variant = variant;
114 phase->m_name = variant + std::string(
"EulerOrder") +
115 std::to_string(phase->m_order);
117 phase->m_numsteps = 1;
118 phase->m_numstages = 1;
132 phase->m_numMultiStepValues = 1;
133 phase->m_numMultiStepImplicitDerivs = 0;
134 phase->m_numMultiStepExplicitDerivs = 0;
136 phase->m_timeLevelOffset[0] = 0;
138 phase->CheckAndVerify();
149 return std::string(
"Euler");
172 std::vector<NekDouble> freeParams)
175 boost::ignore_unused(variant);
176 boost::ignore_unused(order);
180 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
182 boost::ignore_unused(variant);
183 boost::ignore_unused(order);
187 "Backward", 1, freeParams);
202 std::vector<NekDouble> freeParams)
205 boost::ignore_unused(variant);
206 boost::ignore_unused(order);
210 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
212 boost::ignore_unused(variant);
213 boost::ignore_unused(order);
217 "Forward", 1, freeParams);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string className
BackwardEulerTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string TimeIntegrationMethodLookupId
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, std::string variant)
virtual LUE NekDouble v_GetTimeStability() const override
static std::string className
EulerTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
virtual LUE std::string v_GetFullName() const override
virtual LUE std::string v_GetName() const override
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
virtual ~EulerTimeIntegrationScheme()
static std::string className
static std::string TimeIntegrationMethodLookupId
ForwardEulerTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t 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.