fvcSmooth.H File Reference

Provides functions smooth spread and sweep which use the FvFaceCellWave algorithm to smooth and redistribute the first field argument. More...

Include dependency graph for fvcSmooth.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Foam
 Namespace for OpenFOAM.
 
 Foam::fvc
 Namespace of functions to calculate explicit derivatives.
 

Functions

void smooth (volScalarField &field, const scalar coeff)
 
void spread (volScalarField &field, const volScalarField &alpha, const label nLayers, const scalar alphaDiff=0.2, const scalar alphaMax=0.99, const scalar alphaMin=0.01)
 
void sweep (volScalarField &field, const volScalarField &alpha, const label nLayers, const scalar alphaDiff=0.2)
 

Detailed Description

Provides functions smooth spread and sweep which use the FvFaceCellWave algorithm to smooth and redistribute the first field argument.

Original source file fvcSmooth.H

InNamespace Foam::fvc

smooth: smooths the field by ensuring the values in neighbouring cells are at least coeff* the cell value.

spread: redistributes the field by spreading the maximum value within the region defined by the value (being between alphaMax and alphaMin) and gradient of alpha (where the difference between the values in neighbouring cells is larger than alphaDiff).

sweep: redistributes the field by sweeping the maximum value where the gradient of alpha is large (where the difference between the values in neighbouring cells is larger than alphaDiff) away from that starting point of the sweep.

Source files

Definition in file fvcSmooth.H.