Go to the documentation of this file.
40 #ifndef layerAdditionRemoval_H
41 #define layerAdditionRemoval_H
66 mutable scalar minLayerThickness_;
69 mutable scalar maxLayerThickness_;
73 const bool thicknessFromVolume_;
77 mutable scalar oldLayerThickness_;
80 mutable unique_ptr<labelList> pointsPairingPtr_;
83 mutable 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 bool changeTopology() const
Check for topology change.
A class for handling words, derived from Foam::string.
virtual void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
Cell layer addition mesh modifier.
A class for managing temporary objects.
List of mesh modifiers defining the mesh dynamics.
Direct mesh changes based on v1.3 polyTopoChange syntax.
virtual void setRefinement(polyTopoChange &) const
Insert the layer addition/removal instructions.
label index() const
Return the index of this modifier.
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 ~layerAdditionRemoval()=default
Destructor.
scalar maxLayerThickness() const
Return max layer thickness which triggers removal.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Virtual base class for mesh modifiers.
const word & name() const
Return name of this modifier.
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.
Class containing mesh-to-mesh mapping information after a change in polyMesh topology.
virtual void write(Ostream &) const
Write.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void writeDict(Ostream &) const
Write dictionary.
TypeName("layerAdditionRemoval")
Runtime type information.