DifferentialModel Class Reference

List of all members.


Detailed Description

AdaptiveRungeKutta compatible model.

Author:
Lawrence Murray <lawrence@indii.org>
Version:
Rev
Date:
Date

Definition at line 17 of file DifferentialModel.hpp.


Public Member Functions

 DifferentialModel ()
 Default constructor for restoring from serialization.
 DifferentialModel (const unsigned int dimensions)
 Constructor.
virtual ~DifferentialModel ()
 Destructor.
virtual void calculateDerivatives (double t, const double y[], double dydt[])=0
 Calculate derivatives of the system at a given time.
unsigned int getDimensions ()
 Number of state variables in the system.

Constructor & Destructor Documentation

DifferentialModel (  ) 

Default constructor for restoring from serialization.

Definition at line 9 of file DifferentialModel.cpp.

DifferentialModel ( const unsigned int  dimensions  ) 

Constructor.

Parameters:
dimensions Number of state variables in the system.

Definition at line 13 of file DifferentialModel.cpp.

~DifferentialModel (  )  [virtual]

Destructor.

Definition at line 18 of file DifferentialModel.cpp.


Member Function Documentation

virtual void calculateDerivatives ( double  t,
const double  y[],
double  dydt[] 
) [pure virtual]

Calculate derivatives of the system at a given time.

Parameters:
t $t$; the time.
y $\mathbf{y}(t)$; the values of all state variables at time $t$.
dydt Array into which to write the calculated derivatives $\frac{d}{dt}y_i(t)$ for state variables at time $t$.
See also:
indii::ml::aux::arrayToVector and indii::ml::aux::vectorToArray for convenient methods for converting between C/C++ arrays and indii::ml::aux::vector.

gsl_odeiv_system data type and gsl_odeiv_evolve_apply() function of the GSL.

unsigned int getDimensions (  ) 

Number of state variables in the system.

Returns:
Number of state variables in the system.

Definition at line 22 of file DifferentialModel.cpp.


Generated on Wed Dec 17 15:11:58 2008 for dysii Dynamical Systems Library by  doxygen 1.5.3