checkGeometry.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  This file is modified from OpenFOAM's source code
7  applications/utilities/mesh/manipulation/checkMesh/checkMeshGeometry.C
8 
9  OpenFOAM: The Open Source CFD Toolbox
10 
11  Copyright (C): 2011-2016 OpenFOAM Foundation
12 
13  OpenFOAM License:
14 
15  OpenFOAM is free software: you can redistribute it and/or modify it
16  under the terms of the GNU General Public License as published by
17  the Free Software Foundation, either version 3 of the License, or
18  (at your option) any later version.
19 
20  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  for more details.
24 
25  You should have received a copy of the GNU General Public License
26  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27 
28 \*---------------------------------------------------------------------------*/
29 
30 #include "label.H"
31 #include "HashSet.H"
32 #include "labelVector.H"
33 #include "polyMesh.H"
34 #include "cellSet.H"
35 #include "faceSet.H"
36 #include "pointSet.H"
37 #include "edgeHashes.H"
38 #include "wedgePolyPatch.H"
39 #include "unitConversion.H"
40 #include "polyMeshTetDecomposition.H"
41 #include "surfaceWriter.H"
42 #include "checkTools.H"
43 #include "functionObject.H"
44 
45 #include "vtkSurfaceWriter.H"
46 #include "vtkSetWriter.H"
47 #include "writer.H"
48 
49 #include "cyclicACMIPolyPatch.H"
50 #include "Time.H"
51 #include "PatchTools.H"
52 
53 namespace Foam
54 {
55 class polyMesh;
56 class wedgePolyPatch;
57 
58 label findOppositeWedge(const polyMesh&, const wedgePolyPatch&);
59 
61 bool checkWedges(
62  const polyMesh&,
63  const bool report,
64  const Vector<label>&,
65  labelHashSet*);
66 
68 bool checkCoupledPoints(const polyMesh&, const bool report, labelHashSet*);
69 
71 label checkGeometry(
72  const polyMesh& mesh,
73  const autoPtr<surfaceWriter>& surfWriter,
74  const autoPtr<writer<scalar>>& setWriter,
75  const label maxIncorrectlyOrientedFaces);
76 
77 }
Foam::checkWedges
bool checkWedges(const polyMesh &, const bool report, const Vector< label > &, labelHashSet *)
Check wedge orientation.
Foam::findOppositeWedge
label findOppositeWedge(const polyMesh &, const wedgePolyPatch &)
Foam::checkCoupledPoints
bool checkCoupledPoints(const polyMesh &, const bool report, labelHashSet *)
Check 0th vertex on coupled faces.
Definition: checkGeometry.C:96
mesh
fvMesh & mesh
Definition: createRefsHeatTransfer.H:4
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::checkGeometry
label checkGeometry(const polyMesh &mesh, const autoPtr< surfaceWriter > &surfWriter, const autoPtr< writer< scalar >> &setWriter, const label maxIncorrectlyOrientedFaces)
check mesh quality
Definition: checkGeometry.C:233
checkTools.H