Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F90939943
AdamsBashforth.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Nov 6, 05:42
Size
879 B
Mime Type
text/x-c++
Expires
Fri, Nov 8, 05:42 (2 d)
Engine
blob
Format
Raw Data
Handle
22163952
Attached To
R9686 PCSCproject
AdamsBashforth.h
View Options
#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
Log In to Comment