41 #ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_BDF_TIME_INTEGRATION_SCHEME
42 #define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_BDF_TIME_INTEGRATION_SCHEME
44 #define LUE LIB_UTILITIES_EXPORT
53 namespace LibUtilities
63 std::vector<NekDouble> freeParams)
70 "BDFImplicit Time integration scheme bad order (1-4): " +
71 std::to_string(order));
75 for (
unsigned int n = 0; n < order; ++n)
115 "BDFImplicit Time integration scheme bad order: " +
116 std::to_string(order));
125 std::string variant,
unsigned int order,
126 std::vector<NekDouble> freeParams)
130 variant, order, freeParams);
148 { { 0., 0., 0., 0. },
152 { 4./ 3., -1./ 3., 0., 0. },
154 { 18./11., -9./11., 2./11., 0. },
156 { 48./25., -36./25., 16./25., -3./25. } };
160 phase->m_order = order;
162 std::string(
"BDFImplicitOrder" + std::to_string(phase->m_order));
164 phase->m_numsteps = phase->m_order;
165 phase->m_numstages = 1;
185 phase->m_A[0][0][0] = ABcoefficients[phase->m_order];
186 phase->m_B[0][0][0] = ABcoefficients[phase->m_order];
189 for (
int n = 0; n < phase->m_order; ++n)
191 phase->m_U[0][n] = UVcoefficients[phase->m_order][n];
192 phase->m_V[0][n] = UVcoefficients[phase->m_order][n];
196 for (
int n = 1; n < phase->m_order; ++n)
198 phase->m_V[n][n - 1] = 1.0;
201 phase->m_numMultiStepValues = phase->m_order;
202 phase->m_numMultiStepImplicitDerivs = 0;
203 phase->m_numMultiStepDerivs = 0;
207 for (
int n = 0; n < phase->m_order; ++n)
209 phase->m_timeLevelOffset[n] = n;
212 phase->CheckAndVerify();
218 return std::string(
"BDFImplicit");
236 std::vector<NekDouble> freeParams)
239 boost::ignore_unused(variant);
240 boost::ignore_unused(order);
244 std::string variant,
unsigned int order,
245 std::vector<NekDouble> freeParams)
247 boost::ignore_unused(variant);
248 boost::ignore_unused(order);
266 std::vector<NekDouble> freeParams)
269 boost::ignore_unused(variant);
270 boost::ignore_unused(order);
274 std::string variant,
unsigned int order,
275 std::vector<NekDouble> freeParams)
277 boost::ignore_unused(variant);
278 boost::ignore_unused(order);
296 std::vector<NekDouble> freeParams)
299 boost::ignore_unused(variant);
300 boost::ignore_unused(order);
304 std::string variant,
unsigned int order,
305 std::vector<NekDouble> freeParams)
307 boost::ignore_unused(variant);
308 boost::ignore_unused(order);
326 std::vector<NekDouble> freeParams)
329 boost::ignore_unused(variant);
330 boost::ignore_unused(order);
334 std::string variant,
unsigned int order,
335 std::vector<NekDouble> freeParams)
337 boost::ignore_unused(variant);
338 boost::ignore_unused(order);
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode....
BDFImplicitOrder1TimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static std::string className
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
BDFImplicitOrder2TimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static std::string className
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
BDFImplicitOrder3TimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static std::string className
static std::string className
BDFImplicitOrder4TimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
static std::string className
virtual LUE std::string v_GetName() const override
BDFImplicitTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
virtual ~BDFImplicitTimeIntegrationScheme()
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, unsigned int order)
static TimeIntegrationSchemeSharedPtr create(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
virtual LUE NekDouble v_GetTimeStability() const override
static LUE void SetupSchemeData(TimeIntegrationAlgorithmGLMSharedPtr &phase, unsigned int order)
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
@ eDiagonallyImplicit
Diagonally implicit scheme (e.g. the DIRK schemes)
std::vector< TimeIntegrationAlgorithmGLMSharedPtr > TimeIntegrationAlgorithmGLMVector
std::shared_ptr< TimeIntegrationScheme > TimeIntegrationSchemeSharedPtr
The above copyright notice and this permission notice shall be included.