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.

Reference:

    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).

Example:

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

Definition at line 78 of file cubicGradientLimiter.H.

Constructor & Destructor Documentation

◆ cubic()

cubic ( Istream schemeData)
inline

Definition at line 97 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
inline

Definition at line 117 of file cubicGradientLimiter.H.


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