40#ifndef NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_TIME_INTEGRATION_SCHEME_FIT
41#define NEKTAR_LIB_UTILITIES_TIME_INTEGRATION_TIME_INTEGRATION_SCHEME_FIT
43#define LUE LIB_UTILITIES_EXPORT
59 std::vector<NekDouble> freeParams);
68 std::string variant,
size_t order, std::vector<NekDouble> freeParams)
72 variant, order, freeParams);
151 LUE void v_print(std::ostream &os)
const override;
166 std::pair<size_t, size_t>
215 inline size_t modIncrement(
const size_t counter,
const size_t base)
const;
217 inline size_t computeL(
const size_t base,
const size_t m)
const;
219 inline size_t computeQML(
const size_t base,
const size_t m);
221 inline size_t computeTaus(
const size_t base,
const size_t m);
Class for fractional-in-time integration.
TripleArray & v_UpdateSolutionVector() override
LUE std::string v_GetVariant() const override
size_t computeTaus(const size_t base, const size_t m)
Method to compute the demarcation interval marker tau_{m, ell}.
Array< OneD, size_t > m_taus
LUE void v_InitializeScheme(const NekDouble deltaT, ConstDoubleArray &y_0, const NekDouble time, const TimeIntegrationSchemeOperators &op) override
Worker method to initialize the integration scheme.
LUE TimeIntegrationSchemeType v_GetIntegrationSchemeType() const override
LUE size_t v_GetOrder() const override
void timeAdvance(const size_t timeStep, Instance &instance, ComplexTripleArray &y)
Method to get the solution to y' = z*y + f(u), using an exponential integrator with implicit order (m...
static TimeIntegrationSchemeSharedPtr create(std::string variant, size_t order, std::vector< NekDouble > freeParams)
Creator.
TimeIntegrationSchemeOperators m_op
const TripleArray & v_GetSolutionVector() const override
Gets the solution vector of the ODE.
LUE std::string v_GetName() const override
Array< OneD, size_t > m_qml
void updateStage(const size_t timeStep, Instance &instance)
Method to rearrange of staging/stashing for current time.
void advanceSandbox(const size_t timeStep, Instance &instance)
Method to update sandboxes to the current time.
~FractionalInTimeIntegrationScheme() override
Destructor.
void integralClassInitialize(const size_t index, Instance &instance) const
Method to initialize the integral class.
LUE void v_print(std::ostream &os) const override
Worker method to print details on the integration scheme.
size_t modIncrement(const size_t counter, const size_t base) const
Method that increments the counter then performs mod calculation.
void v_SetSolutionVector(const size_t Offset, const DoubleArray &y) override
Sets the solution vector of the ODE.
ComplexSingleArray m_expFactor
void finalIncrement(const size_t timeStep)
Method to approximate the integral.
ComplexDoubleArray m_uInt
void integralContribution(const size_t timeStep, const size_t tauml, const Instance &instance)
Method to get the integral contribution over [taus(i+1) taus(i)]. Stored in m_uInt.
void talbotQuadrature(const size_t nQuadPts, const NekDouble mu, const NekDouble nu, const NekDouble sigma, ComplexSingleArray &lamb, ComplexSingleArray &w) const
Method to compute the quadrature rule over Tablot contour.
size_t computeL(const size_t base, const size_t m) const
Method to compute the smallest integer L such that base < 2.
Array< OneD, Instance > m_integral_classes
LUE void v_printFull(std::ostream &os) const override
LUE ConstDoubleArray & v_TimeIntegrate(const size_t timestep, const NekDouble delta_t) override
Worker method that performs the time integration.
LUE NekDouble v_GetTimeStability() const override
LUE size_t v_GetNumIntegrationPhases() const override
FractionalInTimeIntegrationScheme(std::string variant, size_t order, std::vector< NekDouble > freeParams)
Constructor.
static std::string className
size_t computeQML(const size_t base, const size_t m)
Method to compute the demarcation integers q_{m, ell}.
TimeIntegrationSchemeType m_schemeType
LUE std::vector< NekDouble > v_GetFreeParams() const override
std::vector< NekDouble > m_freeParams
LUE friend std::ostream & operator<<(std::ostream &os, const FractionalInTimeIntegrationScheme &rhs)
Base class for time integration schemes.
Binds a set of functions for use by time integration schemes.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
TimeIntegrationSchemeType
@ eFractionalInTime
Fractional in Time scheme.
std::shared_ptr< FractionalInTimeIntegrationScheme > FractionalInTimeIntegrationSchemeSharedPtr
std::ostream & operator<<(std::ostream &os, const BasisKey &rhs)
std::shared_ptr< TimeIntegrationScheme > TimeIntegrationSchemeSharedPtr
std::vector< double > w(NPUPPER)
ComplexTripleArray fstash_y
std::pair< size_t, size_t > fsandbox_ind
ComplexTripleArray csandbox_y
ComplexTripleArray cstash_y
ComplexTripleArray stage_y
std::pair< size_t, size_t > cstash_ind
size_t fsandbox_activebase
std::pair< size_t, size_t > stage_ind
std::pair< size_t, size_t > fstash_ind
std::pair< size_t, size_t > csandbox_ind
size_t fsandbox_stashincrement
ComplexTripleArray fsandbox_y