diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/addCellLayer.C b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/addCellLayer.C index 07c2d5c3c..9551fdaf5 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/addCellLayer.C +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/addCellLayer.C @@ -154,7 +154,7 @@ void Foam::layerAdditionRemoval::addCellLayer -1, // master edge mf[faceI], // master face -1, // master cell - -1 // zone for cell + cellZone_ // zone for cell ) ); } diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.C b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.C index 68f1d2d1f..accf614cc 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.C +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.C @@ -167,7 +167,8 @@ Foam::layerAdditionRemoval::layerAdditionRemoval const polyTopoChanger& mme, const word& zoneName, const scalar minThickness, - const scalar maxThickness + const scalar maxThickness, + const label cellZone ) : polyMeshModifier(name, index, mme, true), @@ -178,7 +179,8 @@ Foam::layerAdditionRemoval::layerAdditionRemoval pointsPairingPtr_(NULL), facesPairingPtr_(NULL), triggerRemoval_(-1), - triggerAddition_(-1) + triggerAddition_(-1), + cellZone_(cellZone) { checkDefinition(); } @@ -201,7 +203,8 @@ Foam::layerAdditionRemoval::layerAdditionRemoval pointsPairingPtr_(NULL), facesPairingPtr_(NULL), triggerRemoval_(-1), - triggerAddition_(-1) + triggerAddition_(-1), + cellZone_(-1) { checkDefinition(); } diff --git a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.H b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.H index 1e932ffff..dbce5e6ae 100644 --- a/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.H +++ b/src/dynamicMesh/dynamicMesh/polyMeshModifiers/layerAdditionRemoval/layerAdditionRemoval.H @@ -82,6 +82,9 @@ class layerAdditionRemoval //- Layer addition trigger time index mutable label triggerAddition_; + //- cell zone for new cells + label cellZone_; + // Private Member Functions @@ -150,7 +153,8 @@ public: const polyTopoChanger& mme, const word& zoneName, const scalar minThickness, - const scalar maxThickness + const scalar maxThickness, + const label cellZone = -1 ); //- Construct from dictionary