40#ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_IMEX_GEAR_TIME_INTEGRATION_SCHEME
41#define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_IMEX_GEAR_TIME_INTEGRATION_SCHEME
43#define LUE LIB_UTILITIES_EXPORT
58 std::vector<NekDouble> freeParams)
61 boost::ignore_unused(order);
62 boost::ignore_unused(variant);
80 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
82 boost::ignore_unused(order);
83 boost::ignore_unused(variant);
96 phase->m_schemeType =
eIMEX;
97 phase->m_variant =
"Gear";
100 std::string(
"IMEXGearOrder" + std::to_string(phase->m_order));
102 phase->m_numsteps = 4;
103 phase->m_numstages = 1;
108 constexpr NekDouble twothirds = 2.0 / 3.0;
111 phase->m_numstages, twothirds);
123 phase->m_B[0][0][0] = twothirds;
124 phase->m_B[1][2][0] = 1.0;
125 phase->m_U[0][0] = 2.0 * twothirds;
126 phase->m_U[0][1] = -0.5 * twothirds;
127 phase->m_U[0][2] = 2.0 * twothirds;
128 phase->m_U[0][3] = -twothirds;
130 phase->m_V[0][0] = 2.0 * twothirds;
131 phase->m_V[0][1] = -0.5 * twothirds;
132 phase->m_V[0][2] = 2.0 * twothirds;
133 phase->m_V[0][3] = -twothirds;
134 phase->m_V[1][0] = 1.0;
135 phase->m_V[3][2] = 1.0;
137 phase->m_numMultiStepValues = 2;
138 phase->m_numMultiStepImplicitDerivs = 0;
139 phase->m_numMultiStepExplicitDerivs = 2;
141 phase->m_timeLevelOffset[0] = 0;
142 phase->m_timeLevelOffset[1] = 1;
143 phase->m_timeLevelOffset[2] = 0;
144 phase->m_timeLevelOffset[3] = 1;
146 phase->CheckAndVerify();
152 return std::string(
"IMEX");
static std::string className
IMEXGearTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
virtual LUE std::string v_GetName() const override
static std::string TimeIntegrationMethodLookupId
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase)
virtual LUE NekDouble v_GetTimeStability() const override
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
virtual ~IMEXGearTimeIntegrationScheme()
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.