checkGeometry.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2022 OpenFOAM Foundation
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 Description
25  Routines for checking mesh geometry
26 
27 SourceFiles
28  checkGeometry.C
29 
30 \*---------------------------------------------------------------------------*/
31 
32 #ifndef checkGeometry_H
33 #define checkGeometry_H
34 
35 #include "label.H"
36 #include "HashSet.H"
37 #include "labelVector.H"
38 #include "setWriter.H"
39 
40 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
41 
42 namespace Foam
43 {
44  class polyMesh;
45  class wedgePolyPatch;
46  class surfaceWriter;
47 
48  //- Find wedge with opposite orientation. Note: does not actually check
49  // that it is opposite, only that it has opposite normal and same axis.
51 
52  //- Check wedge orientation
54  (
55  const polyMesh&,
56  const bool report,
57  const Vector<label>&,
59  );
60 
61  //- Check 0th vertex on coupled faces
62  bool checkCoupledPoints(const polyMesh&, const bool report, labelHashSet*);
63 
64  //- Check the geometry
66  (
67  const polyMesh& mesh,
68  const bool allGeometry,
70  const autoPtr<setWriter>&
71  );
72 }
73 
74 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
75 
76 #endif
77 
78 // ************************************************************************* //
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Definition: autoPtr.H:51
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:80
Wedge front and back plane patch.
Namespace for OpenFOAM.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition: label.H:59
label findOppositeWedge(const polyMesh &, const wedgePolyPatch &)
Find wedge with opposite orientation. Note: does not actually check.
label checkGeometry(const polyMesh &mesh, const bool allGeometry, const autoPtr< surfaceWriter > &, const autoPtr< setWriter > &)
Check the geometry.
bool checkWedges(const polyMesh &, const bool report, const Vector< label > &, labelHashSet *)
Check wedge orientation.
bool checkCoupledPoints(const polyMesh &, const bool report, labelHashSet *)
Check 0th vertex on coupled faces.