Go to the documentation of this file.
35 #ifndef polyMeshModifier_H
36 #define polyMeshModifier_H
54 class polyTopoChanger;
declareRunTimeSelectionTable(autoPtr, polyMeshModifier, dictionary,(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme),(name, dict, index, mme))
virtual ~polyMeshModifier()
Destructor.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
const Switch & active() const
A class for handling words, derived from string.
const polyTopoChanger & topoChanger() const
Return reference to morph engine.
void operator=(const polyMeshModifier &)
Disallow default bitwise assignment.
List of mesh modifiers defining the mesh dynamics.
virtual void writeDict(Ostream &) const =0
Write dictionary.
Direct mesh changes based on v1.3 polyTopoChange syntax.
label index() const
Return the index of this modifier.
virtual void updateMesh(const mapPolyMesh &)=0
Force recalculation of locally stored data on topological change.
virtual void write(Ostream &) const =0
Write.
void disable() const
Activate mesh modifier.
virtual void setRefinement(polyTopoChange &) const =0
Insert the topological change instructions.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
Switch active_
Activation switch.
virtual void modifyMotionPoints(pointField &motionPoints) const =0
Modify motion points to comply with the topological change.
label index_
Index of modifier.
const polyTopoChanger & topoChanger_
Reference to morph engine.
friend Ostream & operator<<(Ostream &, const polyMeshModifier &)
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual bool changeTopology() const =0
Check for topology change.
static autoPtr< polyMeshModifier > New(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
Select constructed from dictionary.
Virtual base class for mesh modifiers.
const word & name() const
Return name of this modifier.
void enable() const
Activate mesh modifier.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
polyMeshModifier(const polyMeshModifier &)
Disallow default bitwise copy construct.
Macros to ease declaration of run-time selection tables.
TypeName("meshModifier")
Runtime type information.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
word name_
Name of modifier.