Utility functions for mesh motion solvers. More...
Public Member Functions | |
| TypeName ("fieldSmoother") | |
| fieldSmoother (const polyMesh &) | |
| Construct from a polyMesh. More... | |
| virtual | ~fieldSmoother () |
| Destructor. More... | |
| void | smoothNormals (const label nIter, const bitSet &isMeshMasterPoint, const bitSet &isMeshMasterEdge, const labelList &fixedPoints, pointVectorField &normals) const |
| Smooth interior normals. More... | |
| void | smoothPatchNormals (const label nIter, const bitSet &isPatchMasterPoint, const bitSet &isPatchMasterEdge, const indirectPrimitivePatch &adaptPatch, pointField &normals) const |
| Smooth patch normals. More... | |
| template<class Type > | |
| void | minSmoothField (const label nIter, const bitSet &isPatchMasterPoint, const bitSet &isPatchMasterEdge, const indirectPrimitivePatch &adaptPatch, const scalarField &fieldMin, Field< Type > &field) const |
| Smooth a scalar field towards, but not beyond, a minimum value. More... | |
| void | smoothLambdaMuDisplacement (const label nIter, const bitSet &isMeshMasterPoint, const bitSet &isMeshMasterEdge, const bitSet &isSmoothable, vectorField &displacement) const |
| Smooth and then un-smooth a displacement. More... | |
Utility functions for mesh motion solvers.
Definition at line 46 of file fieldSmoother.H.
| fieldSmoother | ( | const polyMesh & | mesh | ) |
Construct from a polyMesh.
Definition at line 33 of file fieldSmoother.C.
|
virtual |
Destructor.
Definition at line 41 of file fieldSmoother.C.
| TypeName | ( | "fieldSmoother" | ) |
| void smoothNormals | ( | const label | nIter, |
| const bitSet & | isMeshMasterPoint, | ||
| const bitSet & | isMeshMasterEdge, | ||
| const labelList & | fixedPoints, | ||
| pointVectorField & | normals | ||
| ) | const |
Smooth interior normals.
Definition at line 48 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::identity(), Foam::Info, Foam::mag(), Foam::normalised(), List< T >::set(), UList< T >::size(), syncTools::syncPointList(), and meshRefinement::weightedSum().

| void smoothPatchNormals | ( | const label | nIter, |
| const bitSet & | isPatchMasterPoint, | ||
| const bitSet & | isPatchMasterEdge, | ||
| const indirectPrimitivePatch & | adaptPatch, | ||
| pointField & | normals | ||
| ) | const |
Smooth patch normals.
Definition at line 135 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::Info, Foam::mag(), PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::normalised(), UList< T >::size(), and meshRefinement::weightedSum().

| void minSmoothField | ( | const label | nIter, |
| const bitSet & | isPatchMasterPoint, | ||
| const bitSet & | isPatchMasterEdge, | ||
| const indirectPrimitivePatch & | adaptPatch, | ||
| const scalarField & | fieldMin, | ||
| Field< Type > & | field | ||
| ) | const |
Smooth a scalar field towards, but not beyond, a minimum value.
Definition at line 25 of file fieldSmootherTemplates.C.
References Foam::fac::average(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), field(), forAll, Foam::gAverage(), Foam::Info, Foam::mag(), PrimitivePatch< FaceList, PointField >::meshPoints(), PrimitivePatch< FaceList, PointField >::nPoints(), and UList< T >::size().

| void smoothLambdaMuDisplacement | ( | const label | nIter, |
| const bitSet & | isMeshMasterPoint, | ||
| const bitSet & | isMeshMasterEdge, | ||
| const bitSet & | isSmoothable, | ||
| vectorField & | displacement | ||
| ) | const |
Smooth and then un-smooth a displacement.
Definition at line 200 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::identity(), Foam::Info, lambda(), Foam::mag(), Foam::constant::physicoChemical::mu, UList< T >::size(), bitSet::test(), and meshRefinement::weightedSum().
