Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::TimeStepper Class Reference

#include <TimeStepper.h>

Collaboration diagram for dolfin::TimeStepper:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeStepper (ODE &ode, Function &function)
 Constructor.

 ~TimeStepper ()
 Destructor.

real step ()
 Step solution, return current time.

bool finished () const
 Check if we have reached the end time.


Static Public Member Functions

void solve (ODE &ode, Function &function)
 Solve given ODE.


Detailed Description

TimeStepper computes the solution of a given ODE. This is where the real work takes place (most of it takes place in the time slab or even in the local elements), whereas the responsibility of the ODE solver is also to solve the dual problem (using this class), compute stability factors and compute error estimates.

This class can be used in two different ways. One way is to call the static method solve() to solve a given ODE:

TimeStepper::solve(ode, u);

Alternatively, one can create a TimeStepper object and use this for repeatedly time stepping the ODE, one time slab at a time:

TimeStepper timeStepper(ode, u); timeStepper.step(); timeStepper.step();


Constructor & Destructor Documentation

TimeStepper::TimeStepper ODE ode,
Function function
 

Constructor.

TimeStepper::~TimeStepper  ) 
 

Destructor.


Member Function Documentation

bool TimeStepper::finished  )  const
 

Check if we have reached the end time.

void TimeStepper::solve ODE ode,
Function function
[static]
 

Solve given ODE.

real TimeStepper::step  ) 
 

Step solution, return current time.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.