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
51 namespace LibUtilities
61 std::vector<NekDouble> freeParams);
70 std::string variant,
unsigned int order,
71 std::vector<NekDouble> freeParams)
75 variant, order, freeParams);
150 const int timestep,
const NekDouble delta_t,
153 LUE virtual void v_print(std::ostream &os)
const override;
216 inline unsigned int modIncrement(
const unsigned int counter,
217 const unsigned int base)
const;
219 inline unsigned int computeL(
const unsigned int base,
220 const unsigned int m)
const;
222 inline unsigned int computeQML(
const unsigned int base,
223 const unsigned int m);
225 inline unsigned int computeTaus(
const unsigned int base,
226 const unsigned int m);
242 const unsigned int tauml,
Class for fractional-in-time integration.
unsigned int modIncrement(const unsigned int counter, const unsigned int base) const
Method that increments the counter then performs mod calculation.
void updateStage(const unsigned int timeStep, Instance &instance)
Method to rearrange of staging/stashing for current time.
virtual LUE unsigned int v_GetOrder() const override
virtual LUE void v_InitializeScheme(const NekDouble deltaT, ConstDoubleArray &y_0, const NekDouble time, const TimeIntegrationSchemeOperators &op) override
Worker method to initialize the integration scheme.
virtual LUE std::vector< NekDouble > v_GetFreeParams() const override
virtual LUE NekDouble v_GetTimeStability() const override
void integralClassInitialize(const unsigned int index, Instance &instance) const
Method to initialize the integral class.
virtual LUE ConstDoubleArray & v_TimeIntegrate(const int timestep, const NekDouble delta_t, const TimeIntegrationSchemeOperators &op) override
Worker method that performs the time integration.
unsigned int computeQML(const unsigned int base, const unsigned int m)
Method to compute the demarcation integers q_{m, ell}.
virtual LUE std::string v_GetVariant() const override
virtual void v_SetSolutionVector(const int Offset, const DoubleArray &y) override
Sets the solution vector of the ODE.
Array< OneD, int > m_taus
unsigned int m_maxTimeSteps
unsigned int computeL(const unsigned int base, const unsigned int m) const
Method to compute the smallest integer L such that base < 2.
void timeAdvance(const unsigned int timeStep, const TimeIntegrationSchemeOperators &op, 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, unsigned int order, std::vector< NekDouble > freeParams)
Creator.
virtual LUE void v_print(std::ostream &os) const override
Worker method to print details on the integration scheme.
ComplexSingleArray m_expFactor
ComplexDoubleArray m_uInt
virtual const TripleArray & v_GetSolutionVector() const override
Gets the solution vector of the ODE.
unsigned int computeTaus(const unsigned int base, const unsigned int m)
Method to compute the demarcation interval marker tau_{m, ell}.
void talbotQuadrature(const unsigned int nQuadPts, const NekDouble mu, const NekDouble nu, const NekDouble sigma, ComplexSingleArray &lamb, ComplexSingleArray &w) const
Method to compute the quadrature rule over Tablot contour.
virtual LUE TimeIntegrationSchemeType v_GetIntegrationSchemeType() const override
void advanceSandbox(const unsigned int timeStep, const TimeIntegrationSchemeOperators &op, Instance &instance)
Method to update sandboxes to the current time.
Array< OneD, Instance > m_integral_classes
virtual LUE void v_printFull(std::ostream &os) const override
virtual ~FractionalInTimeIntegrationScheme()
Destructor.
virtual LUE std::string v_GetName() const override
FractionalInTimeIntegrationScheme(std::string variant, unsigned int order, std::vector< NekDouble > freeParams)
Constructor.
LUE friend std::ostream & operator<<(std::ostream &os, const FractionalInTimeIntegrationScheme &rhs)
void finalIncrement(const unsigned int timeStep, const TimeIntegrationSchemeOperators &op)
Method to approximate the integral.
static std::string className
void integralContribution(const unsigned int timeStep, const unsigned int tauml, const Instance &instance)
Method to get the integral contribution over [taus(i+1) taus(i)]. Stored in m_uInt.
TimeIntegrationSchemeType m_schemeType
virtual LUE unsigned int v_GetNumIntegrationPhases() const override
std::vector< NekDouble > m_freeParams
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
The above copyright notice and this permission notice shall be included.
ComplexTripleArray fstash_y
std::pair< int, int > stage_ind
ComplexTripleArray csandbox_y
std::pair< int, int > fstash_ind
ComplexTripleArray cstash_y
std::pair< int, int > cstash_ind
ComplexTripleArray stage_y
int fsandbox_stashincrement
std::pair< int, int > csandbox_ind
std::pair< int, int > fsandbox_ind
ComplexTripleArray fsandbox_y