8 meshDict.readIfPresent(
"mergePatchPairs", mergePatchPairs)
9 && mergePatchPairs.size()
12 Info<<
"Creating merge patch pairs" <<
nl <<
endl;
14 Info<<
"Adding point and face zones" <<
endl;
16 auto& pzs =
mesh.pointZones();
17 pzs.clearAddressing();
18 auto& fzs =
mesh.faceZones();
19 fzs.clearAddressing();
21 forAll(mergePatchPairs, pairi)
25 mergePatchPairs[pairi].first()
26 + mergePatchPairs[pairi].second()
35 mergeName +
"CutPointZone",
42 const word masterPatchName(mergePatchPairs[pairi].first());
43 const polyPatch& masterPatch =
44 mesh.boundaryMesh()[masterPatchName];
50 mergeName +
"MasterZone",
59 const word slavePatchName(mergePatchPairs[pairi].second());
60 const polyPatch& slavePatch =
61 mesh.boundaryMesh()[slavePatchName];
67 mergeName +
"SlaveZone",
80 mergeName +
"CutFaceZone",
90 Info<<
"Creating attachPolyTopoChanger" <<
endl;
91 attachPolyTopoChanger polyMeshAttacher(
mesh);
92 polyMeshAttacher.setSize(mergePatchPairs.size());
94 forAll(mergePatchPairs, pairi)
98 mergePatchPairs[pairi].first()
99 + mergePatchPairs[pairi].second()
109 "couple" +
name(pairi),
112 mergeName +
"MasterZone",
113 mergeName +
"SlaveZone",
114 mergeName +
"CutPointZone",
115 mergeName +
"CutFaceZone",
116 mergePatchPairs[pairi].first(),
117 mergePatchPairs[pairi].second(),
118 slidingInterface::INTEGRAL,
120 intersection::VISIBLE
125 polyMeshAttacher.attach(
true);
129 Info<<
nl <<
"There are no merge patch pairs" <<
endl;