Skip to main content

Least-squares gradient scheme

Properties

The cell gradient is calculated using least squares:

Usage

The scheme is specified using:

gradSchemes
{
default none;
grad(U) leastSquares;
}

Further information

Source code

See also

  • pointCellsLeastSquares: employs a cell-point-cell stencil
  • edgeCellsLeastSquares: employs a cell-edge-cell stencil