gridripper::amr1d::O2Dissipation Class Reference

Second order second derivative. More...

#include <Dissipation.h>

Inheritance diagram for gridripper::amr1d::O2Dissipation:

gridripper::amr1d::Dissipation

List of all members.

Public Member Functions

 O2Dissipation (const PDE &pde, int level)
 Creates second order dissipation operator.
void addDissipation (const Grid &g, const PDE *pde, int i, tvalarray< GReal_t > &dfdt, int exclude) throw (IllegalArgumentException&)
 Adds second order dissipation term.
string toString () const
 Gets a string representation.


Detailed Description

Second order second derivative.

(For first order numerical methods.)


Member Function Documentation

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

Adds second order dissipation term.


sigma*f''*dx = sigma*(f0 - 2*f1 + f2)/dx

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

Implements gridripper::amr1d::Dissipation.

string gridripper::amr1d::O2Dissipation::toString (  )  const [inline, virtual]

Gets a string representation.

Returns:
the class name

Implements gridripper::amr1d::Dissipation.


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