displacementMotionSolverMeshMover Class Reference

Quality-based under-relaxation wrapped around generic displacementMotionSolver. More...

Inheritance diagram for displacementMotionSolverMeshMover:
[legend]
Collaboration diagram for displacementMotionSolverMeshMover:
[legend]

Public Member Functions

 TypeName ("displacementMotionSolver")
 Runtime type information. More...
 
 displacementMotionSolverMeshMover (const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement, const bool dryRun)
 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...
 
- Public Member Functions inherited from externalDisplacementMeshMover
 TypeName ("externalDisplacementMeshMover")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, externalDisplacementMeshMover, dictionary,(const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement, const bool dryRun),(dict, baffles, pointDisplacement, dryRun))
 
 externalDisplacementMeshMover (const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement, const bool dryRun)
 Construct from dictionary and displacement field. Dictionary is. More...
 
virtual ~externalDisplacementMeshMover ()
 Destructor. More...
 
pointVectorFieldpointDisplacement ()
 Return reference to the point motion displacement field. More...
 
const pointVectorFieldpointDisplacement () const
 Return const reference to the point motion displacement field. More...
 
const pointMeshpMesh () const
 
const polyMeshmesh () const
 
virtual bool move (const dictionary &, const label nAllowableErrors, labelList &checkFaces)=0
 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...
 

Additional Inherited Members

- Static Public Member Functions inherited from externalDisplacementMeshMover
static autoPtr< externalDisplacementMeshMoverNew (const word &type, const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement, const bool dryRun=false)
 Return a reference to the selected meshMover model. More...
 
- Static Protected Member Functions inherited from externalDisplacementMeshMover
static labelList getFixedValueBCs (const pointVectorField &)
 Extract fixed-value patchfields. More...
 
static autoPtr< indirectPrimitivePatchgetPatch (const polyMesh &, const labelList &)
 Construct patch on selected patches. More...
 
- Protected Attributes inherited from externalDisplacementMeshMover
List< labelPairbaffles_
 Baffles in the mesh. More...
 
pointVectorFieldpointDisplacement_
 Reference to point motion field. More...
 
const bool dryRun_
 In dry-run mode? More...
 

Detailed Description

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);
}
Source files

Definition at line 65 of file displacementMotionSolverMeshMover.H.

Constructor & Destructor Documentation

◆ displacementMotionSolverMeshMover()

displacementMotionSolverMeshMover ( const dictionary dict,
const List< labelPair > &  baffles,
pointVectorField pointDisplacement,
const bool  dryRun 
)

Construct from a polyMesh and an IOdictionary.

Definition at line 111 of file displacementMotionSolverMeshMover.C.

◆ ~displacementMotionSolverMeshMover()

Destructor.

Definition at line 195 of file displacementMotionSolverMeshMover.C.

Member Function Documentation

◆ TypeName()

TypeName ( "displacementMotionSolver"  )

Runtime type information.

◆ move()

bool move ( const dictionary moveDict,
const label  nAllowableErrors,
labelList checkFaces 
)
virtual

Move mesh using current pointDisplacement boundary values.

Return true if successful (errors on checkFaces less than allowable). Updates pointDisplacement.

Implements externalDisplacementMeshMover.

Definition at line 201 of file displacementMotionSolverMeshMover.C.

References forAll, meshRefinement::getMasterEdges(), meshRefinement::getMasterPoints(), objectRegistry::lookupObject(), Foam::mag(), mesh, nPoints, keyType::REGEX, and Foam::Zero.

Here is the call graph for this function:

◆ movePoints()

void movePoints ( const pointField p)
virtual

Update local data for geometry changes.

Reimplemented from externalDisplacementMeshMover.

Definition at line 306 of file displacementMotionSolverMeshMover.C.

References motionSmootherAlgo::movePoints(), and p.

Here is the call graph for this function:

◆ updateMesh()

virtual void updateMesh ( const mapPolyMesh )
inlinevirtual

Update local data for topology changes.

Reimplemented from externalDisplacementMeshMover.

Definition at line 142 of file displacementMotionSolverMeshMover.H.

References NotImplemented.


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