#include <Dissipation.h>
Public Member Functions | |
O4Dissipation (const PDE &pde, int level) | |
Creates fourth order dissipation operator. | |
void | addDissipation (const Grid &g, const PDE *pde, int i, tvalarray< GReal_t > &dfdt, int exclude) throw (IllegalArgumentException&) |
Adds fourth order dissipation term. | |
string | toString () const |
Gets a string representation. |
(For second order numerical methods.)
void gridripper::amr1d::O4Dissipation::addDissipation | ( | const Grid & | g, | |
const PDE * | pde, | |||
int | i, | |||
tvalarray< GReal_t > & | dfdt, | |||
int | exclude | |||
) | throw (IllegalArgumentException&) [virtual] |
Adds fourth order dissipation term.
-sigma*f''''*dx^3 = -sigma*(f0 - 4*f1 + 6*f2 - 4*f3 + f4)/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::O4Dissipation::toString | ( | ) | const [inline, virtual] |