perfectInterface Class Reference

Hack of attachDetach to couple patches when they perfectly align. Does not decouple. Used by stitchMesh app. Does geometric matching. More...

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

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...
 
virtual ~perfectInterface ()=default
 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 updateMesh (const mapPolyMesh &)
 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...
 
- 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...
 
virtual ~polyMeshModifier ()=default
 Destructor. More...
 
const wordname () const
 Return name of this modifier. More...
 
label index () const
 Return the index of this modifier. More...
 
const polyTopoChangertopoChanger () const
 Return reference to morph engine. More...
 
virtual bool changeTopology () const =0
 Check for topology change. More...
 
virtual void setRefinement (polyTopoChange &) const =0
 Insert the topological change instructions. More...
 
virtual void modifyMotionPoints (pointField &motionPoints) const =0
 Modify motion points to comply with the topological change. More...
 
virtual void updateMesh (const mapPolyMesh &)=0
 Force recalculation of locally stored data on topological change. More...
 
Switch active () const
 If modifier activate? More...
 
void enable () const
 Activate mesh modifier. More...
 
void disable () const
 Activate mesh modifier. More...
 
virtual void write (Ostream &) const =0
 Write. More...
 
virtual void writeDict (Ostream &) const =0
 Write dictionary. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from polyMeshModifier
static autoPtr< polyMeshModifierNew (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
 Select constructed from dictionary. More...
 

Detailed Description

Hack of attachDetach to couple patches when they perfectly align. Does not decouple. Used by stitchMesh app. Does geometric matching.

Source files

Definition at line 58 of file perfectInterface.H.

Constructor & Destructor Documentation

◆ perfectInterface() [1/2]

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 85 of file perfectInterface.C.

◆ perfectInterface() [2/2]

perfectInterface ( const word name,
const dictionary dict,
const label  index,
const polyTopoChanger mme 
)

Construct from dictionary.

Definition at line 102 of file perfectInterface.C.

◆ ~perfectInterface()

virtual ~perfectInterface ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "perfectInterface"  )

Runtime type information.

◆ changeTopology()

bool changeTopology ( ) const
virtual

Check for topology change.

Implements polyMeshModifier.

Definition at line 131 of file perfectInterface.C.

References Foam::endl(), Foam::name(), and Foam::Pout.

Here is the call graph for this function:

◆ setRefinement() [1/2]

void setRefinement ( polyTopoChange ref) const
virtual

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 426 of file perfectInterface.C.

References polyMesh::boundaryMesh(), Foam::endl(), polyMesh::faces(), Foam::identity(), mesh, Foam::name(), patches, polyMesh::points(), Foam::Pout, polyPatch::range(), and ref().

Here is the call graph for this function:

◆ setRefinement() [2/2]

◆ modifyMotionPoints()

void modifyMotionPoints ( pointField motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 467 of file perfectInterface.C.

◆ updateMesh()

void updateMesh ( const mapPolyMesh morphMap)
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 474 of file perfectInterface.C.

References polyMesh::boundaryMesh(), polyMesh::faceZones(), mesh, and dynamicFvMesh::update().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 485 of file perfectInterface.C.

References Foam::endl(), Foam::name(), Foam::nl, os(), and Foam::type().

Here is the call graph for this function:

◆ writeDict()

void writeDict ( Ostream os) const
virtual

Write dictionary.

Implements polyMeshModifier.

Definition at line 495 of file perfectInterface.C.

References Ostream::beginBlock(), Ostream::endBlock(), Foam::name(), Foam::nl, os(), Foam::type(), and Ostream::writeEntry().

Here is the call graph for this function:

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