LinTSScheme< T > Class Template Reference

Base class for linear time stepping schemes. More...

#include <LinTimeStep.hpp>

Inheritance diagram for LinTSScheme< T >:

Inheritance graph
[legend]
Collaboration diagram for LinTSScheme< T >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

double TimeStep () const
 Returns the current time step.
virtual void PrintParam ()=0
 Prints parameters of the scheme.
virtual void PreProcess (GridVec< T > &u_0)=0
 Initializes the time stepping process.
virtual void Step (GridVec< T > &u_old, GridVec< T > &u_new)=0
 Computes one time step.
virtual void PostProcess ()
 releases the memory, ...
 LinTSScheme (double init_dt, LinTimeAssemble< T > &the_assembler)
 Constructor.
virtual ~LinTSScheme ()
 Virtual destructor.

Public Attributes

unsigned disp_type
 The display type.

Protected Attributes

double dt
LinTimeAssemble< T > * assembler

Detailed Description

template<typename T>
class LinTSScheme< T >

Base class for linear time stepping schemes.

This is a base class for time stepping schemes for problems that are represented by classes derived from LinTimeAssemble<T>. Cf. the descriptions of LinTimeAssemble<T> for details.

Note:
The template depends on a type T. This type should satisfy the conditions listed in small_matrix.hpp for small matrices.


Constructor & Destructor Documentation

template<typename T>
LinTSScheme< T >::LinTSScheme ( double  init_dt,
LinTimeAssemble< T > &  the_assembler 
) [inline]

Constructor.

Parameters:
[in] init_dt The initial time step
[in] the_assembler The discretization

template<typename T>
virtual LinTSScheme< T >::~LinTSScheme (  )  [inline, virtual]

Virtual destructor.


Member Function Documentation

template<typename T>
double LinTSScheme< T >::TimeStep (  )  const [inline]

Returns the current time step.

template<typename T>
virtual void LinTSScheme< T >::PrintParam (  )  [pure virtual]

Prints parameters of the scheme.

Implemented in WTSScheme< T >.

template<typename T>
virtual void LinTSScheme< T >::PreProcess ( GridVec< T > &  u_0  )  [pure virtual]

Initializes the time stepping process.

Parameters:
[in] u_0 The initial condition

Implemented in WTSScheme< T >.

template<typename T>
virtual void LinTSScheme< T >::Step ( GridVec< T > &  u_old,
GridVec< T > &  u_new 
) [pure virtual]

Computes one time step.

Note:
'u_old' and 'u_new' may not be the same vector!
Parameters:
[in] u_old Solution from the old time step
[in] u_new For the solution on the new time step

Implemented in WTSScheme< T >.

template<typename T>
virtual void LinTSScheme< T >::PostProcess (  )  [inline, virtual]

releases the memory, ...

Reimplemented in WTSScheme< T >.


Member Data Documentation

template<typename T>
double LinTSScheme< T >::dt [protected]

the current time step

template<typename T>
LinTimeAssemble<T>* LinTSScheme< T >::assembler [protected]

the spatial discretization

template<typename T>
LinTSScheme< T >::disp_type

The display type.

Note:
Change 'disp_type' any time you like.


The documentation for this class was generated from the following file:
Generated on Fri Sep 21 12:34:19 2007 for SG2 by  doxygen 1.5.2