Gradient schemes
The gradient of a scalar property is represented using the notation:
where the vectors represent the unit vectors of the 3-D space.
Usage
Gradient schemes are specified in the
fvSchemes file under the gradSchemes
sub-dictionary using the syntax:
gradSchemes
{
default none;
grad(p) <optional limiter> <gradient scheme> <interpolation scheme>;
}
Options
Gradient schemes
Interpolation schemes
linear: cell-based linearpointLinear: point-based linearleastSquares: Least squares
Gradient limiters
The limited gradient schemes attempt to preserve the monotonicity condition by limiting the gradient to ensure that the extrapolated face value is bounded by the neighbouring cell values.
clippedLinear: limits linear scheme according to a hypothetical cell size ratio
- Cell-limited gradient scheme
- Face-limited gradient scheme
- Multi-directional cell-limited gradient scheme
- Multi-directional face-limited gradient scheme
Example
See this example to see the relative performance of the schemes.
Further information
Source code:
API: