Formatting
[foam-extend-3.2.git] / src / engine / engineTopoChangerMesh / pistonSliding / addBowlZonesPistonSliding.H
blob8099b1d6e2c008b2b1b372655fc32cf8b0e32e45
3     if
4     (
5         piston().patchID().active()
6         &&
7         piston().bowlInPistonPatchID().active()
8         &&
9         piston().bowlInCylinderPatchID().active()
10     )
11     {
13         Info << "Add sliding interface zones for the piston bowl" << endl;
16         pz.append
17         (
18             new pointZone
19             (
20                 "cutPointsPistonBowl",
21                 labelList(0),
22                 nPointZones,
23                 pointZones()
24             )
25         );
27         nPointZones++;
29         const polyPatch& bowlInPistonPatch =
30             boundaryMesh()
31                 [piston().bowlInPistonPatchID().index()];
33         labelList bowlInPistonLabels(bowlInPistonPatch.size(), bowlInPistonPatch.start());
35         forAll (bowlInPistonLabels, i)
36         {
37             bowlInPistonLabels[i] += i;
38         }
40         fz.append
41         (
42             new faceZone
43             (
44                 "bowlInPistonZone",
45                 bowlInPistonLabels,
46                 boolList(bowlInPistonLabels.size(), false),
47                 nFaceZones,
48                 faceZones()
49             )
50         );
52         nFaceZones++;
56         const polyPatch& bowlInCylinderPatch =
57             boundaryMesh()
58                 [piston().bowlInCylinderPatchID().index()];
60         labelList bowlInCylinderLabels(bowlInCylinderPatch.size(), bowlInCylinderPatch.start());
62         forAll (bowlInCylinderLabels, i)
63         {
64             bowlInCylinderLabels[i] += i;
65         }
67         fz.append
68         (
69             new faceZone
70             (
71                 "bowlInCylinderZone",
72                 bowlInCylinderLabels,
73                 boolList(bowlInCylinderLabels.size(), false),
74                 nFaceZones,
75                 faceZones()
76             )
77         );
79         nFaceZones++;
83         // Add empty zone for cut faces
85         fz.append
86         (
87             new faceZone
88             (
89                 "cutFaceZonePistonBowl",
90                 labelList(0),
91                 boolList(0, false),
92                 nFaceZones,
93                 faceZones()
94             )
95         );
97         nFaceZones++;
99     }