35#ifndef vtkRungeKutta45_h
36#define vtkRungeKutta45_h
38#include "vtkCommonMathModule.h"
52 using Superclass::ComputeNextStep;
76 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
77 double& error,
void* userData)
override
79 double minStep = delT;
80 double maxStep = delT;
83 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
85 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
86 double maxError,
double& error,
void* userData)
override
88 double minStep = delT;
89 double maxStep = delT;
92 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
94 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double& delTActual,
95 double minStep,
double maxStep,
double maxError,
double& error,
void* userData)
override
98 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
100 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
101 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& estErr,
102 void* userData)
override;
113 static double B[5][5];
117 double* NextDerivs[6];
119 int ComputeAStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
120 double& delTActual,
double& error,
void* userData);
a simple class to control print indentation
Integrate a set of ordinary differential equations (initial value problem) in time.
virtual int ComputeNextStep(double *xprev, double *xnext, double t, double &delT, double maxError, double &error)
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
Integrate an initial value problem using 5th order Runge-Kutta method with adaptive stepsize control.
~vtkRungeKutta45() override
int ComputeNextStep(double *xprev, double *dxprev, double *xnext, double t, double &delT, double maxError, double &error, void *userData) override
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
int ComputeNextStep(double *xprev, double *xnext, double t, double &delT, double maxError, double &error, void *userData) override
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
int ComputeAStep(double *xprev, double *dxprev, double *xnext, double t, double &delT, double &delTActual, double &error, void *userData)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkRungeKutta45 * New()
Construct a vtkRungeKutta45 with no initial FunctionSet.
int ComputeNextStep(double *xprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &error, void *userData) override
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
void Initialize() override
int ComputeNextStep(double *xprev, double *dxprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &estErr, void *userData) override
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...