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_;
92 void checkDefinition();
98 bool validCollapse()
const;
101 bool setLayerPairing()
const;
119 void clearAddressing()
const;
125 static scalar readOldThickness(
const dictionary&);
131 static const scalar addDelta_;
136 static const scalar removeDelta_;
152 const word& zoneName,
153 const scalar minThickness,
154 const scalar maxThickness,
155 const Switch thicknessFromVolume =
true 196 return minLayerThickness_;
205 return maxLayerThickness_;
virtual void write(Ostream &) const
Write.
A list of keyword definitions, which are a keyword followed by any number of values (e...
virtual void topoChange(const polyTopoChangeMap &)
Force recalculation of locally stored data on topological change.
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/any.
virtual void setRefinement(polyTopoChange &) const
Insert the layer addition/removal instructions.
layerAdditionRemoval(const word &name, const label index, const polyTopoChanger &ptc, const word &zoneName, const scalar minThickness, const scalar maxThickness, const Switch thicknessFromVolume=true)
Construct from components.
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
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.
void operator=(const layerAdditionRemoval &)=delete
Disallow default bitwise assignment.
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.