Public Member Functions | Private Attributes | List of all members
oomph::MinModLimiter Class Reference

#include <dg_elements.h>

+ Inheritance diagram for oomph::MinModLimiter:

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...
 

Detailed Description

Definition at line 543 of file dg_elements.h.

Constructor & Destructor Documentation

◆ MinModLimiter()

oomph::MinModLimiter::MinModLimiter ( const double &  m = 0.0,
const bool &  muscl = false 
)
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.

◆ ~MinModLimiter()

virtual oomph::MinModLimiter::~MinModLimiter ( )
inlinevirtual

Empty destructor.

Definition at line 562 of file dg_elements.h.

Member Function Documentation

◆ limit()

void oomph::MinModLimiter::limit ( const unsigned &  i,
const Vector< DGElement * > &  required_element_pt 
)
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(), and MUSCL.

◆ minmod()

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.

Referenced by limit(), and minmodB().

◆ minmodB()

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.

References M, and minmod().

Referenced by limit().

Member Data Documentation

◆ M

double oomph::MinModLimiter::M
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().

◆ MUSCL

bool oomph::MinModLimiter::MUSCL
private

Boolean flag to indicate a MUSCL or straight min-mod limiter.

Definition at line 550 of file dg_elements.h.

Referenced by limit().


The documentation for this class was generated from the following files: