#include <Dissipation.h>
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 Sigma & | getSigma () 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. |
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.
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.
void gridripper::amr1d::Dissipation::setSigma | ( | const Sigma & | s | ) | [inline] |
Sets the dissipation term multiplier.
s | the dissipation term multiplier |
virtual string gridripper::amr1d::Dissipation::toString | ( | ) | const [pure virtual] |
Gets a string representation.
Implemented in gridripper::amr1d::O2Dissipation, gridripper::amr1d::O4Dissipation, and gridripper::amr1d::O6Dissipation.