#include <dg_elements.h>
Public Member Functions | |
MinModLimiter (const double &m=0.0, const bool &muscl=false) | |
Constructor takes a value for the modification parameter M (default to zero — classic min mod) and a flag to indicate whether we use MUSCL limiting or not — default false. More... | |
virtual | ~MinModLimiter () |
Empty destructor. More... | |
double | minmod (Vector< double > &args) |
The basic minmod function. More... | |
double | minmodB (Vector< double > &args, const double &h) |
The modified minmod function. More... | |
void | limit (const unsigned &i, const Vector< DGElement * > &required_element_pt) |
The limit function. More... | |
Public Member Functions inherited from oomph::SlopeLimiter | |
SlopeLimiter () | |
Empty constructor. More... | |
virtual | ~SlopeLimiter () |
virtual destructor More... | |
Private Attributes | |
double | M |
Constant that is used in the modified min-mod function to provide better properties at extrema. More... | |
bool | MUSCL |
Boolean flag to indicate a MUSCL or straight min-mod limiter. More... | |
Definition at line 543 of file dg_elements.h.
|
inline |
Constructor takes a value for the modification parameter M (default to zero — classic min mod) and a flag to indicate whether we use MUSCL limiting or not — default false.
Definition at line 556 of file dg_elements.h.
|
inlinevirtual |
Empty destructor.
Definition at line 562 of file dg_elements.h.
|
virtual |
The limit function.
Implement the limiter function for the basic MinModlimiter.
Reimplemented from oomph::SlopeLimiter.
Definition at line 822 of file dg_elements.cc.
double oomph::MinModLimiter::minmod | ( | Vector< double > & | args | ) |
The basic minmod function.
Helper minmod function.
Definition at line 740 of file dg_elements.cc.
References i.
double oomph::MinModLimiter::minmodB | ( | Vector< double > & | args, |
const double & | h | ||
) |
The modified minmod function.
Modified minmod limiter to fix behaviour in smooth regions.
Definition at line 800 of file dg_elements.cc.
Referenced by limit().
|
private |
Constant that is used in the modified min-mod function to provide better properties at extrema.
Definition at line 547 of file dg_elements.h.
Referenced by minmodB().
|
private |
Boolean flag to indicate a MUSCL or straight min-mod limiter.
Definition at line 550 of file dg_elements.h.
Referenced by limit().