fieldSmoother Class Reference

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...
 

Detailed Description

Utility functions for mesh motion solvers.

Source files

Definition at line 50 of file fieldSmoother.H.

Constructor & Destructor Documentation

◆ fieldSmoother()

fieldSmoother ( const polyMesh mesh)

Construct from a polyMesh.

Definition at line 40 of file fieldSmoother.C.

◆ ~fieldSmoother()

~fieldSmoother ( )
virtual

Destructor.

Definition at line 48 of file fieldSmoother.C.

Member Function Documentation

◆ TypeName()

TypeName ( "fieldSmoother"  )

◆ smoothNormals()

void smoothNormals ( const label  nIter,
const bitSet isMeshMasterPoint,
const bitSet isMeshMasterEdge,
const labelList fixedPoints,
pointVectorField normals 
) const

Smooth interior normals.

Definition at line 55 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(), syncTools::syncPointList(), and meshRefinement::weightedSum().

Here is the call graph for this function:

◆ smoothPatchNormals()

void smoothPatchNormals ( const label  nIter,
const bitSet isPatchMasterPoint,
const bitSet isPatchMasterEdge,
const indirectPrimitivePatch adaptPatch,
pointField normals 
) const

Smooth patch normals.

Definition at line 142 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(), and meshRefinement::weightedSum().

Here is the call graph for this function:

◆ minSmoothField()

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 32 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(), and PrimitivePatch< FaceList, PointField >::nPoints().

Here is the call graph for this function:

◆ smoothLambdaMuDisplacement()

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 207 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, bitSet::test(), and meshRefinement::weightedSum().

Here is the call graph for this function:

The documentation for this class was generated from the following files: