20#ifndef vtkRungeKutta2_h
21#define vtkRungeKutta2_h
23#include "vtkCommonMathModule.h"
26VTK_ABI_NAMESPACE_BEGIN
38 using Superclass::ComputeNextStep;
53 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
54 double& error,
void* userData)
override
56 double minStep = delT;
57 double maxStep = delT;
60 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
62 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
63 double maxError,
double& error,
void* userData)
override
65 double minStep = delT;
66 double maxStep = delT;
69 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
71 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double& delTActual,
72 double minStep,
double maxStep,
double maxError,
double& error,
void* userData)
override
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& delTActual,
double minStep,
double maxStep,
double maxError,
double& error,
79 void* userData)
override;
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 2nd order Runge-Kutta method.
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...
static vtkRungeKutta2 * New()
Construct a vtkRungeKutta2 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...
~vtkRungeKutta2() override
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 &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...