cellQuality.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2011 OpenFOAM Foundation
9 -------------------------------------------------------------------------------
10 License
11  This file is part of OpenFOAM.
12 
13  OpenFOAM is free software: you can redistribute it and/or modify it
14  under the terms of the GNU General Public License as published by
15  the Free Software Foundation, either version 3 of the License, or
16  (at your option) any later version.
17 
18  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
19  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
20  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
21  for more details.
22 
23  You should have received a copy of the GNU General Public License
24  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
25 
26 Class
27  Foam::cellQuality
28 
29 Description
30  Class calculates cell quality measures.
31 
32 SourceFiles
33  cellQuality.C
34 
35 \*---------------------------------------------------------------------------*/
36 
37 #ifndef cellQuality_H
38 #define cellQuality_H
39 
40 #include "polyMesh.H"
41 
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
43 
44 namespace Foam
45 {
46 
47 
48 /*---------------------------------------------------------------------------*\
49  Class cellQuality Declaration
50 \*---------------------------------------------------------------------------*/
51 
52 class cellQuality
53 {
54  // Private data
55 
56  //- Reference to mesh
57  const polyMesh& mesh_;
58 
59 
60  // Private Member Functions
61 
62  //- No copy construct
63  cellQuality(const cellQuality&) = delete;
64 
65  //- No copy assignment
66  void operator=(const cellQuality&) = delete;
67 
68 
69 public:
70 
71  // Constructors
72 
73  //- Construct from mesh
74  cellQuality(const polyMesh& mesh);
75 
76 
77  // Destructor - default
78 
79 
80  // Member Functions
81 
82  //- Return cell non-orthogonality
84 
85  //- Return cell skewness
86  tmp<scalarField> skewness() const;
87 
88  //- Return face non-orthogonality
90 
91  //- Return face skewness
93 };
94 
95 
96 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
97 
98 } // End namespace Foam
99 
100 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
101 
102 #endif
103 
104 // ************************************************************************* //
Foam::cellQuality::faceNonOrthogonality
tmp< scalarField > faceNonOrthogonality() const
Return face non-orthogonality.
Definition: cellQuality.C:183
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::cellQuality::nonOrthogonality
tmp< scalarField > nonOrthogonality() const
Return cell non-orthogonality.
Definition: cellQuality.C:42
Foam::cellQuality::skewness
tmp< scalarField > skewness() const
Return cell skewness.
Definition: cellQuality.C:104
polyMesh.H
Foam::cellQuality
Class calculates cell quality measures.
Definition: cellQuality.H:51
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::cellQuality::faceSkewness
tmp< scalarField > faceSkewness() const
Return face skewness.
Definition: cellQuality.C:243