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

dolfin::Dual Class Reference

#include <Dual.h>

Inheritance diagram for dolfin::Dual:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Dual (ODE &primal, Function &u)
 Constructor.

 ~Dual ()
 Destructor.

real u0 (unsigned int i)
 Initial value.

real f (const Vector &phi, real t, unsigned int i)
 Right-hand side.


Detailed Description

A Dual represents an initial value problem of the form

phi(T) = psi,

where phi(t) is a vector of length N, A is the Jacobian of the right-hand side f of the primal problem, and psi is given final time data for the dual.

To solve the Dual forward in time, it is rewritten using the substitution t -> T - t, i.e. we solve an initial value problem of the form

w'(t) = J(u(T-t),T-t)^* w(t) on (0,T],

w(0) = psi,

where w(t) = phi(T-t).


Constructor & Destructor Documentation

Dual::Dual ODE primal,
Function u
 

Constructor.

Dual::~Dual  ) 
 

Destructor.


Member Function Documentation

real Dual::f const Vector phi,
real  t,
unsigned int  i
[virtual]
 

Right-hand side.

Implements dolfin::ODE.

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

Initial value.

Implements dolfin::ODE.


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


Documentation automatically generated with Doxygen on 10 Sep 2004.