#include <Dissipation.h>
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. |
(For first order numerical methods.)
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
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] |