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