1 if (mergePatchPairs.size())
3 Info<<
"Creating merge patch pairs" <<
nl <<
endl;
10 forAll(mergePatchPairs, pairI)
14 mergePatchPairs[pairI].first()
15 + mergePatchPairs[pairI].second()
19 pz[pairI] =
new pointZone
21 mergeName +
"CutPointZone",
28 const word masterPatchName(mergePatchPairs[pairI].first());
29 const polyPatch& masterPatch =
30 mesh.boundaryMesh()[masterPatchName];
36 isf[i] = masterPatch.start() + i;
39 fz[3*pairI] =
new faceZone
41 mergeName +
"MasterZone",
49 const word slavePatchName(mergePatchPairs[pairI].second());
50 const polyPatch& slavePatch =
51 mesh.boundaryMesh()[slavePatchName];
57 osf[i] = slavePatch.start() + i;
60 fz[3*pairI + 1] =
new faceZone
62 mergeName +
"SlaveZone",
70 fz[3*pairI + 2] =
new faceZone
72 mergeName +
"CutFaceZone",
80 Info<<
"Adding point and face zones" <<
endl;
81 mesh.addZones(pz, fz, cz);
84 Info<<
"Creating attachPolyTopoChanger" <<
endl;
85 attachPolyTopoChanger polyMeshAttacher(
mesh);
86 polyMeshAttacher.setSize(mergePatchPairs.size());
88 forAll(mergePatchPairs, pairI)
92 mergePatchPairs[pairI].first()
93 + mergePatchPairs[pairI].second()
103 "couple" +
name(pairI),
106 mergeName +
"MasterZone",
107 mergeName +
"SlaveZone",
108 mergeName +
"CutPointZone",
109 mergeName +
"CutFaceZone",
110 mergePatchPairs[pairI].first(),
111 mergePatchPairs[pairI].second(),
112 slidingInterface::INTEGRAL,
113 intersection::VISIBLE
118 polyMeshAttacher.attach(
true);