OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

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...

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 polyPatchIDmasterPatchID () const
 Return master patch ID.
const polyPatchIDslavePatchID () const
 Return slave patch ID.
bool attached () const
 Is the interface attached?
const SwitchmanualTrigger () 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 scalarFieldtriggerTimes () const
 Get reference to trigger times.
virtual void write (Ostream &) const
 Write.
virtual void writeDict (Ostream &) const
 Write 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 55 of file attachDetach.H.


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

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

Construct from dictionary.

Definition at line 268 of file attachDetach.C.

~attachDetach (  )  [virtual]

Definition at line 304 of file attachDetach.C.


Member Function Documentation

TypeName ( "attachDetach"   ) 

Runtime type information.

const polyPatchID& masterPatchID (  )  const [inline]

Return master patch ID.

Definition at line 177 of file attachDetach.H.

const polyPatchID& slavePatchID (  )  const [inline]

Return slave patch ID.

Definition at line 183 of file attachDetach.H.

bool attached (  )  const [inline]

Is the interface attached?

Definition at line 189 of file attachDetach.H.

const Switch& manualTrigger (  )  const [inline]

Definition at line 194 of file attachDetach.H.

bool setAttach (  )  const

Definition at line 312 of file attachDetach.C.

bool setDetach (  )  const

Definition at line 327 of file attachDetach.C.

bool changeTopology (  )  const [virtual]

Check for topology change.

Implements polyMeshModifier.

Definition at line 342 of file attachDetach.C.

void setRefinement ( polyTopoChange ref  )  const [virtual]

Insert the layer addition/removal instructions.

into the topological change

Implements polyMeshModifier.

Definition at line 410 of file attachDetach.C.

void modifyMotionPoints ( pointField motionPoints  )  const [virtual]

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 244 of file attachInterface.C.

void updateMesh ( const mapPolyMesh  )  [virtual]

Force recalculation of locally stored data on topological change.

Implements polyMeshModifier.

Definition at line 448 of file attachDetach.C.

const scalarField& triggerTimes (  )  const [inline]

Get reference to trigger times.

Definition at line 221 of file attachDetach.H.

void write ( Ostream os  )  const [virtual]

Write.

Implements polyMeshModifier.

Definition at line 461 of file attachDetach.C.

void writeDict ( Ostream os  )  const [virtual]

Write dictionary.

Implements polyMeshModifier.

Definition at line 472 of file attachDetach.C.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd