Go to the documentation of this file.
37 #ifndef layerAdditionRemoval_H
38 #define layerAdditionRemoval_H
41 #include "primitiveFacePatch.H"
158 const word& zoneName,
159 const scalar minThickness,
160 const scalar maxThickness,
161 const Switch thicknessFromVolume =
true
tmp< vectorField > extrusionDir() const
Calculate the offset to the next layer.
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,...
layerAdditionRemoval(const layerAdditionRemoval &)
Disallow default bitwise copy construct.
A class for handling words, derived from string.
virtual void updateMesh(const mapPolyMesh &)
Force recalculation of locally stored data on topological change.
const bool thicknessFromVolume_
Switch to calculate thickness as volume/area.
Cell layer addition mesh modifier.
void clearAddressing() const
Clear addressing.
scalar maxLayerThickness_
Max thickness of extrusion layer. Triggers layer addition.
A class for managing temporary objects.
static scalar readOldThickness(const dictionary &)
Optionally read old thickness.
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.
const labelList & pointsPairing() const
Return points pairing in a layer (not automatic!)
virtual ~layerAdditionRemoval()
Destructor.
void setMaxLayerThickness(const scalar t) const
Set max layer thickness which triggers removal.
void removeCellLayer(polyTopoChange &) const
Remove a layer of cells.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void addCellLayer(polyTopoChange &) const
Add a layer of cells.
const labelList & facesPairing() const
Return faces pairing in a layer (not automatic!)
Pre-declare SubField and related Field type.
void setMinLayerThickness(const scalar t) const
Set min layer thickness which triggers removal.
faceZoneID faceZoneID_
Master face zone ID.
scalar maxLayerThickness() const
Return max layer thickness which triggers removal.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label triggerAddition_
Layer addition trigger time index.
labelList * facesPairingPtr_
Face pairing.
bool validCollapse() const
Check for valid layer.
Virtual base class for mesh modifiers.
static const scalar addDelta_
Thickness insertion fraction for the pre-motion.
const word & name() const
Return name of this modifier.
scalar oldLayerThickness_
Layer thickness from previous step.
virtual void modifyMotionPoints(pointField &motionPoints) const
Modify motion points to comply with the topological change.
void operator=(const layerAdditionRemoval &)
Disallow default bitwise assignment.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
labelList * pointsPairingPtr_
Point pairing.
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,...
scalar minLayerThickness_
Min thickness of extrusion layer. Triggers layer removal.
virtual void writeDict(Ostream &) const
Write dictionary.
label triggerRemoval_
Layer removal trigger time index.
TypeName("layerAdditionRemoval")
Runtime type information.
bool setLayerPairing() const
Set layer pairing. Return true if a valid layer exists.
static const scalar removeDelta_
Thickness removal fraction for the cell collapse.
void checkDefinition()
Check validity of construction data.