Memosa-FVM  0.2
FluxLimiters.h File Reference
#include <math.h>
Include dependency graph for FluxLimiters.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  minModLim
 
struct  vanLeer
 
struct  superbee
 
struct  vanAlbada1
 
struct  ospre
 

Functions

template<class T , class LimitFunc >
void computeLimitCoeff (T &lc, const T x, const T &dx, const T &min, const T &max, const LimitFunc &f)
 
template<class T , class LimitFunc >
void computeLimitCoeff2 (T &lc, const T x, const T &dx, const T &min, const T &max, const LimitFunc &f)
 

Function Documentation

template<class T , class LimitFunc >
void computeLimitCoeff ( T &  lc,
const T  x,
const T &  dx,
const T &  min,
const T &  max,
const LimitFunc &  f 
)

Definition at line 72 of file FluxLimiters.h.

Referenced by COMETBoundaryConditions< X, Diag, OffDiag >::applyPressureInletBC(), COMETBoundaryConditions< X, Diag, OffDiag >::applyRealWallBC(), COMETBoundaryConditions< X, Diag, OffDiag >::applyZeroGradientBC(), COMETESBGKDiscretizer< T >::COMETConvectionFine(), and COMETESBGKDiscretizer< T >::setBoundaryValFine().

74 {
75  T thislc = NumTypeTraits<T>::getUnity();
76  if (dx>0)
77  thislc = f(dx,max-x);
78  else
79  thislc = f(-dx,x-min);
80  if (thislc < lc)
81  lc = thislc;
82 };
double max(double x, double y)
Definition: Octree.cpp:18
double min(double x, double y)
Definition: Octree.cpp:23
template<class T , class LimitFunc >
void computeLimitCoeff2 ( T &  lc,
const T  x,
const T &  dx,
const T &  min,
const T &  max,
const LimitFunc &  f 
)

Definition at line 85 of file FluxLimiters.h.

Referenced by COMETDiscretizer< T >::COMETConvectionFine(), and COMETDiscretizer< T >::updateGhostFine().

87 {
88  T thislc = NumTypeTraits<T>::getUnity();
89  if (dx>0)
90  thislc = f(dx/(max-x));
91  else
92  thislc = f(-dx/(x-min));
93  if (thislc < lc)
94  lc = thislc;
95 };
double max(double x, double y)
Definition: Octree.cpp:18
double min(double x, double y)
Definition: Octree.cpp:23