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

dolfin::ReducedModel Class Reference

#include <ReducedModel.h>

Inheritance diagram for dolfin::ReducedModel:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ReducedModel (ODE &ode)
 Constructor.

 ~ReducedModel ()
 Destructor.

real f (const Vector &u, real t, unsigned int i)
 The right-hand side, including model.

real u0 (unsigned int i)
 Map initial data.

Element::Type method (unsigned int i)
 Map the choice of method.

unsigned int order (unsigned int i)
 Map the choice of order.

real timestep (unsigned int i)
 Map the choice of time step.

void update (RHS &f, Function &u, real t)
 Map update function.

void update (Solution &u, Adaptivity &adaptivity, real t)
 Map update function.

void save (Sample &sample)
 Map the save function.


Detailed Description

ReducedModel represents an averaged ODE of the form

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

u(0) = u0,

where u(t) is a vector of length N, and where g accounts for the effects of small scales on the averaged solution u.

A ReducedModel is automatically created whenever the option "automatic modeling" is set. Note that this does not currently work in combination with the "step" interface of the multi-adaptive solver, i.e., the "solve" interface must be used.


Constructor & Destructor Documentation

ReducedModel::ReducedModel ODE ode  ) 
 

Constructor.

ReducedModel::~ReducedModel  ) 
 

Destructor.


Member Function Documentation

real ReducedModel::f const Vector u,
real  t,
unsigned int  i
[virtual]
 

The right-hand side, including model.

Implements dolfin::ODE.

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

Map the choice of method.

Reimplemented from dolfin::ODE.

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

Map the choice of order.

Reimplemented from dolfin::ODE.

void ReducedModel::save Sample sample  )  [virtual]
 

Map the save function.

Reimplemented from dolfin::ODE.

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

Map the choice of time step.

Reimplemented from dolfin::ODE.

real ReducedModel::u0 unsigned int  i  )  [virtual]
 

Map initial data.

Implements dolfin::ODE.

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

Map update function.

Reimplemented from dolfin::ODE.

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

Map update function.

Reimplemented from dolfin::ODE.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.