40 #ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_MCNAB_TIME_INTEGRATION_SCHEME
41 #define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_MCNAB_TIME_INTEGRATION_SCHEME
43 #define LUE LIB_UTILITIES_EXPORT
50 namespace LibUtilities
57 std::vector<NekDouble> freeParams)
60 boost::ignore_unused(variant);
61 boost::ignore_unused(order);
83 std::string variant,
unsigned int order,
84 std::vector<NekDouble> freeParams)
86 boost::ignore_unused(variant);
87 boost::ignore_unused(order);
100 phase->m_schemeType =
eIMEX;
103 std::string(
"MCNABOrder" + std::to_string(phase->m_order));
105 phase->m_numsteps = 5;
106 phase->m_numstages = 1;
124 phase->m_A[0][0][0] = 9.0 / 16.0;
125 phase->m_B[0][0][0] = 9.0 / 16.0;
126 phase->m_B[0][1][0] = 1.0;
128 phase->m_B[1][3][0] = 1.0;
130 phase->m_U[0][0] = 1.0;
131 phase->m_U[0][1] = 6.0 / 16.0;
132 phase->m_U[0][2] = 1.0 / 16.0;
133 phase->m_U[0][3] = 24.0 / 16.0;
134 phase->m_U[0][4] = -8.0 / 16.0;
136 phase->m_V[0][0] = 1.0;
137 phase->m_V[0][1] = 6.0 / 16.0;
138 phase->m_V[0][2] = 1.0 / 16.0;
139 phase->m_V[0][3] = 24.0 / 16.0;
140 phase->m_V[0][4] = -8.0 / 16.0;
142 phase->m_V[2][1] = 1.0;
143 phase->m_V[4][3] = 1.0;
145 phase->m_numMultiStepValues = 1;
146 phase->m_numMultiStepImplicitDerivs = 2;
147 phase->m_numMultiStepDerivs = 2;
149 phase->m_timeLevelOffset[0] = 0;
150 phase->m_timeLevelOffset[1] = 0;
151 phase->m_timeLevelOffset[2] = 1;
152 phase->m_timeLevelOffset[3] = 0;
153 phase->m_timeLevelOffset[4] = 1;
155 phase->CheckAndVerify();
161 return std::string(
"MCNAB");
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, unsigned int order, std::vector< NekDouble > freeParams)
static std::string className
virtual ~MCNABTimeIntegrationScheme()
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
MCNABTimeIntegrationScheme(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
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.