H2 Combustion
rk3adaptive.h
00001 #ifndef zh2_rk3_adaptive
00002 #define zh2_rk3_adaptive
00003 
00004 #include "integrator.h"
00005 
00006 namespace h2comb {
00007 
00008     
00013     class AdaptiveRungeKutta3Integrator : public Integrator
00014     {
00015     public: 
00016         AdaptiveRungeKutta3Integrator(Integrable *s, double acc) : Integrator(s), accuracy(acc) {}
00017         void integrate(double T, double deltaTguess);
00018         
00019     private:
00020         void step();
00021         
00022         double accuracy;
00023         
00024         double t, deltaT;
00025         
00026         int dim;
00027         
00028         double *state, *k1, *k2, *k3, *intermediateState;
00029         double infnormIntState();
00030     };
00031 
00032 }
00033 
00034 #endif
00035 
 All Classes Files Functions