Public Member Functions | Private Member Functions | Private Attributes
fieldSmoother Class Reference

Utility functions for mesh motion solvers. More...

Collaboration diagram for fieldSmoother:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("fieldSmoother")
 
 fieldSmoother (const polyMesh &)
 Construct from a polyMesh. More...
 
virtual ~fieldSmoother ()
 Destructor. More...
 
void smoothNormals (const label nIter, const PackedBoolList &isMeshMasterPoint, const PackedBoolList &isMeshMasterEdge, const labelList &fixedPoints, pointVectorField &normals) const
 Smooth interior normals. More...
 
void smoothPatchNormals (const label nIter, const PackedBoolList &isPatchMasterPoint, const PackedBoolList &isPatchMasterEdge, const indirectPrimitivePatch &adaptPatch, pointField &normals) const
 Smooth patch normals. More...
 
template<class Type >
void minSmoothField (const label nIter, const PackedBoolList &isPatchMasterPoint, const PackedBoolList &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 PackedBoolList &isMeshMasterPoint, const PackedBoolList &isMeshMasterEdge, const PackedBoolList &isSmoothable, vectorField &displacement) const
 Smooth and then un-smooth a displacement. More...
 

Private Member Functions

 fieldSmoother (const fieldSmoother &)
 Disallow default bitwise copy construct. More...
 
void operator= (const fieldSmoother &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const polyMeshmesh_
 Reference to the poly mesh. More...
 

Detailed Description

Utility functions for mesh motion solvers.

Source files

Definition at line 48 of file fieldSmoother.H.

Constructor & Destructor Documentation

◆ fieldSmoother() [1/2]

fieldSmoother ( const fieldSmoother )
private

Disallow default bitwise copy construct.

◆ fieldSmoother() [2/2]

fieldSmoother ( const polyMesh mesh)

Construct from a polyMesh.

Definition at line 38 of file fieldSmoother.C.

◆ ~fieldSmoother()

~fieldSmoother ( )
virtual

Destructor.

Definition at line 46 of file fieldSmoother.C.

Member Function Documentation

◆ operator=()

void operator= ( const fieldSmoother )
private

Disallow default bitwise assignment.

◆ TypeName()

TypeName ( "fieldSmoother"  )

◆ smoothNormals()

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

Smooth interior normals.

Definition at line 53 of file fieldSmoother.C.

References Foam::average(), meshRefinement::calculateEdgeWeights(), Foam::endl(), forAll, meshRefinement::gAverage(), PackedList::get(), Foam::identity(), Foam::Info, Foam::mag(), PackedBoolList::set(), List::size(), syncTools::syncPointList(), and meshRefinement::weightedSum().

Referenced by medialAxisMeshMover::update().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ smoothPatchNormals()

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

◆ minSmoothField()

void minSmoothField ( const label  nIter,
const PackedBoolList isPatchMasterPoint,
const PackedBoolList isPatchMasterEdge,
const indirectPrimitivePatch adaptPatch,
const scalarField fieldMin,
Field< Type > &  field 
) const

◆ smoothLambdaMuDisplacement()

void smoothLambdaMuDisplacement ( const label  nIter,
const PackedBoolList isMeshMasterPoint,
const PackedBoolList isMeshMasterEdge,
const PackedBoolList isSmoothable,
vectorField displacement 
) const

Field Documentation

◆ mesh_

const polyMesh& mesh_
private

Reference to the poly mesh.

Definition at line 53 of file fieldSmoother.H.


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