Skip to main content

Surface-normal gradient schemes

The full gradient of a property QQ at a face can can be interpolated from the cell-based gradient. The surface-normal contribution is then represented by:

fQ=n(Q)f \snGrad Q = \vec{n} \dprod \left( \grad Q \right)_f

where n\vec{n} is the face unit normal. The stencil for the gradient calculation at the face, ff, between cells P and N is described by the following figure: Surface-normal gradient schematic where the vector d\vec{d} joins the two cell centres. A variety of schemes are available that differ in their application based on the angle, θ\theta, between the d\vec{d} and n\vec{n} vectors, representing the degree of non-orthogonality.

Usage

Surface-normal gradient schemes are specified in the fvSchemesfile under the snGradSchemes sub-dictionary using the syntax:

snGradSchemes
{
default none;
snGrad(Q) <snGrad scheme>;
}

Options

Example

Further information

Source code:

API: