1 if (piston().patchID().active())
3 // add faces for piston layering
5 faceSet pistonFaceSet(*this, piston().pistonFaceSetName());
7 boolList flipPistonFaces(pistonFaceSet.toc().size(), false);
8 label nSet = pistonFaceSet.toc().size();
11 forAll (flipPistonFaces, facei)
14 (faceAreas()[pistonFaceSet.toc()[facei]] & vector(0, 0, 1));
18 flipPistonFaces[facei] = true;
23 Info << "nSet = " << nSet << endl;
24 Info << "nFlip = " << nFlip << endl;
41 // pointSet movingPistonPoints(*this, piston().pistonPointSetName());
48 // movingPistonPoints.toc(),
57 cellSet movingPistonCells(*this, piston().pistonCellSetName());
59 Info<< "Adding piston cell set" << endl;
65 movingPistonCells.toc(),