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...
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 ()=default |
Destructor. More... | |
const polyPatchID & | masterPatchID () const |
Return master patch ID. More... | |
const polyPatchID & | slavePatchID () const |
Return slave patch ID. More... | |
bool | attached () const |
Is the interface attached? More... | |
bool | manualTrigger () const |
Is manually triggered? More... | |
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 scalarField & | triggerTimes () 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 ()=default |
Destructor. More... | |
const word & | name () const |
Return name of this modifier. More... | |
label | index () const |
Return the index of this modifier. More... | |
const polyTopoChanger & | topoChanger () const |
Return reference to morph engine. More... | |
Switch | active () const |
If modifier activate? More... | |
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< polyMeshModifier > | New (const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme) |
Select constructed from dictionary. More... | |
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.
Definition at line 58 of file attachDetach.H.
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 214 of file attachDetach.C.
attachDetach | ( | const word & | name, |
const dictionary & | dict, | ||
const label | index, | ||
const polyTopoChanger & | mesh | ||
) |
Construct from dictionary.
Definition at line 241 of file attachDetach.C.
|
virtualdefault |
Destructor.
TypeName | ( | "attachDetach" | ) |
Runtime type information.
|
inline |
Return master patch ID.
Definition at line 227 of file attachDetach.H.
|
inline |
Return slave patch ID.
Definition at line 235 of file attachDetach.H.
|
inline |
Is the interface attached?
Definition at line 243 of file attachDetach.H.
|
inline |
Is manually triggered?
Definition at line 251 of file attachDetach.H.
bool setAttach | ( | ) | const |
Definition at line 277 of file attachDetach.C.
bool setDetach | ( | ) | const |
Definition at line 285 of file attachDetach.C.
|
virtual |
Check for topology change.
Implements polyMeshModifier.
Definition at line 293 of file attachDetach.C.
References Foam::ensightOutput::debug, Foam::endl(), mesh, Foam::name(), Foam::nl, and Foam::Pout.
|
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().
|
virtual |
Modify motion points to comply with the topological change.
Implements polyMeshModifier.
Definition at line 270 of file attachInterface.C.
References Foam::ensightOutput::debug, Foam::endl(), HashTable< T, Key, Hash >::find(), forAll, Foam::mag(), Foam::name(), Foam::Pout, UList< T >::size(), and HashTable< T, Key, Hash >::toc().
|
virtual |
Force recalculation of locally stored data on topological change.
Implements polyMeshModifier.
Definition at line 396 of file attachDetach.C.
References polyMesh::boundaryMesh(), polyMesh::faceZones(), mesh, and dynamicFvMesh::update().
|
inline |
Get reference to trigger times.
Definition at line 287 of file attachDetach.H.
|
virtual |
Write.
Implements polyMeshModifier.
Definition at line 409 of file attachDetach.C.
References Foam::endl(), Foam::name(), Foam::nl, os(), and Foam::type().
|
virtual |
Write dictionary.
Implements polyMeshModifier.
Definition at line 420 of file attachDetach.C.
References Ostream::beginBlock(), Ostream::endBlock(), Foam::name(), Switch::name(), Foam::nl, os(), Foam::type(), and Ostream::writeEntry().