Memosa-FVM  0.2
vanLeer Struct Reference

#include <FluxLimiters.h>

Public Member Functions

template<class T >
operator() (const T a, const T b) const
 
template<class T >
operator() (const T r) const
 

Detailed Description

Definition at line 19 of file FluxLimiters.h.

Member Function Documentation

template<class T >
T vanLeer::operator() ( const T  a,
const T  b 
) const
inline

Definition at line 22 of file FluxLimiters.h.

References fabs().

23  {
24  if (b!=0.)
25  return (a/b+fabs(a/b))/(1+fabs(a/b));
26  else
27  return 0.;
28  }
Tangent fabs(const Tangent &a)
Definition: Tangent.h:312
template<class T >
T vanLeer::operator() ( const T  r) const
inline

Definition at line 31 of file FluxLimiters.h.

References fabs().

32  {
33  if (r!=0.)
34  return (r+fabs(r))/(1+fabs(r));
35  else
36  return 0.;
37  }
Tangent fabs(const Tangent &a)
Definition: Tangent.h:312

The documentation for this struct was generated from the following file: