40 #ifndef Foam_layerAdditionRemoval_H 41 #define Foam_layerAdditionRemoval_H 66 mutable scalar minLayerThickness_;
69 mutable scalar maxLayerThickness_;
73 const bool thicknessFromVolume_;
77 mutable scalar oldLayerThickness_;
80 mutable std::unique_ptr<labelList> pointsPairingPtr_;
83 mutable std::unique_ptr<labelList> facesPairingPtr_;
86 mutable label triggerRemoval_;
89 mutable label triggerAddition_;
101 void checkDefinition();
107 bool validCollapse()
const;
110 bool setLayerPairing()
const;
128 void clearAddressing()
const;
134 static const scalar addDelta_;
139 static const scalar removeDelta_;
155 const word& zoneName,
156 const scalar minThickness,
157 const scalar maxThickness,
158 const bool 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 a number of values (eg...
virtual bool changeTopology() const
Check for topology change.
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.
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 Foam::string.
virtual ~layerAdditionRemoval()=default
Destructor.
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.