gridripper::amr1d::Dissipation Class Reference

Numerical dissipation term on the grid. More...

#include <Dissipation.h>

Inheritance diagram for gridripper::amr1d::Dissipation:

gridripper::amr1d::O2Dissipation gridripper::amr1d::O4Dissipation gridripper::amr1d::O6Dissipation

List of all members.

Public Member Functions

virtual void addDissipation (const Grid &g, const PDE *pde, int i, tvalarray< GReal_t > &dfdt, int exclude)=0
 Adds a dissipation term to the time derivative.
const SigmagetSigma () const
 Gets the dissipation term multiplier.
void setSigma (const Sigma &s)
 Sets the dissipation term multiplier.
virtual string toString () const =0
 Gets a string representation.

Protected Member Functions

GReal_t evalSigma (const Grid &g, int i) const
 Evaluates sigma.


Detailed Description

Numerical dissipation term on the grid.

Version:
0.5, 01/06/2009
Author:
Peter Csizmadia

Member Function Documentation

virtual void gridripper::amr1d::Dissipation::addDissipation ( const Grid g,
const PDE pde,
int  i,
tvalarray< GReal_t > &  dfdt,
int  exclude 
) [pure virtual]

Adds a dissipation term to the time derivative.

Parameters:
g the grid
pde the PDE
i the grid point index
dfdt add the dissipation term to this time derivative
exclude binary flags corresponding to constant field components for which the dissipation term must NOT be added

Implemented in gridripper::amr1d::O2Dissipation, gridripper::amr1d::O4Dissipation, and gridripper::amr1d::O6Dissipation.

const Sigma& gridripper::amr1d::Dissipation::getSigma (  )  const [inline]

Gets the dissipation term multiplier.

Returns:
the dissipation term multiplier

void gridripper::amr1d::Dissipation::setSigma ( const Sigma s  )  [inline]

Sets the dissipation term multiplier.

Parameters:
s the dissipation term multiplier

virtual string gridripper::amr1d::Dissipation::toString (  )  const [pure virtual]

Gets a string representation.

Returns:
the class name

Implemented in gridripper::amr1d::O2Dissipation, gridripper::amr1d::O4Dissipation, and gridripper::amr1d::O6Dissipation.

GReal_t gridripper::amr1d::Dissipation::evalSigma ( const Grid g,
int  i 
) const [protected]

Evaluates sigma.

Parameters:
g the grid
i grid point index
Returns:
the sigma value


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

Generated on Wed Jun 17 18:46:48 2009 for GridRipper by  doxygen 1.5.6