Public Member Functions | List of all members
cubic Class Reference

Cubic gradient limiter. More...

Public Member Functions

 cubic (Istream &schemeData)
scalar limiter (const scalar r) const

Detailed Description

Cubic gradient limiter.

to be used with the Foam::fv::cellLimitedGrad limited gradient. This limiter function is similar to Foam::fv::gradientLimiters::Venkatakrishnan but is a fit to obey the value and gradient constraints and avoids the problem of the limiter exceeding 1 present in the Venkatakrishnan function.

The transition point at which the limiter function reaches 1 is an input parameter and should be set to a value between 1 and 2 although values larger than 2 are physical but likely to significantly reduce the accuracy of the scheme.


    Michalak, K., & Ollivier-Gooch, C. (2008).
    Limiters for unstructured higher-order accurate solutions
    of the Euler equations.
    In 46th AIAA Aerospace Sciences Meeting and Exhibit (p. 776).


    default Gauss linear;
    limited cellLimited<cubic> 1.5 Gauss linear 1;
See also
Foam::fv::cellLimitedGrad Foam::fv::gradientLimiters::Venkatakrishnan

Definition at line 80 of file cubicGradientLimiter.H.

Constructor & Destructor Documentation

◆ cubic()

cubic ( Istream schemeData)

Definition at line 99 of file cubicGradientLimiter.H.

References Foam::exit(), Foam::FatalIOError, and FatalIOErrorInFunction.

Here is the call graph for this function:

Member Function Documentation

◆ limiter()

scalar limiter ( const scalar  r) const

Definition at line 119 of file cubicGradientLimiter.H.

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