|
|
|
motionSmoother Class ReferenceGiven a displacement moves the mesh by scaling the displacement back until there are no more mesh errors. More...
Collaboration diagram for motionSmoother:
![]()
Detailed DescriptionGiven 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 93 of file motionSmoother.H. Constructor & Destructor Documentation
Construct from mesh, patches to work on and smoothing parameters. Reads displacement field (only boundary conditions used) Definition at line 371 of file motionSmoother.C.
Construct from mesh, patches to work on and smoothing parameters and. displacementfield (only boundary conditions used) Definition at line 418 of file motionSmoother.C.
Definition at line 466 of file motionSmoother.C.
Member Function Documentation
Definition at line 496 of file motionSmoother.C.
Set displacement field from displacement on patch points. Modify provided displacement to be consistent with actual boundary conditions on displacement. Note: resets the displacement to be 0 on coupled patches beforehand to make sure shared points partially on pp (on some processors) and partially not (on other processors) get the value from pp. Definition at line 538 of file motionSmoother.C.
Special correctBoundaryConditions which evaluates fixedValue. patches first so they get overwritten with any constraint bc's. Definition at line 660 of file motionSmoother.C.
Move mesh. Does 2D correction (modifies passed pointField) and. polyMesh::movePoints. Returns swept volumes. Definition at line 725 of file motionSmoother.C.
Move mesh with given scale. Return true if mesh ok or has. less than nAllow errors, false otherwise and locally update scale. Smoothmesh=false means only patch points get moved. Parallel ok (as long as displacement field is consistent across patches) Definition at line 801 of file motionSmoother.C.
Move mesh with externally provided mesh constraints.
Definition at line 839 of file motionSmoother.C.
Check mesh with mesh settings in dict. Collects incorrect faces. in set. Returns true if one or more faces in error. Parallel ok. Definition at line 353 of file motionSmootherCheck.C. Referenced by motionSmoother::checkMesh().
Here is the caller graph for this function:
![]()
Check (subset of mesh) with mesh settings in dict. Collects incorrect faces in set. Returns true if one or more faces in error. Parallel ok. Definition at line 25 of file motionSmootherCheck.C. References motionSmoother::checkMesh().
Here is the call graph for this function:
![]()
Check (subset of mesh including baffles) with mesh settings. in dict. Collects incorrect faces in set. Returns true if one or more faces in error. Parallel ok. Definition at line 46 of file motionSmootherCheck.C.
Check part of mesh with mesh settings in dict. Collects incorrect faces in set. Returns true if one or more faces in error. Parallel ok. Definition at line 371 of file motionSmootherCheck.C.
Check part of mesh including baffles with mesh settings in dict. Collects incorrect faces in set. Returns true if one or more faces in error. Parallel ok. Definition at line 394 of file motionSmootherCheck.C.
Fully explicit smoothing of internal points with varying. diffusivity. Definition at line 253 of file motionSmootherTemplates.C.
The documentation for this class was generated from the following files:
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||