Quality-based under-relaxation wrapped around generic displacementMotionSolver. More...
Public Member Functions | |
TypeName ("displacementMotionSolver") | |
Runtime type information. More... | |
displacementMotionSolverMeshMover (const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacemen) | |
Construct from a polyMesh and an IOdictionary. More... | |
virtual | ~displacementMotionSolverMeshMover () |
Destructor. More... | |
virtual bool | move (const dictionary &, const label nAllowableErrors, labelList &checkFaces) |
Move mesh using current pointDisplacement boundary values. More... | |
virtual void | movePoints (const pointField &) |
Update local data for geometry changes. More... | |
virtual void | updateMesh (const mapPolyMesh &) |
Update local data for topology changes. More... | |
![]() | |
TypeName ("externalDisplacementMeshMover") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, externalDisplacementMeshMover, dictionary,(const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement),(dict, baffles, pointDisplacement)) | |
externalDisplacementMeshMover (const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement) | |
Construct from dictionary and displacement field. Dictionary is. More... | |
virtual | ~externalDisplacementMeshMover () |
Destructor. More... | |
pointVectorField & | pointDisplacement () |
Return reference to the point motion displacement field. More... | |
const pointVectorField & | pointDisplacement () const |
Return const reference to the point motion displacement field. More... | |
const pointMesh & | pMesh () const |
const polyMesh & | mesh () const |
Private Member Functions | |
bool | moveMesh (const dictionary &moveDict, const label nAllowableErrors, labelList &checkFaces) |
Apply the mesh mover algorithm. More... | |
Private Attributes | |
autoPtr< displacementMotionSolver > | solverPtr_ |
Mesh motion solver. More... | |
const labelList | adaptPatchIDs_ |
IDs of fixedValue patches that we can modify. More... | |
autoPtr< indirectPrimitivePatch > | adaptPatchPtr_ |
Combined indirect fixedValue patches that we can modify. More... | |
pointScalarField | scale_ |
Scale factor for displacemen. More... | |
pointField | oldPoints_ |
Old point field. More... | |
motionSmootherAlgo | meshMover_ |
Mesh mover algorithm. More... | |
fieldSmoother | fieldSmoother_ |
Field smoothing. More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< externalDisplacementMeshMover > | New (const word &type, const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement) |
Return a reference to the selected meshMover model. More... | |
![]() | |
static labelList | getFixedValueBCs (const pointVectorField &) |
Extract fixed-value patchfields. More... | |
static autoPtr< indirectPrimitivePatch > | getPatch (const polyMesh &, const labelList &) |
Construct patch on selected patches. More... | |
![]() | |
List< labelPair > | baffles_ |
Baffles in the mesh. More... | |
pointVectorField & | pointDisplacement_ |
Reference to point motion field. More... | |
Quality-based under-relaxation wrapped around generic displacementMotionSolver.
Example of use in layer settings in snappyHexMeshDict:
meshShrinker displacementMotionSolver; solver displacementLaplacian; displacementLaplacianCoeffs { diffusivity quadratic inverseDistance 1(wall); }
Definition at line 62 of file displacementMotionSolverMeshMover.H.
displacementMotionSolverMeshMover | ( | const dictionary & | dict, |
const List< labelPair > & | baffles, | ||
pointVectorField & | pointDisplacemen | ||
) |
Construct from a polyMesh and an IOdictionary.
Definition at line 109 of file displacementMotionSolverMeshMover.C.
|
virtual |
Destructor.
Definition at line 190 of file displacementMotionSolverMeshMover.C.
|
private |
Apply the mesh mover algorithm.
Definition at line 48 of file displacementMotionSolverMeshMover.C.
References Foam::endl(), Foam::Info, dictionary::lookup(), and Foam::readLabel().
TypeName | ( | "displacementMotionSolver" | ) |
Runtime type information.
|
virtual |
Move mesh using current pointDisplacement boundary values.
Return true if succesful (errors on checkFaces less than allowable). Updates pointDisplacement.
Implements externalDisplacementMeshMover.
Definition at line 197 of file displacementMotionSolverMeshMover.C.
References forAll, meshRefinement::getMasterEdges(), meshRefinement::getMasterPoints(), internalField(), dictionary::lookup(), objectRegistry::lookupObject(), Foam::mag(), mesh, nPoints, and Foam::readLabel().
|
virtual |
Update local data for geometry changes.
Reimplemented from externalDisplacementMeshMover.
Definition at line 298 of file displacementMotionSolverMeshMover.C.
References externalDisplacementMeshMover::movePoints(), and p.
|
inlinevirtual |
Update local data for topology changes.
Reimplemented from externalDisplacementMeshMover.
Definition at line 138 of file displacementMotionSolverMeshMover.H.
References NotImplemented.
|
private |
Mesh motion solver.
Definition at line 69 of file displacementMotionSolverMeshMover.H.
|
private |
IDs of fixedValue patches that we can modify.
Definition at line 72 of file displacementMotionSolverMeshMover.H.
|
private |
Combined indirect fixedValue patches that we can modify.
Definition at line 75 of file displacementMotionSolverMeshMover.H.
|
private |
Scale factor for displacemen.
Definition at line 78 of file displacementMotionSolverMeshMover.H.
|
private |
Old point field.
Definition at line 81 of file displacementMotionSolverMeshMover.H.
|
private |
Mesh mover algorithm.
Definition at line 84 of file displacementMotionSolverMeshMover.H.
|
private |
Field smoothing.
Definition at line 87 of file displacementMotionSolverMeshMover.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.