Given a displacement moves the mesh by scaling the displacement back until there are no more mesh errors. More...
Additional Inherited Members | |
![]() | |
static void | setDisplacementPatchFields (const labelList &patchIDs, pointVectorField &pointDisplacement) |
static void | setDisplacement (const labelList &patchIDs, const indirectPrimitivePatch &pp, pointField &patchDisp, pointVectorField &displacement) |
static bool | checkMesh (const bool report, const polyMesh &mesh, const dictionary &dict, labelHashSet &wrongFaces, const bool dryRun=false) |
static bool | checkMesh (const bool report, const polyMesh &mesh, const dictionary &dict, const labelList &checkFaces, labelHashSet &wrongFaces, const bool dryRun=false) |
static bool | checkMesh (const bool report, const polyMesh &mesh, const dictionary &dict, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet &wrongFaces, const bool dryRun=false) |
static bool | checkMesh (const bool report, const dictionary &dict, const polyMeshGeometry &, const pointField &, const labelList &checkFaces, labelHashSet &wrongFaces, const bool dryRun=false) |
static bool | checkMesh (const bool report, const dictionary &dict, const polyMeshGeometry &, const pointField &, const labelList &checkFaces, const List< labelPair > &baffles, labelHashSet &wrongFaces, const bool dryRun=false) |
template<class Type > | |
static Type | get (const dictionary &dict, const word &keyword, const bool noExit, enum keyType::option matchOpt, const Type &defaultValue=Zero) |
![]() | |
pointVectorField | displacement_ |
pointScalarField | scale_ |
pointField | oldPoints_ |
Given a displacement moves the mesh by scaling the displacement back until there are no more mesh errors.
Holds displacement field (read upon construction since need boundary conditions) and scaling factor and optional patch number on which to scale back displacement.
E.g.
// Construct iterative mesh mover. motionSmoother meshMover(mesh, labelList(1, patchi)); // Set desired displacement: meshMover.displacement() = .. for (label iter = 0; iter < maxIter; iter++) { if (meshMover.scaleMesh(true)) { Info<< "Successfully moved mesh" << endl; return true; } }
Definition at line 87 of file motionSmoother.H.
motionSmoother | ( | polyMesh & | mesh, |
pointMesh & | pMesh, | ||
indirectPrimitivePatch & | pp, | ||
const labelList & | adaptPatchIDs, | ||
const dictionary & | paramDict, | ||
const bool | dryRun = false |
||
) |
pp | 'outside' points |
adaptPatchIDs | patches forming 'outside' |
Definition at line 34 of file motionSmoother.C.
motionSmoother | ( | polyMesh & | mesh, |
indirectPrimitivePatch & | pp, | ||
const labelList & | adaptPatchIDs, | ||
const pointVectorField & | displacement, | ||
const dictionary & | paramDict, | ||
const bool | dryRun = false |
||
) |
pp | 'outside' points |
adaptPatchIDs | patches forming 'outside' |
Definition at line 60 of file motionSmoother.C.
ClassName | ( | "motionSmoother" | ) |
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.