Page MenuHomec4science

AdamsBashforth.h
No OneTemporary

File Metadata

Created
Wed, Nov 6, 05:42

AdamsBashforth.h

#ifndef ODELIBRARY_ADAMSBASHFORTH_H
#define ODELIBRARY_ADAMSBASHFORTH_H
#include <iostream>
#include <Eigen/Dense>
#include <list>
#include <vector>
#include "MultistepAbstractSolver.h"
class AdamsBashforth:public MultistepAbstractSolver{
private:
/**
* This method sets the coefficients defining the Adams Bashforth method.
*/
void setBCoeff();
/**
* This funcion defines one step of the algorithm.
* @param y : value of y at last time step.
* @param t : time corresponding to y.
*/
void step(Eigen::VectorXd &y, double t) override;
public:
AdamsBashforth();
AdamsBashforth(double t0,double tf,int n,int steps,Eigen::VectorXd& y0);
/**
* This method sets the number of steps defining the multistep Adams Bashforth algorithm.
* @param n : number of steps.
*/
void setStepsAlgo(int n);
};
#endif

Event Timeline