58#ifndef vtkRungeKutta4_h
59#define vtkRungeKutta4_h
61#include "vtkCommonMathModule.h"
75 using Superclass::ComputeNextStep;
90 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
91 double& error,
void* userData)
override
93 double minStep = delT;
94 double maxStep = delT;
97 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
99 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
100 double maxError,
double& error,
void* userData)
override
102 double minStep = delT;
103 double maxStep = delT;
106 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
108 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double& delTActual,
109 double minStep,
double maxStep,
double maxError,
double& error,
void* userData)
override
112 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
114 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
115 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error,
116 void* userData)
override;
125 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...