20#ifndef vtkInitialValueProblemSolver_h
21#define vtkInitialValueProblemSolver_h
23#include "vtkCommonMathModule.h"
26VTK_ABI_NAMESPACE_BEGIN
58 double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
double& error)
60 return this->ComputeNextStep(xprev, xnext, t, delT, maxError, error,
nullptr);
63 virtual int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
64 double& error,
void* userData)
66 double minStep = delT;
67 double maxStep = delT;
69 return this->ComputeNextStep(
70 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
73 virtual int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
74 double maxError,
double& error)
76 return this->ComputeNextStep(xprev, dxprev, xnext, t, delT, maxError, error,
nullptr);
79 virtual int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
80 double maxError,
double& error,
void* userData)
82 double minStep = delT;
83 double maxStep = delT;
85 return this->ComputeNextStep(
86 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
89 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error)
91 return this->ComputeNextStep(
92 xprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error,
nullptr);
96 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error,
99 return this->ComputeNextStep(
100 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
103 virtual int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
104 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error)
106 return this->ComputeNextStep(
107 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error,
nullptr);
111 double* vtkNotUsed(xnext),
double vtkNotUsed(t),
double& vtkNotUsed(delT),
112 double& vtkNotUsed(delTActual),
double vtkNotUsed(minStep),
double vtkNotUsed(maxStep),
113 double vtkNotUsed(maxError),
double& vtkNotUsed(error),
void* vtkNotUsed(userData))
Abstract interface for sets of functions.
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 *dxprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &error)
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
virtual vtkTypeBool IsAdaptive()
Returns 1 if the solver uses adaptive stepsize control, 0 otherwise.
vtkInitialValueProblemSolver()
virtual void Initialize()
virtual void SetFunctionSet(vtkFunctionSet *fset)
Set / get the dataset used for the implicit function evaluation.
virtual int ComputeNextStep(double *xprev, double *dxprev, double *xnext, double t, double &delT, double maxError, double &error, void *userData)
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
virtual int ComputeNextStep(double *xprev, double *dxprev, 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...
virtual int ComputeNextStep(double *xprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &error)
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
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...
~vtkInitialValueProblemSolver() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual int ComputeNextStep(double *xprev, double *xnext, double t, double &delT, double maxError, double &error, void *userData)
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
virtual int ComputeNextStep(double *xprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &error, void *userData)
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
virtual int ComputeNextStep(double *vtkNotUsed(xprev), double *vtkNotUsed(dxprev), double *vtkNotUsed(xnext), double vtkNotUsed(t), double &vtkNotUsed(delT), double &vtkNotUsed(delTActual), double vtkNotUsed(minStep), double vtkNotUsed(maxStep), double vtkNotUsed(maxError), double &vtkNotUsed(error), void *vtkNotUsed(userData))
Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of...
vtkFunctionSet * FunctionSet
abstract base class for most VTK objects