polyMeshTools.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) 2012-2013 OpenFOAM Foundation
9  Copyright (C) 2021 OpenCFD Ltd.
10 -------------------------------------------------------------------------------
11 License
12  This file is part of OpenFOAM.
13 
14  OpenFOAM is free software: you can redistribute it and/or modify it
15  under the terms of the GNU General Public License as published by
16  the Free Software Foundation, either version 3 of the License, or
17  (at your option) any later version.
18 
19  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
20  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
21  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
22  for more details.
23 
24  You should have received a copy of the GNU General Public License
25  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
26 
27 Class
28  Foam::polyMeshTools
29 
30 Description
31  Collection of static functions operating on polyMesh (mainly checks) so
32  that need access to patch information.
33 
34 SourceFiles
35  polyMeshTools.C
36 
37 \*---------------------------------------------------------------------------*/
38 
39 #ifndef Foam_polyMeshTools_H
40 #define Foam_polyMeshTools_H
41 
42 #include "polyMesh.H"
43 #include "primitiveMeshTools.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Class polyMeshTools Declaration
52 \*---------------------------------------------------------------------------*/
53 
54 class polyMeshTools
55 :
56  public primitiveMeshTools
57 {
58 public:
59 
60  //- Generate orthogonality field.
61  //- (1 for fully orthogonal, < 1 for non-orthogonal)
63  (
64  const polyMesh& mesh,
65  const vectorField& fAreas,
66  const vectorField& cellCtrs
67  );
68 
69  //- Generate skewness field
71  (
72  const polyMesh& mesh,
73  const pointField& points,
74  const vectorField& fCtrs,
75  const vectorField& fAreas,
76  const vectorField& cellCtrs
77  );
78 
79  //- Generate interpolation factors field
81  (
82  const polyMesh& mesh,
83  const vectorField& fCtrs,
84  const vectorField& fAreas,
85  const vectorField& cellCtrs
86  );
87 
88  //- Generate volume ratio field
90  (
91  const polyMesh& mesh,
92  const scalarField& vol
93  );
94 
95  //- Combine readUpdateState.
96  //- topo change trumps geom-only change etc.
98  (
99  const polyMesh::readUpdateState& state0,
100  const polyMesh::readUpdateState& state1
101  );
102 };
103 
104 
105 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
106 
107 } // End namespace Foam
108 
109 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
110 
111 #endif
112 
113 // ************************************************************************* //
static tmp< scalarField > faceWeights(const polyMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
Generate interpolation factors field.
dynamicFvMesh & mesh
static polyMesh::readUpdateState combine(const polyMesh::readUpdateState &state0, const polyMesh::readUpdateState &state1)
Combine readUpdateState. topo change trumps geom-only change etc.
const pointField & points
static tmp< scalarField > faceSkewness(const polyMesh &mesh, const pointField &points, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
Generate skewness field.
Definition: polyMeshTools.C:84
Collection of static functions operating on primitiveMesh (mainly checks).
static tmp< scalarField > volRatio(const polyMesh &mesh, const scalarField &vol)
Generate volume ratio field.
Collection of static functions operating on polyMesh (mainly checks) so that need access to patch inf...
Definition: polyMeshTools.H:49
static tmp< scalarField > faceOrthogonality(const polyMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs)
Generate orthogonality field. (1 for fully orthogonal, < 1 for non-orthogonal)
Definition: polyMeshTools.C:30
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:74
readUpdateState
Enumeration defining the state of the mesh after a read update.
Definition: polyMesh.H:90
A class for managing temporary objects.
Definition: HashPtrTable.H:50
Namespace for OpenFOAM.