FreeFOAM The Cross-Platform CFD Toolkit
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 <dynamicMesh/attachDetach.H>


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 60 of file attachDetach.H.

+ Inheritance diagram for attachDetach:
+ Collaboration diagram for attachDetach:

List of all members.

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 ()
const polyPatchID & masterPatchID () const
 Return master patch ID.
const polyPatchID & slavePatchID () const
 Return slave patch ID.
bool attached () const
 Is the interface attached?
const Switch & manualTrigger () const
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 scalarField & triggerTimes () 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 ()
const word & name () const
 Return name.
label index () const
 Return the index of this patch in the boundaryMesh.
const polyTopoChanger & topoChanger () const
 Return reference to morph engine.
const Switch & active () const
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.

Constructor & Destructor Documentation

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 247 of file attachDetach.C.

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

Construct from dictionary.

Definition at line 275 of file attachDetach.C.

~attachDetach ( )
virtual

Definition at line 311 of file attachDetach.C.


Member Function Documentation

TypeName ( "attachDetach"  )

Runtime type information.

const polyPatchID& masterPatchID ( ) const
inline

Return master patch ID.

Definition at line 182 of file attachDetach.H.

const polyPatchID& slavePatchID ( ) const
inline

Return slave patch ID.

Definition at line 188 of file attachDetach.H.

bool attached ( ) const
inline

Is the interface attached?

Definition at line 194 of file attachDetach.H.

const Switch& manualTrigger ( ) const
inline

Definition at line 199 of file attachDetach.H.

bool setAttach ( ) const

Definition at line 319 of file attachDetach.C.

bool setDetach ( ) const

Definition at line 334 of file attachDetach.C.

bool changeTopology ( ) const
virtual

Check for topology change.

Implements polyMeshModifier.

Definition at line 349 of file attachDetach.C.

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

void setRefinement ( polyTopoChange &  ref) const
virtual

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 417 of file attachDetach.C.

References Foam::abort(), Foam::FatalError, and FatalErrorIn.

void modifyMotionPoints ( pointField &  motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 252 of file attachInterface.C.

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

void updateMesh ( const mapPolyMesh &  )
virtual

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 455 of file attachDetach.C.

References polyMesh::boundaryMesh(), and polyMesh::faceZones().

const scalarField& triggerTimes ( ) const
inline

Get reference to trigger times.

Definition at line 224 of file attachDetach.H.

void write ( Ostream &  os) const
virtual

Write.

Implements polyMeshModifier.

Definition at line 468 of file attachDetach.C.

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

void writeDict ( Ostream &  os) const
virtual

Write dictionary.

Implements polyMeshModifier.

Definition at line 479 of file attachDetach.C.

References token::BEGIN_BLOCK, token::END_BLOCK, token::END_STATEMENT, Foam::endl(), Foam::name(), Foam::nl, and Foam::type().


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