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
58 std::vector<NekDouble> freeParams)
61 boost::ignore_unused(variant);
62 boost::ignore_unused(order);
82 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
84 boost::ignore_unused(variant);
85 boost::ignore_unused(order);
98 phase->m_schemeType =
eIMEX;
101 std::string(
"CNABOrder" + std::to_string(phase->m_order));
103 phase->m_numsteps = 4;
104 phase->m_numstages = 1;
124 phase->m_A[0][0][0] = 1.0 / 2.0;
125 phase->m_B[0][0][0] = 1.0 / 2.0;
126 phase->m_B[0][1][0] = 1.0;
128 phase->m_B[1][2][0] = 1.0;
130 phase->m_U[0][0] = 2.0 / 2.0;
131 phase->m_U[0][1] = 1.0 / 2.0;
132 phase->m_U[0][2] = 3.0 / 2.0;
133 phase->m_U[0][3] = -1.0 / 2.0;
135 phase->m_V[0][0] = 2.0 / 2.0;
136 phase->m_V[0][1] = 1.0 / 2.0;
137 phase->m_V[0][2] = 3.0 / 2.0;
138 phase->m_V[0][3] = -1.0 / 2.0;
140 phase->m_V[3][2] = 1.0;
142 phase->m_numMultiStepValues = 1;
143 phase->m_numMultiStepImplicitDerivs = 1;
144 phase->m_numMultiStepExplicitDerivs = 2;
146 phase->m_timeLevelOffset[0] = 0;
147 phase->m_timeLevelOffset[1] = 0;
148 phase->m_timeLevelOffset[2] = 0;
149 phase->m_timeLevelOffset[3] = 1;
151 phase->CheckAndVerify();
157 return std::string(
"CNAB");
CNABTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string className
virtual ~CNABTimeIntegrationScheme()
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase)
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
static std::string TimeIntegrationMethodLookupId
virtual LUE std::string v_GetName() const override
virtual LUE NekDouble v_GetTimeStability() const override
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
The above copyright notice and this permission notice shall be included.