HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
LimiterMinMod.c File Reference

MinMod limiter. More...

#include <mathfunctions.h>
#include <limiters.h>

Go to the source code of this file.

Functions

double LimiterMinMod (double r)
 

Detailed Description

MinMod limiter.

Author
Debojyoti Ghosh

Definition in file LimiterMinMod.c.

Function Documentation

◆ LimiterMinMod()

double LimiterMinMod ( double  r)

MinMod limiter

Reference:

  • Roe, P.L. (1986), "Characteristic-based schemes for the Euler equations", Annu. Rev. Fluid Mech., 18: 337–365, doi:10.1146/annurev.fl.18.010186.002005
Parameters
rInput slope ratio

Definition at line 16 of file LimiterMinMod.c.

19 {
20  double retval = max(0.0,min(1.0,r));
21  return retval;
22 }
#define min(a, b)
Definition: math_ops.h:14
#define max(a, b)
Definition: math_ops.h:18