Mesh motion solver that uses a medial axis algorithm to work out a fraction between the (nearest point on a) moving surface and the (nearest point on a) fixed surface. This fraction is then used to scale the motion. Use. More...
Public Member Functions | |
TypeName ("displacementMedialAxis") | |
Runtime type information. More... | |
medialAxisMeshMover (const dictionary &dict, const List< labelPair > &baffles, pointVectorField &pointDisplacement) | |
Construct from dictionary and displacement field. More... | |
virtual | ~medialAxisMeshMover () |
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),(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 |
Additional Inherited Members | |
Static Public Member Functions inherited from externalDisplacementMeshMover | |
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... | |
Protected Attributes inherited from externalDisplacementMeshMover | |
List< labelPair > | baffles_ |
Baffles in the mesh. More... | |
pointVectorField & | pointDisplacement_ |
Reference to point motion field. More... | |
Mesh motion solver that uses a medial axis algorithm to work out a fraction between the (nearest point on a) moving surface and the (nearest point on a) fixed surface. This fraction is then used to scale the motion. Use.
- fixedValue on all moving patches
Definition at line 58 of file medialAxisMeshMover.H.
medialAxisMeshMover | ( | const dictionary & | dict, |
const List< labelPair > & | baffles, | ||
pointVectorField & | pointDisplacement | ||
) |
Construct from dictionary and displacement field.
Definition at line 1596 of file medialAxisMeshMover.C.
|
virtual |
Definition at line 1693 of file medialAxisMeshMover.C.
References Foam::cos(), Foam::degToRad(), Foam::endl(), forAll, syncTools::getMasterEdges(), meshRefinement::getMasterEdges(), syncTools::getMasterPoints(), meshRefinement::getMasterPoints(), polyMesh::globalData(), Foam::Info, PointEdgeWave< Type, TrackingData >::iterate(), dictionary::lookup(), dictionary::lookupOrDefault(), Foam::mag(), mesh, PrimitivePatch< Face, FaceList, PointField, PointType >::meshEdges(), PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), medialAxisMeshMover::move(), n, snappyLayerDriver::NOEXTRUDE, nPoints, globalMeshData::nTotalPoints(), path(), polyMesh::points(), Foam::Pout, Foam::readLabel(), Foam::readScalar(), Foam::reduce(), autoPtr< T >::reset(), List< T >::size(), timeName, autoPtr< T >::valid(), and Foam::Zero.
TypeName | ( | "displacementMedialAxis" | ) |
Runtime type information.
|
virtual |
Move mesh using current pointDisplacement boundary values.
Return true if succesful (errors on checkFaces less than allowable). Updates pointDisplacement.
Name of field specifying min thickness
Move mesh according to calculated displacement
Implements externalDisplacementMeshMover.
Definition at line 2106 of file medialAxisMeshMover.C.
References snappyLayerDriver::EXTRUDE, forAll, dictionary::lookup(), objectRegistry::lookupObject(), Foam::mag(), mesh, PrimitivePatch< Face, FaceList, PointField, PointType >::meshPoints(), snappyLayerDriver::NOEXTRUDE, PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), and points.
Referenced by medialAxisMeshMover::~medialAxisMeshMover().
|
virtual |
Update local data for geometry changes.
Reimplemented from externalDisplacementMeshMover.
Definition at line 2176 of file medialAxisMeshMover.C.
References externalDisplacementMeshMover::movePoints().
|
inlinevirtual |
Update local data for topology changes.
Reimplemented from externalDisplacementMeshMover.
Definition at line 271 of file medialAxisMeshMover.H.
References NotImplemented.