41#ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_AB_TIME_INTEGRATION_SCHEME
42#define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_AB_TIME_INTEGRATION_SCHEME
44#define LUE LIB_UTILITIES_EXPORT
62 std::vector<NekDouble> freeParams)
67 "AdamsBashforth Time integration scheme bad order (1-4): " +
68 std::to_string(order));
72 for (
size_t n = 0; n < order; ++n)
110 std::vector<NekDouble>());
114 std::vector<NekDouble>());
119 "AdamsBashforth Time integration scheme bad order: " +
120 std::to_string(order));
129 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
146 { { 0., 0., 0., 0. },
150 { 3./ 2., -1./ 2., 0., 0. },
152 { 23./12., -16./12., 5./12., 0. },
154 { 55./24., -59./24., 37./24., -9./24.} };
158 phase->m_order = order;
160 std::string(
"AdamsBashforthOrder" + std::to_string(phase->m_order));
162 phase->m_numsteps = phase->m_order;
163 phase->m_numstages = 1;
180 phase->m_B[0][0][0] = coefficients[phase->m_order][0];
183 if (phase->m_order > 1)
185 phase->m_B[0][1][0] = 1.0;
189 phase->m_U[0][0] = 1.0;
190 phase->m_V[0][0] = 1.0;
193 for (
size_t n = 1; n < phase->m_order; ++n)
195 phase->m_V[0][n] = coefficients[phase->m_order][n];
199 for (
size_t n = 2; n < phase->m_order; ++n)
201 phase->m_V[n][n - 1] = 1.0;
204 phase->m_numMultiStepValues = 1;
205 phase->m_numMultiStepImplicitDerivs = 0;
206 phase->m_numMultiStepExplicitDerivs = phase->m_order - 1;
208 phase->m_timeLevelOffset[0] = 0;
211 for (
size_t n = 1; n < phase->m_order; ++n)
213 phase->m_timeLevelOffset[n] = n;
216 phase->CheckAndVerify();
222 return std::string(
"AdamsBashforth");
237 return 0.545454545454545;
258 std::vector<NekDouble> freeParams)
261 boost::ignore_unused(variant);
262 boost::ignore_unused(order);
266 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
268 boost::ignore_unused(variant);
269 boost::ignore_unused(order);
289 std::vector<NekDouble> freeParams)
292 boost::ignore_unused(variant);
293 boost::ignore_unused(order);
297 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
299 boost::ignore_unused(variant);
300 boost::ignore_unused(order);
320 std::vector<NekDouble> freeParams)
323 boost::ignore_unused(variant);
324 boost::ignore_unused(order);
328 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
330 boost::ignore_unused(variant);
331 boost::ignore_unused(order);
351 std::vector<NekDouble> freeParams)
354 boost::ignore_unused(variant);
355 boost::ignore_unused(order);
359 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
361 boost::ignore_unused(variant);
362 boost::ignore_unused(order);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
AdamsBashforthOrder1TimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string TimeIntegrationMethodLookupId
static std::string className
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string TimeIntegrationMethodLookupId
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
AdamsBashforthOrder2TimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string className
static std::string TimeIntegrationMethodLookupId
AdamsBashforthOrder3TimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string className
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string className
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string TimeIntegrationMethodLookupId
AdamsBashforthOrder4TimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
virtual ~AdamsBashforthTimeIntegrationScheme()
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, size_t order)
AdamsBashforthTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
virtual LUE NekDouble v_GetTimeStability() const override
static std::string className
virtual LUE std::string v_GetName() const override
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, std::string variant, size_t order, std::vector< NekDouble > freeParams)
Base class for GLM time integration schemes.
TimeIntegrationAlgorithmGLMVector m_integration_phases
LUE size_t GetOrder() const
General purpose memory allocation routines with the ability to allocate from thread specific memory p...
std::shared_ptr< TimeIntegrationAlgorithmGLM > TimeIntegrationAlgorithmGLMSharedPtr
@ eExplicit
Formally explicit scheme.
std::vector< TimeIntegrationAlgorithmGLMSharedPtr > TimeIntegrationAlgorithmGLMVector
std::shared_ptr< TimeIntegrationScheme > TimeIntegrationSchemeSharedPtr
The above copyright notice and this permission notice shall be included.