44 #ifndef attachDetach_H 45 #define attachDetach_H 93 mutable label triggerIndex_;
96 mutable modifierState state_;
99 mutable bool trigger_;
111 void checkDefinition();
122 void calcPointMatchMap()
const;
128 void clearAddressing()
const;
134 static const scalar positionDifference_;
151 const word& faceZoneName,
152 const word& masterPatchName,
153 const word& slavePatchName,
180 return masterPatchID_;
186 return slavePatchID_;
192 return state_ == ATTACHED;
197 return manualTrigger_;
222 return triggerTimes_;
virtual void write(Ostream &) const
Write.
virtual void setRefinement(polyTopoChange &) const
Insert the layer addition/removal instructions.
void operator=(const attachDetach &)=delete
Disallow default bitwise assignment.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const polyPatchID & masterPatchID() const
Return master patch ID.
bool attached() const
Is the interface attached?
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none/any.
TypeName("attachDetach")
Runtime type information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
List of mesh modifiers defining the mesh dynamics.
A class for handling words, derived from string.
virtual void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
Virtual base class for mesh modifiers.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
Attach/detach boundary mesh modifier. This modifier takes a set of internal faces and converts them i...
const Switch & manualTrigger() const
virtual void writeDict(Ostream &) const
Write dictionary.
virtual bool changeTopology() const
Check for topology change.
Direct mesh changes based on v1.3 polyTopoChange syntax.
const scalarField & triggerTimes() const
Get reference to trigger times.
const polyPatchID & slavePatchID() const
Return slave patch ID.
const word & name() const
Return name of this modifier.
virtual void modifyMotionPoints(pointField &motionPoints) const
Modify motion points to comply with the topological change.
label index() const
Return the index of this modifier.
virtual ~attachDetach()
Destructor.
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.