HyPar  1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
LimiterSuperBee.c File Reference
#include <mathfunctions.h>
#include <limiters.h>

Go to the source code of this file.

Functions

double LimiterSuperBee (double r)
 

Function Documentation

double LimiterSuperBee ( double  r)

Superbee 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 LimiterSuperBee.c.

19 {
20  double retval = max3(0, min(2*r,1), min(r,2));
21  return retval;
22 }
#define max3(a, b, c)
Definition: math_ops.h:27
#define min(a, b)
Definition: math_ops.h:14