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 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 polyMesh & | mesh_ |
Reference to the poly mesh. More... | |
Utility functions for mesh motion solvers.
Definition at line 48 of file fieldSmoother.H.
|
private |
Disallow default bitwise copy construct.
fieldSmoother | ( | const polyMesh & | mesh | ) |
Construct from a polyMesh.
Definition at line 38 of file fieldSmoother.C.
|
virtual |
Destructor.
Definition at line 46 of file fieldSmoother.C.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "fieldSmoother" | ) |
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().
void smoothPatchNormals | ( | const label | nIter, |
const PackedBoolList & | isPatchMasterPoint, | ||
const PackedBoolList & | isPatchMasterEdge, | ||
const indirectPrimitivePatch & | adaptPatch, | ||
pointField & | normals | ||
) | const |
Smooth patch normals.
Definition at line 141 of file fieldSmoother.C.
References Foam::average(), meshRefinement::calculateEdgeWeights(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), Foam::endl(), forAll, meshRefinement::gAverage(), Foam::Info, Foam::mag(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), List::size(), and meshRefinement::weightedSum().
Referenced by medialAxisMeshMover::update().
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.
Definition at line 30 of file fieldSmootherTemplates.C.
References Foam::fvc::average(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), Foam::endl(), forAll, Foam::gAverage(), Foam::Info, Foam::mag(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), and List::size().
void smoothLambdaMuDisplacement | ( | const label | nIter, |
const PackedBoolList & | isMeshMasterPoint, | ||
const PackedBoolList & | isMeshMasterEdge, | ||
const PackedBoolList & | 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, List::size(), and meshRefinement::weightedSum().
|
private |
Reference to the poly mesh.
Definition at line 53 of file fieldSmoother.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.