Utility functions for mesh motion solvers. More...
#include <fieldSmoother.H>
Public Member Functions | |
| TypeName ("fieldSmoother") | |
| fieldSmoother (const polyMesh &) | |
| Construct from a polyMesh. | |
| virtual | ~fieldSmoother () |
| Destructor. | |
| void | smoothNormals (const label nIter, const bitSet &isMeshMasterPoint, const bitSet &isMeshMasterEdge, const labelList &fixedPoints, pointVectorField &normals) const |
| Smooth interior normals. | |
| void | smoothPatchNormals (const label nIter, const bitSet &isPatchMasterPoint, const bitSet &isPatchMasterEdge, const indirectPrimitivePatch &adaptPatch, pointField &normals) const |
| Smooth patch normals. | |
| 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. | |
| void | smoothLambdaMuDisplacement (const label nIter, const bitSet &isMeshMasterPoint, const bitSet &isMeshMasterEdge, const bitSet &isSmoothable, vectorField &displacement) const |
| Smooth and then un-smooth a displacement. | |
Utility functions for mesh motion solvers.
Definition at line 46 of file fieldSmoother.H.
| fieldSmoother | ( | const polyMesh & | mesh | ) |
|
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 47 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::identity(), Foam::Info, Foam::mag(), Foam::normalised(), bitSet::set(), UList< T >::size(), syncTools::syncPointList(), bitSet::test(), 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 134 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, 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 24 of file fieldSmootherTemplates.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), field(), forAll, meshRefinement::gAverage(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::Info, Foam::mag(), PrimitivePatch< FaceList, PointField >::meshPoints(), PrimitivePatch< FaceList, PointField >::nPoints(), UList< T >::size(), and meshRefinement::weightedSum().

| 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 199 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName, Foam::identity(), Foam::Info, lambda(), Foam::mag(), mu, UList< T >::size(), bitSet::test(), and meshRefinement::weightedSum().
