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
52 namespace LibUtilities
59 std::vector<NekDouble> freeParams)
62 boost::ignore_unused(order);
63 boost::ignore_unused(variant);
81 std::string variant,
unsigned int order,
82 std::vector<NekDouble> freeParams)
84 boost::ignore_unused(order);
85 boost::ignore_unused(variant);
98 phase->m_schemeType =
eIMEX;
99 phase->m_variant =
"Gear";
102 std::string(
"IMEXGearOrder" + std::to_string(phase->m_order));
104 phase->m_numsteps = 4;
105 phase->m_numstages = 1;
113 phase->m_numstages, twothirds);
125 phase->m_B[0][0][0] = twothirds;
126 phase->m_B[1][2][0] = 1.0;
127 phase->m_U[0][0] = 2.0 * twothirds;
128 phase->m_U[0][1] = -0.5 * twothirds;
129 phase->m_U[0][2] = 2.0 * twothirds;
130 phase->m_U[0][3] = -twothirds;
132 phase->m_V[0][0] = 2.0 * twothirds;
133 phase->m_V[0][1] = -0.5 * twothirds;
134 phase->m_V[0][2] = 2.0 * twothirds;
135 phase->m_V[0][3] = -twothirds;
136 phase->m_V[1][0] = 1.0;
137 phase->m_V[3][2] = 1.0;
139 phase->m_numMultiStepValues = 2;
140 phase->m_numMultiStepImplicitDerivs = 0;
141 phase->m_numMultiStepDerivs = 2;
143 phase->m_timeLevelOffset[0] = 0;
144 phase->m_timeLevelOffset[1] = 1;
145 phase->m_timeLevelOffset[2] = 0;
146 phase->m_timeLevelOffset[3] = 1;
148 phase->CheckAndVerify();
154 return std::string(
"IMEX");
static std::string className
virtual LUE std::string v_GetName() const override
IMEXGearTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase)
virtual LUE NekDouble v_GetTimeStability() const override
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
virtual ~IMEXGearTimeIntegrationScheme()
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.