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
51 namespace LibUtilities
58 std::vector<NekDouble> freeParams)
61 boost::ignore_unused(variant);
62 boost::ignore_unused(order);
81 std::string variant,
unsigned int order,
82 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;
123 phase->m_A[0][0][0] = 1.0 / 2.0;
124 phase->m_B[0][0][0] = 1.0 / 2.0;
125 phase->m_B[0][1][0] = 1.0;
127 phase->m_B[1][2][0] = 1.0;
129 phase->m_U[0][0] = 2.0 / 2.0;
130 phase->m_U[0][1] = 1.0 / 2.0;
131 phase->m_U[0][2] = 3.0 / 2.0;
132 phase->m_U[0][3] = -1.0 / 2.0;
134 phase->m_V[0][0] = 2.0 / 2.0;
135 phase->m_V[0][1] = 1.0 / 2.0;
136 phase->m_V[0][2] = 3.0 / 2.0;
137 phase->m_V[0][3] = -1.0 / 2.0;
139 phase->m_V[3][2] = 1.0;
141 phase->m_numMultiStepValues = 1;
142 phase->m_numMultiStepImplicitDerivs = 1;
143 phase->m_numMultiStepDerivs = 2;
145 phase->m_timeLevelOffset[0] = 0;
146 phase->m_timeLevelOffset[1] = 0;
147 phase->m_timeLevelOffset[2] = 0;
148 phase->m_timeLevelOffset[3] = 1;
150 phase->CheckAndVerify();
156 return std::string(
"CNAB");
static std::string className
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)
virtual LUE std::string v_GetName() const override
virtual LUE NekDouble v_GetTimeStability() const override
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.