1 if (piston().patchID().active())
3 // Add faces for piston layering
4 // Note: because of operation of layer addition/removal
5 // (reduce function in layer addition/removal thickness)
6 // the layering modifier needs to be present on all processors
7 // even if the patch size is zero
10 faceSet pistonFaceSet(*this, piston().pistonFaceSetName());
12 boolList flipPistonFaces(pistonFaceSet.toc().size(), false);
13 label nSet = pistonFaceSet.toc().size();
16 forAll (flipPistonFaces, facei)
19 (faceAreas()[pistonFaceSet.toc()[facei]] & vector(0, 0, 1));
23 flipPistonFaces[facei] = true;
28 Info << "nSet = " << nSet << endl;
29 Info << "nFlip = " << nFlip << endl;
45 cellSet movingPistonCells(*this, piston().pistonCellSetName());
47 Info<< "Adding piston cell set" << endl;
53 movingPistonCells.toc(),