Programmierpraktikum NPDGL I
|
class implementing a Lax Friedrichs flux Mehr ...
#include <finite_difference.hh>
Öffentliche Methoden | |
LaxFriedrichsFlux (const FluxFunction &f, double lambda) | |
constructor | |
void | apply (const double u_left, const double u_right, double &g) const |
this function actually evaluates the flux |
class implementing a Lax Friedrichs flux
This implements the flux described in Lax-Friedrichs-Fluss.
LaxFriedrichsFlux< FluxFunction >::LaxFriedrichsFlux | ( | const FluxFunction & | f, |
double | lambda | ||
) | [inline] |
constructor
f | the function for which the flux is created |
lambda | the constant \( \lambda \) in the flux formula |
void LaxFriedrichsFlux< FluxFunction >::apply | ( | const double | u_left, |
const double | u_right, | ||
double & | g | ||
) | const [inline, virtual] |
this function actually evaluates the flux
u_left | first argument of the flux \( u \) |
u_right | second argument of the flux \( v \) |
g | flux evaluation \( g(u,v) \) |
Implementiert NumericalFluxIf.