[╯°□°]╯︵┻━┻
Goldberg Simulator 20000
 All Classes Functions Variables
Integrator.h
00001 #ifndef PRJ_INTEG_H
00002 #define PRJ_INTEG_H
00003 
00004 #include "Vect.h"
00005 
00006 using namespace std;
00007 
00008 class Integrator{
00009 public:
00010         Integrator(double dt);
00011         void setdt(double dt);
00012         double getdt();
00013         virtual void integ( Vect& x, Vect& dx,Vect ddx)=0;
00014         void changePhase();// pour Velocity
00015         bool getPhase();
00016         void updateTime();
00017 protected:
00018         double t;
00019         double dt;
00020         bool phase;
00021 };
00022 
00023 
00024 
00025 
00026 
00027 class IntegratorEulersymplectic : public Integrator{
00028 public:
00029         IntegratorEulersymplectic(double dt);
00030         void integ(Vect& x, Vect& dx,Vect ddx);
00031 };
00032 
00033 class IntegratorVelocityVerlet: public Integrator{
00034 public:
00035         IntegratorVelocityVerlet(double dt);
00036         void integ(Vect& x, Vect& dx,Vect ddx);
00037 };
00038 
00039 
00040 
00041 
00042 
00043 
00044 
00045 
00046 #endif //PRJ_INTEG_H