40#ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_CNAB_TIME_INTEGRATION_SCHEME
41#define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_CNAB_TIME_INTEGRATION_SCHEME
43#define LUE LIB_UTILITIES_EXPORT
55 std::vector<NekDouble> freeParams)
58 boost::ignore_unused(variant, order);
78 [[maybe_unused]] std::string variant, [[maybe_unused]]
size_t order,
79 std::vector<NekDouble> freeParams)
92 phase->m_schemeType =
eIMEX;
95 std::string(
"CNABOrder" + std::to_string(phase->m_order));
97 phase->m_numsteps = 4;
98 phase->m_numstages = 1;
118 phase->m_A[0][0][0] = 1.0 / 2.0;
119 phase->m_B[0][0][0] = 1.0 / 2.0;
120 phase->m_B[0][1][0] = 1.0;
122 phase->m_B[1][2][0] = 1.0;
124 phase->m_U[0][0] = 2.0 / 2.0;
125 phase->m_U[0][1] = 1.0 / 2.0;
126 phase->m_U[0][2] = 3.0 / 2.0;
127 phase->m_U[0][3] = -1.0 / 2.0;
129 phase->m_V[0][0] = 2.0 / 2.0;
130 phase->m_V[0][1] = 1.0 / 2.0;
131 phase->m_V[0][2] = 3.0 / 2.0;
132 phase->m_V[0][3] = -1.0 / 2.0;
134 phase->m_V[3][2] = 1.0;
136 phase->m_numMultiStepValues = 1;
137 phase->m_numMultiStepImplicitDerivs = 1;
138 phase->m_numMultiStepExplicitDerivs = 2;
140 phase->m_timeLevelOffset[0] = 0;
141 phase->m_timeLevelOffset[1] = 0;
142 phase->m_timeLevelOffset[2] = 0;
143 phase->m_timeLevelOffset[3] = 1;
145 phase->CheckAndVerify();
151 return std::string(
"CNAB");
LUE std::string v_GetName() const override
CNABTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string className
~CNABTimeIntegrationScheme() override
LUE NekDouble v_GetTimeStability() const override
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase)
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string TimeIntegrationMethodLookupId
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, size_t order, std::vector< NekDouble > freeParams)
Base class for GLM time integration schemes.
TimeIntegrationAlgorithmGLMVector m_integration_phases
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
std::shared_ptr< TimeIntegrationAlgorithmGLM > TimeIntegrationAlgorithmGLMSharedPtr
@ eIMEX
Implicit Explicit General Linear Method.
std::vector< TimeIntegrationAlgorithmGLMSharedPtr > TimeIntegrationAlgorithmGLMVector
std::shared_ptr< TimeIntegrationScheme > TimeIntegrationSchemeSharedPtr