Hack of attachDetach to couple patches when they perfectly align. Does not decouple. Used by stitchMesh app. Does geometric matching. More...
Public Member Functions | |
TypeName ("perfectInterface") | |
Runtime type information. More... | |
perfectInterface (const word &name, const label index, const polyTopoChanger &mme, const word &faceZoneName, const word &masterPatchName, const word &slavePatchName) | |
Construct from components. More... | |
perfectInterface (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) | |
Construct from dictionary. More... | |
perfectInterface (const perfectInterface &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~perfectInterface () |
Destructor. More... | |
virtual bool | changeTopology () const |
Check for topology change. More... | |
virtual void | setRefinement (polyTopoChange &) const |
Insert the layer addition/removal instructions. More... | |
virtual void | setRefinement (const indirectPrimitivePatch &pp0, const indirectPrimitivePatch &pp1, polyTopoChange &) const |
Insert the layer addition/removal instructions. More... | |
virtual void | modifyMotionPoints (pointField &motionPoints) const |
Modify motion points to comply with the topological change. More... | |
virtual void | topoChange (const polyTopoChangeMap &) |
Force recalculation of locally stored data on topological change. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
virtual void | writeDict (Ostream &) const |
Write dictionary. More... | |
void | operator= (const perfectInterface &)=delete |
Disallow default bitwise assignment. More... | |
Public Member Functions inherited from polyMeshModifier | |
TypeName ("meshModifier") | |
Runtime type information. More... | |
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. More... | |
polyMeshModifier (const polyMeshModifier &)=delete | |
Disallow default bitwise copy construction. More... | |
virtual | ~polyMeshModifier () |
Destructor. More... | |
const word & | name () const |
Return name of this modifier. More... | |
label | index () const |
Return the index of this modifier. More... | |
const polyTopoChanger & | topoChanger () const |
Return reference to morph engine. More... | |
const Switch & | active () const |
void | enable () const |
Activate mesh modifier. More... | |
void | disable () const |
Activate mesh modifier. More... | |
void | operator= (const polyMeshModifier &)=delete |
Disallow default bitwise assignment. More... | |
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. More... | |
Hack of attachDetach to couple patches when they perfectly align. Does not decouple. Used by stitchMesh app. Does geometric matching.
Definition at line 55 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 84 of file perfectInterface.C.
perfectInterface | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const polyTopoChanger & | mme | ||
) |
Construct from dictionary.
Definition at line 102 of file perfectInterface.C.
|
delete |
Disallow default bitwise copy construction.
|
virtual |
Destructor.
Definition at line 130 of file perfectInterface.C.
TypeName | ( | "perfectInterface" | ) |
Runtime type information.
|
virtual |
Check for topology change.
Implements polyMeshModifier.
Definition at line 136 of file perfectInterface.C.
References Foam::endl(), Foam::name(), Foam::Pout, and perfectInterface::setRefinement().
|
virtual |
Insert the layer addition/removal instructions.
into the topological change
Implements polyMeshModifier.
Definition at line 435 of file perfectInterface.C.
References polyMesh::boundaryMesh(), Foam::endl(), polyMesh::faces(), Foam::identity(), mesh, Foam::name(), patches, polyMesh::points(), Foam::Pout, and polyPatch::start().
Referenced by perfectInterface::changeTopology().
|
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 159 of file perfectInterface.C.
References polyMesh::boundaryMesh(), PrimitivePatch< FaceList, PointField >::edges(), Foam::endl(), Foam::exit(), f(), polyMesh::faceNeighbour(), polyMesh::faceOwner(), polyMesh::faces(), polyMesh::faceZones(), Foam::FatalError, FatalErrorInFunction, faceZone::flipMap(), forAll, forAllConstIter, primitiveMesh::isInternalFace(), PrimitivePatch< FaceList, PointField >::localPoints(), Foam::mag(), Foam::matchPoints(), mesh, PrimitivePatch< FaceList, PointField >::meshPoints(), Foam::min(), patches, patchi, pFaces, primitiveMesh::pointFaces(), polyMesh::points(), Foam::Pout, polyTopoChange::setAction(), List< T >::size(), WarningInFunction, faceZone::whichFace(), polyBoundaryMesh::whichPatch(), and MeshZones< ZoneType, MeshType >::whichZone().
|
virtual |
Modify motion points to comply with the topological change.
Implements polyMeshModifier.
Definition at line 479 of file perfectInterface.C.
|
virtual |
Force recalculation of locally stored data on topological change.
Implements polyMeshModifier.
Definition at line 486 of file perfectInterface.C.
References polyMesh::boundaryMesh(), polyMesh::faceZones(), mesh, FvWallInfoDataBase< WallInfo, Type, Derived >::update(), and fvMesh::update().
|
virtual |
Write.
Implements polyMeshModifier.
Definition at line 497 of file perfectInterface.C.
References Foam::endl(), Foam::name(), Foam::nl, and Foam::type().
|
virtual |
Write dictionary.
Implements polyMeshModifier.
Definition at line 507 of file perfectInterface.C.
References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::name(), Foam::nl, and Foam::type().
|
delete |
Disallow default bitwise assignment.