32#ifndef vtkInitialValueProblemSolver_h
33#define vtkInitialValueProblemSolver_h
35#include "vtkCommonMathModule.h"
69 double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
double& error)
71 return this->ComputeNextStep(xprev, xnext, t, delT, maxError, error,
nullptr);
74 virtual int ComputeNextStep(
double* xprev,
double* xnext,
double t,
double& delT,
double maxError,
75 double& error,
void* userData)
77 double minStep = delT;
78 double maxStep = delT;
80 return this->ComputeNextStep(
81 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
84 virtual int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
85 double maxError,
double& error)
87 return this->ComputeNextStep(xprev, dxprev, xnext, t, delT, maxError, error,
nullptr);
90 virtual int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
91 double maxError,
double& error,
void* userData)
93 double minStep = delT;
94 double maxStep = delT;
96 return this->ComputeNextStep(
97 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
100 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error)
102 return this->ComputeNextStep(
103 xprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error,
nullptr);
107 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error,
110 return this->ComputeNextStep(
111 xprev,
nullptr, xnext, t, delT, delTActual, minStep, maxStep, maxError, error, userData);
114 virtual int ComputeNextStep(
double* xprev,
double* dxprev,
double* xnext,
double t,
double& delT,
115 double& delTActual,
double minStep,
double maxStep,
double maxError,
double& error)
117 return this->ComputeNextStep(
118 xprev, dxprev, xnext, t, delT, delTActual, minStep, maxStep, maxError, error,
nullptr);
122 double* vtkNotUsed(xnext),
double vtkNotUsed(t),
double& vtkNotUsed(delT),
123 double& vtkNotUsed(delTActual),
double vtkNotUsed(minStep),
double vtkNotUsed(maxStep),
124 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