Hack of attachDetach to couple patches when they perfectly align. Does not decouple. Used by stitchMesh app. Does geometric matching. More...
#include <perfectInterface.H>


Public Member Functions | |
| TypeName ("perfectInterface") | |
| Runtime type information. | |
| perfectInterface (const word &name, const label index, const polyTopoChanger &mme, const word &faceZoneName, const word &masterPatchName, const word &slavePatchName) | |
| Construct from components. | |
| perfectInterface (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) | |
| Construct from dictionary. | |
| virtual | ~perfectInterface ()=default |
| Destructor. | |
| virtual bool | changeTopology () const |
| Check for topology change. | |
| virtual void | setRefinement (polyTopoChange &) const |
| Insert the layer addition/removal instructions. | |
| virtual void | setRefinement (const indirectPrimitivePatch &pp0, const indirectPrimitivePatch &pp1, polyTopoChange &) const |
| Insert the layer addition/removal instructions. | |
| virtual void | modifyMotionPoints (pointField &motionPoints) const |
| Modify motion points to comply with the topological change. | |
| virtual void | updateMesh (const mapPolyMesh &) |
| Force recalculation of locally stored data on topological change. | |
| virtual void | write (Ostream &) const |
| Write. | |
| virtual void | writeDict (Ostream &) const |
| Write dictionary. | |
| Public Member Functions inherited from polyMeshModifier | |
| TypeName ("meshModifier") | |
| Runtime type information. | |
| declareRunTimeSelectionTable (autoPtr, polyMeshModifier, dictionary,(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme),(name, dict, index, mme)) | |
| polyMeshModifier (const word &name, const label index, const polyTopoChanger &mme, const bool act) | |
| Construct from components. | |
| virtual | ~polyMeshModifier ()=default |
| Destructor. | |
| const word & | name () const |
| Return name of this modifier. | |
| label | index () const |
| Return the index of this modifier. | |
| const polyTopoChanger & | topoChanger () const |
| Return reference to morph engine. | |
| Switch | active () const |
| If modifier activate? | |
| void | enable () const |
| Activate mesh modifier. | |
| void | disable () const |
| Activate mesh modifier. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from polyMeshModifier | |
| static autoPtr< polyMeshModifier > | New (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) |
| Select constructed from dictionary. | |
Hack of attachDetach to couple patches when they perfectly align. Does not decouple. Used by stitchMesh app. Does geometric matching.
Definition at line 54 of file perfectInterface.H.
| perfectInterface | ( | const word & | name, |
| const label | index, | ||
| const polyTopoChanger & | mme, | ||
| const word & | faceZoneName, | ||
| const word & | masterPatchName, | ||
| const word & | slavePatchName ) |
Construct from components.
Definition at line 79 of file perfectInterface.C.
References polyMeshModifier::index(), mesh, and polyMeshModifier::name().

| perfectInterface | ( | const word & | name, |
| const dictionary & | dict, | ||
| const label | index, | ||
| const polyTopoChanger & | mme ) |
Construct from dictionary.
Definition at line 96 of file perfectInterface.C.
References dict, polyMeshModifier::index(), mesh, and polyMeshModifier::name().

|
virtualdefault |
Destructor.
| TypeName | ( | "perfectInterface" | ) |
Runtime type information.
References dict, polyMeshModifier::index(), and polyMeshModifier::name().

|
virtual |
Check for topology change.
Implements polyMeshModifier.
Definition at line 125 of file perfectInterface.C.
References polyMeshModifier::active(), Foam::endl(), name, and Foam::Pout.

|
virtual |
Insert the layer addition/removal instructions.
into the topological change
Implements polyMeshModifier.
Definition at line 420 of file perfectInterface.C.
References Foam::endl(), Foam::identity(), mesh, name, patches, Foam::Pout, polyPatch::range(), ref(), setRefinement(), and polyMeshModifier::topoChanger().
Referenced by setRefinement().


|
virtual |
Insert the layer addition/removal instructions.
into the topological change. Uses only mesh, not any of the patch and zone indices. Bit of a workaround - used in extruding a mesh.
Definition at line 147 of file perfectInterface.C.
References IndirectList< T >::addressing(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), HashTable< T, Key, Hash >::erase(), Foam::exit(), f(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, HashSet< Key, Hash >::insert(), PrimitivePatch< FaceList, PointField >::localPoints(), Foam::mag(), Foam::matchPoints(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::min(), patches, pFaces, Foam::Pout, ref(), face::reverseFace(), IndirectListBase< T, Addr >::size(), UList< T >::size(), polyMeshModifier::topoChanger(), WarningInFunction, and faceZone::whichFace().

|
virtual |
Modify motion points to comply with the topological change.
Implements polyMeshModifier.
Definition at line 461 of file perfectInterface.C.
|
virtual |
Force recalculation of locally stored data on topological change.
Implements polyMeshModifier.
Definition at line 468 of file perfectInterface.C.
References mesh, and polyMeshModifier::topoChanger().

|
virtual |
Write.
Implements polyMeshModifier.
Definition at line 479 of file perfectInterface.C.
References Foam::endl(), name, Foam::nl, os(), and Foam::type().

|
virtual |
Write dictionary.
Implements polyMeshModifier.
Definition at line 489 of file perfectInterface.C.
References polyMeshModifier::active(), name, Foam::nl, os(), and Foam::type().
