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);
 
  141         const int timestep, 
const NekDouble delta_t,
 
  144     LUE virtual void print(std::ostream &os) 
const;
 
  215     inline unsigned int modIncrement(
const unsigned int counter,
 
  216                                      const unsigned int base) 
const;
 
  218     inline unsigned int computeL(
const unsigned int base,
 
  219                                  const unsigned int m) 
const;
 
  221     inline unsigned int computeQML(
const unsigned int base,
 
  222                                    const unsigned int m);
 
  224     inline unsigned int computeTaus(
const unsigned int base,
 
  225                                     const unsigned int m);
 
  241                               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.
 
virtual LUE void print(std::ostream &os) const
Worker method to print details on the integration scheme.
 
void updateStage(const unsigned int timeStep, Instance &instance)
Method to rearrange of staging/stashing for current time.
 
virtual LUE void printFull(std::ostream &os) const
 
void integralClassInitialize(const unsigned int index, Instance &instance) const
Method to initialize the integral class.
 
unsigned int computeQML(const unsigned int base, const unsigned int m)
Method to compute the demarcation integers q_{m, ell}.
 
virtual LUE TimeIntegrationSchemeType GetIntegrationSchemeType() const
 
virtual LUE std::string GetVariant() const
 
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 unsigned int GetOrder() const
 
virtual LUE std::vector< NekDouble > GetFreeParams() const
 
ComplexSingleArray m_expFactor
 
virtual LUE std::string GetName() const
 
LUE unsigned int GetNumIntegrationPhases() const
 
virtual LUE void InitializeScheme(const NekDouble deltaT, ConstDoubleArray &y_0, const NekDouble time, const TimeIntegrationSchemeOperators &op)
Worker method to initialize the integration scheme.
 
ComplexDoubleArray m_uInt
 
virtual LUE ConstDoubleArray & TimeIntegrate(const int timestep, const NekDouble delta_t, const TimeIntegrationSchemeOperators &op)
Worker method that performs the time integration.
 
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.
 
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 ~FractionalInTimeIntegrationScheme()
Destructor.
 
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
 
virtual LUE NekDouble GetTimeStability() const
 
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.
 
const TripleArray & GetSolutionVector() const
Gets the solution vector of the ODE.
 
TimeIntegrationSchemeType m_schemeType
 
std::vector< NekDouble > m_freeParams
 
void SetSolutionVector(const int Offset, const DoubleArray &y)
Sets the solution vector of the ODE.
 
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