29#ifndef vtkRungeKutta2_h
30#define vtkRungeKutta2_h
32#include "vtkCommonMathModule.h"
46 using Superclass::ComputeNextStep;
61 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
62 double& error,
void* userData)
override
64 double minStep = delT;
65 double maxStep = delT;
68 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
70 int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
71 double maxError,
double& error,
void* userData)
override
73 double minStep = delT;
74 double maxStep = delT;
77 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
79 int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double& delTActual,
80 double minStep,
double maxStep,
double maxError,
double& error,
void* userData)
override
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& delTActual,
double minStep,
double maxStep,
double maxError,
double& error,
87 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...