Fix tutorials: typo in tutorials/viscoelastic/viscoelasticFluidFoam/S-MDCPP/constant...
[OpenFOAM-1.6-ext.git] / src / engine / engineTopoChangerMesh / pistonSliding / addBowlZonesPistonSliding.H
blobd1d8b12ec5a267aa062d9bbb2b7298516b01fdcd
3     if
4     (
5         piston().patchID().active()
6         &&
7         piston().bowlInPistonPatchID().active()
8         &&
9         piston().bowlInCylinderPatchID().active()
10     )
11     {
12         
13         Info << "Add sliding interface zones for the piston bowl" << endl;
14         
15         
16         pz.append
17         (
18             new pointZone
19             (
20                 "cutPointsPistonBowl",
21                 labelList(0),
22                 nPointZones,
23                 pointZones()
24             )            
25         );
26                             
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         );
51             
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         );
78             
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++;        
98     
99     }
100