37 #ifndef layerAdditionRemoval_H 38 #define layerAdditionRemoval_H 63 mutable scalar minLayerThickness_;
66 mutable scalar maxLayerThickness_;
70 const bool thicknessFromVolume_;
74 mutable scalar oldLayerThickness_;
83 mutable label triggerRemoval_;
86 mutable label triggerAddition_;
98 void checkDefinition();
104 bool validCollapse()
const;
107 bool setLayerPairing()
const;
125 void clearAddressing()
const;
131 static scalar readOldThickness(
const dictionary&);
137 static const scalar addDelta_;
142 static const scalar removeDelta_;
158 const word& zoneName,
159 const scalar minThickness,
160 const scalar maxThickness,
161 const Switch thicknessFromVolume =
true 199 return minLayerThickness_;
208 return maxLayerThickness_;
virtual void setRefinement(polyTopoChange &) const
Insert the layer addition/removal instructions.
scalar minLayerThickness() const
Return min layer thickness which triggers removal.
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...
scalar maxLayerThickness() const
Return max layer thickness which triggers removal.
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.
const word & name() const
Return name of this modifier.
virtual void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
label index() const
Return the index of this modifier.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual ~layerAdditionRemoval()
Destructor.
virtual void writeDict(Ostream &) const
Write dictionary.
List of mesh modifiers defining the mesh dynamics.
A class for handling words, derived from string.
Virtual base class for mesh modifiers.
void setMinLayerThickness(const scalar t) const
Set min layer thickness which triggers removal.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
TypeName("layerAdditionRemoval")
Runtime type information.
virtual void modifyMotionPoints(pointField &motionPoints) const
Modify motion points to comply with the topological change.
Cell layer addition mesh modifier.
Direct mesh changes based on v1.3 polyTopoChange syntax.
virtual void write(Ostream &) const
Write.
A class for managing temporary objects.
void setMaxLayerThickness(const scalar t) const
Set max layer thickness which triggers removal.
virtual bool changeTopology() const
Check for topology change.