fvcSmooth.H File Reference

Provides functions smooth spread and sweep which use the FaceCellWave 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 | |

namespace | Foam |

Namespace for OpenFOAM. | |

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

void | spreadSource (volScalarField &mDotOut, const volScalarField &mDotIn, const volScalarField &alpha1, const volScalarField &alpha2, const dimensionedScalar &D, const scalar cutoff) |

Provides functions smooth spread and sweep which use the FaceCellWave 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.

spreadSource: spread a source field (mDotIn) for two phase multiphase using a laplacian operator and diffussivity D. The spread source (mDotOut) is distributed from alpha1 < cutoff to alpha1 > 1 - cutoff, and it is zero across the interface

- Source files

Definition in file fvcSmooth.H.