38 #ifndef polyMeshModifier_H 39 #define polyMeshModifier_H 57 class polyTopoChanger;
60 class polyMeshModifier;
62 Ostream&
operator<<(Ostream&,
const polyMeshModifier&);
200 virtual void write(Ostream&)
const = 0;
203 virtual void writeDict(Ostream&)
const = 0;
208 friend Ostream&
operator<<(Ostream&,
const polyMeshModifier&);
virtual void writeDict(Ostream &) const =0
Write dictionary.
void disable() const
Activate mesh modifier.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
void enable() const
Activate mesh modifier.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
static autoPtr< polyMeshModifier > New(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme)
Select constructed from dictionary.
Switch active() const
If modifier activate?
TypeName("meshModifier")
Runtime type information.
virtual ~polyMeshModifier()=default
Destructor.
virtual void write(Ostream &) const =0
Write.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
declareRunTimeSelectionTable(autoPtr, polyMeshModifier, dictionary,(const word &name, const dictionary &dict, const label index, const polyTopoChanger &mme),(name, dict, index, mme))
virtual void updateMesh(const mapPolyMesh &)=0
Force recalculation of locally stored data on topological change.
List of mesh modifiers defining the mesh dynamics.
A class for handling words, derived from Foam::string.
friend Ostream & operator<<(Ostream &, const polyMeshModifier &)
Virtual base class for mesh modifiers.
virtual void modifyMotionPoints(pointField &motionPoints) const =0
Modify motion points to comply with the topological change.
const polyTopoChanger & topoChanger() const
Return reference to morph engine.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Direct mesh changes based on v1.3 polyTopoChange syntax.
virtual void setRefinement(polyTopoChange &) const =0
Insert the topological change instructions.
virtual bool changeTopology() const =0
Check for topology change.
const word & name() const
Return name of this modifier.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
label index() const
Return the index of this modifier.