Public Member Functions | List of all members
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:
Inheritance graph
[legend]
Collaboration diagram for attachDetach:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("attachDetach")
 Runtime type information. More...
 
 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. More...
 
 attachDetach (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mesh)
 Construct from dictionary. More...
 
virtual ~attachDetach ()
 Destructor. More...
 
const polyPatchIDmasterPatchID () const
 Return master patch ID. More...
 
const polyPatchIDslavePatchID () const
 Return slave patch ID. More...
 
bool attached () const
 Is the interface attached? More...
 
const SwitchmanualTrigger () const
 
bool setAttach () const
 
bool setDetach () const
 
virtual bool changeTopology () const
 Check for topology change. More...
 
virtual void setRefinement (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...
 
const scalarFieldtriggerTimes () const
 Get reference to trigger times. 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 ()
 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...
 
const Switchactive () const
 
void enable () const
 Activate mesh modifier. More...
 
void disable () const
 Activate mesh modifier. 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

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

Destructor.

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

const polyPatchID& slavePatchID ( ) const
inline

Return slave patch ID.

Definition at line 186 of file attachDetach.H.

bool attached ( ) const
inline

Is the interface attached?

Definition at line 192 of file attachDetach.H.

const Switch& manualTrigger ( ) const
inline
bool setAttach ( ) const

Definition at line 319 of file attachDetach.C.

Referenced by attachDetach::manualTrigger().

Here is the caller graph for this function:

bool setDetach ( ) const

Definition at line 334 of file attachDetach.C.

Referenced by attachDetach::manualTrigger().

Here is the caller graph for this function:

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.

Referenced by attachDetach::manualTrigger().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Referenced by attachDetach::manualTrigger().

Here is the call graph for this function:

Here is the caller graph for this function:

void modifyMotionPoints ( pointField motionPoints) const
virtual

Modify motion points to comply with the topological change.

Implements polyMeshModifier.

Definition at line 267 of file attachInterface.C.

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

Referenced by attachDetach::manualTrigger().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Referenced by attachDetach::manualTrigger().

Here is the call graph for this function:

Here is the caller graph for this function:

const scalarField& triggerTimes ( ) const
inline

Get reference to trigger times.

Definition at line 222 of file attachDetach.H.

References attachDetach::write(), and attachDetach::writeDict().

Here is the call graph for this function:

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

Referenced by attachDetach::triggerTimes().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Referenced by attachDetach::triggerTimes().

Here is the call graph for this function:

Here is the caller graph for this function:


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