#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. | |
virtual | ~MinModLimiter () |
Empty destructor. | |
double | minmod (Vector< double > &args) |
The basic minmod function. | |
double | minmodB (Vector< double > &args, const double &h) |
The modified minmod function. | |
void | limit (const unsigned &i, const Vector< DGElement * > &required_element_pt) |
The limit function. | |
![]() | |
SlopeLimiter () | |
Empty constructor. | |
virtual | ~SlopeLimiter () |
virtual destructor | |
Private Attributes | |
double | M |
Constant that is used in the modified min-mod function to provide better properties at extrema. | |
bool | MUSCL |
Boolean flag to indicate a MUSCL or straight min-mod limiter. | |
Definition at line 543 of file dg_elements.h.
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.
References i, minmod(), minmodB(), MUSCL, oomph::FiniteElement::nnode(), oomph::FiniteElement::node_pt(), oomph::Data::set_value(), oomph::Node::value(), and oomph::Node::x().
The basic minmod function.
Helper minmod function.
Definition at line 740 of file dg_elements.cc.
References i, and oomph::FiniteElement::size().
The modified minmod function.
Modified minmod limiter to fix behaviour in smooth regions.
Definition at line 800 of file dg_elements.cc.
References M, minmod(), and oomph::FiniteElement::size().
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().