DACheckMesh.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2 
3  DAFoam : Discrete Adjoint with OpenFOAM
4  Version : v3
5 
6  Description:
7  Check mesh quality, modified from the checkMesh utility
8 
9 \*---------------------------------------------------------------------------*/
10 
11 #ifndef DACheckMesh_H
12 #define DACheckMesh_H
13 
14 #include "DAOption.H"
15 #include "Time.H"
16 #include "fvMesh.H"
17 #include "IOdictionary.H"
18 #include "checkGeometry.H"
19 
20 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
21 
22 namespace Foam
23 {
24 
25 /*---------------------------------------------------------------------------*\
26  Class DACheckMesh Declaration
27 \*---------------------------------------------------------------------------*/
28 
30 {
31 
32 private:
34  DACheckMesh(const DACheckMesh&);
35 
37  void operator=(const DACheckMesh&);
38 
40  const DAOption& daOption_;
41 
43  const Time& runTime;
44 
46  const fvMesh& mesh;
47 
49  scalar maxAspectRatio_ = 1000.0;
50 
52  scalar maxNonOrth_ = 70.0;
53 
55  scalar maxSkewness_ = 4.0;
56 
58  label maxIncorrectlyOrientedFaces_ = 0;
59 
61  autoPtr<surfaceWriter> surfWriter;
62 
64  autoPtr<writer<scalar>> setWriter;
65 
66 public:
67  // Constructors
68 
71  const DAOption& daOption,
72  const Time& runTime1,
73  const fvMesh& mesh1);
74 
76  virtual ~DACheckMesh();
77 
79  label run() const;
80 };
81 
82 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
83 
84 } // End namespace Foam
85 
86 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
87 
88 #endif
DAOption.H
Foam::DACheckMesh
Definition: DACheckMesh.H:29
checkGeometry.H
Foam::DAOption
Definition: DAOption.H:29
daOption
DAOption daOption(mesh, pyOptions_)
Foam
Definition: multiFreqScalarFvPatchField.C:144
Foam::DACheckMesh::~DACheckMesh
virtual ~DACheckMesh()
Destructor.
Definition: DACheckMesh.C:48
Foam::DACheckMesh::run
label run() const
run meshCheck and return meshOK
Definition: DACheckMesh.C:52