handleCyclicPatches.H
Go to the documentation of this file.
1 // Detect any cyclic patches and force re-ordering of the faces
2 {
3  bool hasCyclic = false;
4  for (const polyPatch& pp : mesh.boundaryMesh())
5  {
6  if (isA<cyclicPolyPatch>(pp))
7  {
8  hasCyclic = true;
9  break;
10  }
11  }
12 
13  if (hasCyclic)
14  {
15  Info<< nl << "Detected cyclic patches; ordering boundary faces" << endl;
16 
17  const word oldInstance = mesh.instance();
18  polyTopoChange meshMod(mesh);
19  meshMod.changeMesh(mesh, false);
20  mesh.setInstance(oldInstance);
21  }
22 }
constexpr char nl
The newline &#39;\n&#39; character (0x0a)
Definition: Ostream.H:50
Ostream & endl(Ostream &os)
Add newline and flush stream.
Definition: Ostream.H:531
dynamicFvMesh & mesh
messageStream Info
Information stream (stdout output on master, null elsewhere)
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())