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_;
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual bool changeTopology() const
Check for topology change.
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.
virtual void setRefinement(polyTopoChange &) const
Insert the layer addition/removal instructions.
virtual void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
void setMaxLayerThickness(const scalar t) const
Set max layer thickness which triggers removal.
virtual ~layerAdditionRemoval()
Destructor.
void setMinLayerThickness(const scalar t) const
Set min layer thickness which triggers removal.
virtual void modifyMotionPoints(pointField &motionPoints) const
Modify motion points to comply with the topological change.
List of mesh modifiers defining the mesh dynamics.
A class for handling words, derived from string.
Virtual base class for mesh modifiers.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
TypeName("layerAdditionRemoval")
Runtime type information.
scalar maxLayerThickness() const
Return max layer thickness which triggers removal.
virtual void writeDict(Ostream &) const
Write dictionary.
Cell layer addition mesh modifier.
Direct mesh changes based on v1.3 polyTopoChange syntax.
const word & name() const
Return name of this modifier.
scalar minLayerThickness() const
Return min layer thickness which triggers removal.
label index() const
Return the index of this modifier.
A class for managing temporary objects.