VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkRungeKutta2 Class Reference

Integrate an initial value problem using 2nd order Runge-Kutta method. More...

#include <vtkRungeKutta2.h>

Inheritance diagram for vtkRungeKutta2:
[legend]
Collaboration diagram for vtkRungeKutta2:
[legend]

Public Types

typedef
vtkInitialValueProblemSolver 
Superclass
 
- Public Types inherited from vtkInitialValueProblemSolver
enum  ErrorCodes { OUT_OF_DOMAIN = 1, NOT_INITIALIZED = 2, UNEXPECTED_VALUE = 3 }
 
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkRungeKutta2NewInstance () const
 
virtual int ComputeNextStep (double *xprev, double *xnext, double t, double &delT, double maxError, double &error)
 
virtual int ComputeNextStep (double *xprev, double *dxprev, double *xnext, double t, double &delT, double maxError, double &error)
 
virtual int ComputeNextStep (double *xprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &error)
 
virtual int ComputeNextStep (double *xprev, double *dxprev, double *xnext, double t, double &delT, double &delTActual, double minStep, double maxStep, double maxError, double &error)
 
- Public Member Functions inherited from vtkInitialValueProblemSolver
vtkInitialValueProblemSolverNewInstance () const
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int IsAdaptive ()
 
virtual void SetFunctionSet (vtkFunctionSet *functionset)
 
virtual vtkFunctionSetGetFunctionSet ()
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkRungeKutta2SafeDownCast (vtkObjectBase *o)
 
static vtkRungeKutta2New ()
 
- Static Public Member Functions inherited from vtkInitialValueProblemSolver
static int IsTypeOf (const char *type)
 
static
vtkInitialValueProblemSolver
SafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkRungeKutta2 ()
 
 ~vtkRungeKutta2 ()
 
- Protected Member Functions inherited from vtkInitialValueProblemSolver
 vtkInitialValueProblemSolver ()
 
 ~vtkInitialValueProblemSolver ()
 
virtual void Initialize ()
 

Additional Inherited Members

- Protected Attributes inherited from vtkInitialValueProblemSolver
vtkFunctionSetFunctionSet
 
double * Vals
 
double * Derivs
 
int Initialized
 
int Adaptive
 

Detailed Description

Integrate an initial value problem using 2nd order Runge-Kutta method.

This is a concrete sub-class of vtkInitialValueProblemSolver. It uses a 2nd order Runge-Kutta method to obtain the values of a set of functions at the next time step.

See Also
vtkInitialValueProblemSolver vtkRungeKutta4 vtkRungeKutta45 vtkFunctionSet

Definition at line 34 of file vtkRungeKutta2.h.

Member Typedef Documentation

Definition at line 37 of file vtkRungeKutta2.h.

Constructor & Destructor Documentation

vtkRungeKutta2::vtkRungeKutta2 ( )
protected
vtkRungeKutta2::~vtkRungeKutta2 ( )
protected

Member Function Documentation

static int vtkRungeKutta2::IsTypeOf ( const char *  type)
static
virtual int vtkRungeKutta2::IsA ( const char *  type)
virtual

Reimplemented from vtkInitialValueProblemSolver.

static vtkRungeKutta2* vtkRungeKutta2::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkRungeKutta2::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkInitialValueProblemSolver.

vtkRungeKutta2* vtkRungeKutta2::NewInstance ( ) const
static vtkRungeKutta2* vtkRungeKutta2::New ( )
static

Construct a vtkRungeKutta2 with no initial FunctionSet.

virtual int vtkRungeKutta2::ComputeNextStep ( double *  xprev,
double *  xnext,
double  t,
double &  delT,
double  maxError,
double &  error 
)
inlinevirtual

Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of x at t+delT (xnext). delTActual is always equal to delT. Since this class can not provide an estimate for the error error is set to 0. maxStep, minStep and maxError are unused. This method returns an error code representing the nature of the failure: OutOfDomain = 1, NotInitialized = 2, UnexpectedValue = 3

Reimplemented from vtkInitialValueProblemSolver.

Definition at line 49 of file vtkRungeKutta2.h.

virtual int vtkRungeKutta2::ComputeNextStep ( double *  xprev,
double *  dxprev,
double *  xnext,
double  t,
double &  delT,
double  maxError,
double &  error 
)
inlinevirtual

Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of x at t+delT (xnext). delTActual is always equal to delT. Since this class can not provide an estimate for the error error is set to 0. maxStep, minStep and maxError are unused. This method returns an error code representing the nature of the failure: OutOfDomain = 1, NotInitialized = 2, UnexpectedValue = 3

Reimplemented from vtkInitialValueProblemSolver.

Definition at line 58 of file vtkRungeKutta2.h.

virtual int vtkRungeKutta2::ComputeNextStep ( double *  xprev,
double *  xnext,
double  t,
double &  delT,
double &  delTActual,
double  minStep,
double  maxStep,
double  maxError,
double &  error 
)
inlinevirtual

Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of x at t+delT (xnext). delTActual is always equal to delT. Since this class can not provide an estimate for the error error is set to 0. maxStep, minStep and maxError are unused. This method returns an error code representing the nature of the failure: OutOfDomain = 1, NotInitialized = 2, UnexpectedValue = 3

Reimplemented from vtkInitialValueProblemSolver.

Definition at line 68 of file vtkRungeKutta2.h.

virtual int vtkRungeKutta2::ComputeNextStep ( double *  xprev,
double *  dxprev,
double *  xnext,
double  t,
double &  delT,
double &  delTActual,
double  minStep,
double  maxStep,
double  maxError,
double &  error 
)
virtual

Given initial values, xprev , initial time, t and a requested time interval, delT calculate values of x at t+delT (xnext). delTActual is always equal to delT. Since this class can not provide an estimate for the error error is set to 0. maxStep, minStep and maxError are unused. This method returns an error code representing the nature of the failure: OutOfDomain = 1, NotInitialized = 2, UnexpectedValue = 3

Implements vtkInitialValueProblemSolver.


The documentation for this class was generated from the following file: