49#ifndef vtkRungeKutta4_h
50#define vtkRungeKutta4_h
52#include "vtkCommonMathModule.h"
55VTK_ABI_NAMESPACE_BEGIN
67 using Superclass::ComputeNextStep;
82 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
83 double& error,
void* userData)
override
85 double minStep = delT;
86 double maxStep = delT;
89 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
91 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
92 double maxError,
double& error,
void* userData)
override
94 double minStep = delT;
95 double maxStep = delT;
98 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
100 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double& delTActual,
101 double minStep,
double maxStep,
double maxError,
double& error,
void* userData)
override
104 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
106 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
107 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error,
108 void* userData)
override;
117 double* NextDerivs[3];
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 4th order Runge-Kutta method.
void Initialize() override
~vtkRungeKutta4() override
int ComputeNextStep(double *xprev, double *dxprev, 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...
static vtkRungeKutta4 * New()
Construct a vtkRungeKutta4 with no initial FunctionSet.
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 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 PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
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...