70 void Solve(
double *N0,
double **Matrix,
int N,
double t1,
double t2)
override;
85 void RungeKutta(
double *YStart,
double t1,
double t2);
94 void BuildEqns(
double t,
double *N,
double *dNdt);
120 void RK4(
double *y,
double *dydx,
double x,
double h,
double *yout);
133 void AdaptStepSize(
double *y,
double *dydx,
double *x,
double htry,
double eps,
double *yscal,
double *hdid,
double *hnext);
Header file for BatemanSolver class.
Header file for vector operation, Regression and FindFitParameters functions.
Base class of Bateman-type solvers like Runge-Kutta or CRAM or any other.
Definition BatemanSolver.hxx:45
RKSolver class solves system of differential equations by Runge-Kutta method.
Definition RKSolver.hxx:50
void Solve(double *N0, double **Matrix, int N, double t1, double t2) override
Solve Bateman equation using Runge-Kutta method.
Definition RKSolver.cxx:50
void RungeKutta(double *YStart, double t1, double t2)
Runge Kutta calling method.
Definition RKSolver.cxx:98
void SetTheMatrix(double **f)
Definition RKSolver.hxx:96
void AdaptStepSize(double *y, double *dydx, double *x, double htry, double eps, double *yscal, double *hdid, double *hnext)
Adaptative Step Size method for RK.
Definition RKSolver.cxx:253
void RK4(double *y, double *dydx, double x, double h, double *yout)
Runge Kutta main method.
Definition RKSolver.cxx:192
double fMinHdid
store the effective RK min step
Definition RKSolver.hxx:138
~RKSolver() override
Destructor.
double fHestimate
RK Step estimation.
Definition RKSolver.hxx:135
double ** fTheMatrix
The evolution Matrix.
Definition RKSolver.hxx:147
double fMaxHdid
store the effective RK max step
Definition RKSolver.hxx:137
double fHmin
RK minimum Step.
Definition RKSolver.hxx:136
void BuildEqns(double t, double *N, double *dNdt)
Builds the Bateman equations for integration.
Definition RKSolver.cxx:67
RKSolver()
Normal constructor.
Definition RKSolver.cxx:30
the namespace of the Standard C++