Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

OSCAR::RungeKutta Class Reference

#include <RungeKutta.h>

Inheritance diagram for OSCAR::RungeKutta:

Inheritance graph
[legend]
List of all members.

Public Methods

 RungeKutta (unsigned int noVariables)
virtual ~RungeKutta ()
virtual VectorIntegrate (void(*pfun)(double, const Vector &, Vector &), double timeStep, double time, Vector &initial)

Private Attributes

Vector temp0
Vector temp1
Vector temp2
Vector temp3

Constructor & Destructor Documentation

OSCAR::RungeKutta::RungeKutta unsigned int    noVariables
 

virtual OSCAR::RungeKutta::~RungeKutta   [virtual]
 


Member Function Documentation

virtual Vector& OSCAR::RungeKutta::Integrate void(*    pfun)(double, const Vector &, Vector &),
double    timeStep,
double    time,
Vector   initial
[virtual]
 

Call this method to integrate a system of equations.

pfun is a pointer to the function that describes the equations. The function must be in the form of ode(double t, Vector& x, Vector& xdot). x' = f(t,x)

Implements OSCAR::Integrator.


Member Data Documentation

Vector OSCAR::RungeKutta::temp0 [private]
 

Vector OSCAR::RungeKutta::temp1 [private]
 

Vector OSCAR::RungeKutta::temp2 [private]
 

Vector OSCAR::RungeKutta::temp3 [private]
 


The documentation for this class was generated from the following file:
RRG Homepage OSCAR Overview OSCAR Tutorials Simulations