Enable layerAddition to add new cells into cell Zone
This commit is contained in:
parent
55f5ade6e9
commit
fbef604e95
3 changed files with 12 additions and 5 deletions
|
@ -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
|
||||
)
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue