26#ifndef vtkRungeKutta45_h
27#define vtkRungeKutta45_h
29#include "vtkCommonMathModule.h"
32VTK_ABI_NAMESPACE_BEGIN
44 using Superclass::ComputeNextStep;
68 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
69 double& error,
void* userData)
override
71 double minStep = delT;
72 double maxStep = delT;
75 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
77 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
78 double maxError,
double& error,
void* userData)
override
80 double minStep = delT;
81 double maxStep = delT;
84 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
86 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double& delTActual,
87 double minStep,
double maxStep,
double maxError,
double& error,
void* userData)
override
90 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
92 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
93 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& estErr,
94 void* userData)
override;
105 static double B[5][5];
109 double* NextDerivs[6];
111 int ComputeAStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
112 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...