Loading...
Searching...
No Matches
attachDetach Class Reference

Attach/detach boundary mesh modifier. This modifier takes a set of internal faces and converts them into boundary faces and vice versa based on the given activation switch. More...

#include <attachDetach.H>

Inheritance diagram for attachDetach:
Collaboration diagram for attachDetach:

Public Member Functions

 TypeName ("attachDetach")
 Runtime type information.
 attachDetach (const word &name, const label index, const polyTopoChanger &mme, const word &faceZoneName, const word &masterPatchName, const word &slavePatchName, const scalarField &triggerTimes, const bool manualTrigger=false)
 Construct from components.
 attachDetach (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mesh)
 Construct from dictionary.
virtual ~attachDetach ()=default
 Destructor.
const polyPatchIDmasterPatchID () const
 Return master patch ID.
const polyPatchIDslavePatchID () const
 Return slave patch ID.
bool attached () const
 Is the interface attached?
bool manualTrigger () const
 Is manually triggered?
bool setAttach () const
bool setDetach () const
virtual bool changeTopology () const
 Check for topology change.
virtual void setRefinement (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.
const scalarFieldtriggerTimes () const
 Get reference to trigger times.
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 wordname () const
 Return name of this modifier.
label index () const
 Return the index of this modifier.
const polyTopoChangertopoChanger () 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.

Detailed Description

Attach/detach boundary mesh modifier. This modifier takes a set of internal faces and converts them into boundary faces and vice versa based on the given activation switch.

The patch is oriented using the flip map in the face zone. The oriented faces are put into the master patch and their mirror images into the slave.

Source files

Definition at line 58 of file attachDetach.H.

Constructor & Destructor Documentation

◆ attachDetach() [1/2]

attachDetach ( const word & name,
const label index,
const polyTopoChanger & mme,
const word & faceZoneName,
const word & masterPatchName,
const word & slavePatchName,
const scalarField & triggerTimes,
const bool manualTrigger = false )

Construct from components.

Definition at line 213 of file attachDetach.C.

References polyMeshModifier::index(), manualTrigger(), mesh, polyMeshModifier::name(), and triggerTimes().

Here is the call graph for this function:

◆ attachDetach() [2/2]

attachDetach ( const word & name,
const dictionary & dict,
const label index,
const polyTopoChanger & mesh )

Construct from dictionary.

Definition at line 240 of file attachDetach.C.

References dict, polyMeshModifier::index(), mesh, and polyMeshModifier::name().

Here is the call graph for this function:

◆ ~attachDetach()

virtual ~attachDetach ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "attachDetach" )

Runtime type information.

References dict, polyMeshModifier::index(), manualTrigger(), mesh, polyMeshModifier::name(), and triggerTimes().

Here is the call graph for this function:

◆ masterPatchID()

const polyPatchID & masterPatchID ( ) const
inline

Return master patch ID.

Definition at line 227 of file attachDetach.H.

◆ slavePatchID()

const polyPatchID & slavePatchID ( ) const
inline

Return slave patch ID.

Definition at line 235 of file attachDetach.H.

◆ attached()

bool attached ( ) const
inline

Is the interface attached?

Definition at line 243 of file attachDetach.H.

Referenced by setAttach(), and setDetach().

Here is the caller graph for this function:

◆ manualTrigger()

bool manualTrigger ( ) const
inline

Is manually triggered?

Definition at line 251 of file attachDetach.H.

Referenced by attachDetach(), and TypeName().

Here is the caller graph for this function:

◆ setAttach()

bool setAttach ( ) const

Definition at line 277 of file attachDetach.C.

References attached().

Here is the call graph for this function:

◆ setDetach()

bool setDetach ( ) const

Definition at line 285 of file attachDetach.C.

References attached().

Here is the call graph for this function:

◆ changeTopology()

bool changeTopology ( ) const
virtual

Check for topology change.

Implements polyMeshModifier.

Definition at line 293 of file attachDetach.C.

References Foam::endl(), mesh, name, Foam::nl, Foam::Pout, and polyMeshModifier::topoChanger().

Here is the call graph for this function:

◆ setRefinement()

void setRefinement ( polyTopoChange & ref) const
virtual

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 361 of file attachDetach.C.

References Foam::abort(), Foam::FatalError, FatalErrorInFunction, and ref().

Here is the call graph for this function:

◆ modifyMotionPoints()

void modifyMotionPoints ( pointField & motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 269 of file attachInterface.C.

References Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, Foam::mag(), name, Foam::Pout, UList< T >::size(), and HashTable< T, Key, Hash >::toc().

Here is the call graph for this function:

◆ updateMesh()

void updateMesh ( const mapPolyMesh & )
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 396 of file attachDetach.C.

References mesh, and polyMeshModifier::topoChanger().

Here is the call graph for this function:

◆ triggerTimes()

const scalarField & triggerTimes ( ) const
inline

Get reference to trigger times.

Definition at line 287 of file attachDetach.H.

Referenced by attachDetach(), and TypeName().

Here is the caller graph for this function:

◆ write()

void write ( Ostream & os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 409 of file attachDetach.C.

References Foam::endl(), 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 420 of file attachDetach.C.

References polyMeshModifier::active(), Switch::name(), name, Foam::nl, os(), and Foam::type().

Here is the call graph for this function:

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