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

dolfin::ODE Class Reference

#include <ODE.h>

Inheritance diagram for dolfin::ODE:

Inheritance graph
[legend]
Collaboration diagram for dolfin::ODE:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ODE (unsigned int N)
 Constructor.

virtual ~ODE ()
 Destructor.

virtual real u0 (unsigned int i)=0
 Initial value.

virtual real f (const Vector &u, real t, unsigned int i)=0
 Right-hand side.

virtual Element::Type method (unsigned int i)
 Method to use for given component (optional).

virtual unsigned int order (unsigned int i)
 Order to use for given component (optional).

virtual real timestep (unsigned int i)
 Time step to use for given component (optional).

virtual void update (RHS &f, Function &u, real t)
 Update ODE (optional).

virtual void update (Solution &u, Adaptivity &adaptivity, real t)
 Update ODE (optional).

virtual void save (Sample &sample)
 Save sample (optional).

unsigned int size () const
 Number of components N.

real endtime () const
 End time (final time).

void solve ()
 Solve ODE.

void solve (Function &u)
 Solve ODE.

void solve (Function &u, Function &phi)
 Solve ODE.

void sparse ()
 Automatically detect sparsity.

void sparse (const Matrix &A)
 Compute sparsity from given matrix.


Protected Attributes

unsigned int N
real T
Sparsity sparsity

Friends

class Dual
 Friends.

class RHS
class ReducedModel

Detailed Description

A ODE represents an initial value problem of the form

u'(t) = f(u(t),t) on (0,T],

u(0) = u0,

where u(t) is a vector of length N.


Constructor & Destructor Documentation

ODE::ODE unsigned int  N  ) 
 

Constructor.

ODE::~ODE  )  [virtual]
 

Destructor.


Member Function Documentation

real ODE::endtime  )  const
 

End time (final time).

virtual real dolfin::ODE::f const Vector u,
real  t,
unsigned int  i
[pure virtual]
 

Right-hand side.

Implemented in Bistable, Lorenz, Single, Harmonic, SpringSystem, TestProblem, TestProblem1, TestProblem2, TestProblem3, TestProblem4, TestProblem5, TestProblem6, TestProblem7, TestProblem8, TestProblem9, Single, Harmonic, SpringSystem, dolfin::Dual, dolfin::ParticleSystem, and dolfin::ReducedModel.

Element::Type ODE::method unsigned int  i  )  [virtual]
 

Method to use for given component (optional).

Reimplemented in TestProblem9, and dolfin::ReducedModel.

unsigned int ODE::order unsigned int  i  )  [virtual]
 

Order to use for given component (optional).

Reimplemented in TestProblem9, and dolfin::ReducedModel.

void ODE::save Sample sample  )  [virtual]
 

Save sample (optional).

Reimplemented in Bistable, and dolfin::ReducedModel.

unsigned int ODE::size  )  const
 

Number of components N.

void ODE::solve Function u,
Function phi
 

Solve ODE.

void ODE::solve Function u  ) 
 

Solve ODE.

void ODE::solve  ) 
 

Solve ODE.

void ODE::sparse const Matrix A  ) 
 

Compute sparsity from given matrix.

void ODE::sparse  ) 
 

Automatically detect sparsity.

real ODE::timestep unsigned int  i  )  [virtual]
 

Time step to use for given component (optional).

Reimplemented in Benchmark, and dolfin::ReducedModel.

virtual real dolfin::ODE::u0 unsigned int  i  )  [pure virtual]
 

Initial value.

Implemented in Bistable, Lorenz, Single, Harmonic, SpringSystem, TestProblem, TestProblem1, TestProblem2, TestProblem3, TestProblem4, TestProblem5, TestProblem6, TestProblem7, TestProblem8, TestProblem9, Single, Harmonic, SpringSystem, dolfin::Dual, dolfin::ParticleSystem, and dolfin::ReducedModel.

void ODE::update Solution u,
Adaptivity adaptivity,
real  t
[virtual]
 

Update ODE (optional).

Reimplemented in dolfin::ReducedModel.

void ODE::update RHS f,
Function u,
real  t
[virtual]
 

Update ODE (optional).

Reimplemented in dolfin::ReducedModel.


Friends And Related Function Documentation

friend class Dual [friend]
 

Friends.

friend class ReducedModel [friend]
 

friend class RHS [friend]
 


Member Data Documentation

unsigned int dolfin::ODE::N [protected]
 

Sparsity dolfin::ODE::sparsity [protected]
 

real dolfin::ODE::T [protected]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.