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
52 namespace LibUtilities
59 std::vector<NekDouble> freeParams)
62 boost::ignore_unused(variant);
63 boost::ignore_unused(order);
86 std::string variant,
unsigned int order,
87 std::vector<NekDouble> freeParams)
89 boost::ignore_unused(variant);
90 boost::ignore_unused(order);
103 return std::string(
"CNAB");
113 phase->m_schemeType =
eIMEX;
116 std::string(
"CNABOrder" + std::to_string(phase->m_order));
118 phase->m_numsteps = 4;
119 phase->m_numstages = 1;
138 phase->m_A[0][0][0] = 1.0 / 2.0;
139 phase->m_B[0][0][0] = 1.0 / 2.0;
140 phase->m_B[0][1][0] = 1.0;
142 phase->m_B[1][2][0] = 1.0;
144 phase->m_U[0][0] = 2.0 / 2.0;
145 phase->m_U[0][1] = 1.0 / 2.0;
146 phase->m_U[0][2] = 3.0 / 2.0;
147 phase->m_U[0][3] = -1.0 / 2.0;
149 phase->m_V[0][0] = 2.0 / 2.0;
150 phase->m_V[0][1] = 1.0 / 2.0;
151 phase->m_V[0][2] = 3.0 / 2.0;
152 phase->m_V[0][3] = -1.0 / 2.0;
154 phase->m_V[3][2] = 1.0;
156 phase->m_numMultiStepValues = 1;
157 phase->m_numMultiStepDerivs = 3;
159 phase->m_timeLevelOffset[0] = 0;
160 phase->m_timeLevelOffset[1] = 0;
161 phase->m_timeLevelOffset[2] = 0;
162 phase->m_timeLevelOffset[3] = 1;
164 phase->CheckAndVerify();
virtual LUE std::string GetName() const
static std::string className
virtual LUE NekDouble GetTimeStability() const
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
virtual ~CNABTimeIntegrationScheme()
CNABTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase)
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, unsigned int 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.