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 Namespace
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 polyMeshTools_H
40 #define polyMeshTools_H
41 
42 #include "polyMesh.H"
43 #include "primitiveMeshTools.H"
44 
45 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
46 
47 namespace Foam
48 {
49 
50 /*---------------------------------------------------------------------------*\
51  Namespace polyMeshTools Declaration
52 \*---------------------------------------------------------------------------*/
53 
55 :
56  public primitiveMeshTools
57 {
58 
59 public:
60 
61  //- Generate orthogonality field. (1 for fully orthogonal, < 1 for
62  // non-orthogonal)
64  (
65  const polyMesh& mesh,
66  const vectorField& fAreas,
67  const vectorField& cellCtrs
68  );
69 
70  //- Generate skewness field
72  (
73  const polyMesh& mesh,
74  const pointField& points,
75  const vectorField& fCtrs,
76  const vectorField& fAreas,
77  const vectorField& cellCtrs
78  );
79 
80  //- Generate interpolation factors field
82  (
83  const polyMesh& mesh,
84  const vectorField& fCtrs,
85  const vectorField& fAreas,
86  const vectorField& cellCtrs
87  );
88 
89  //- Generate volume ratio field
91  (
92  const polyMesh& mesh,
93  const scalarField& vol
94  );
95 
96  //- Combine readUpdateState. topo change trumps geom-only
97  // change etc.
99  (
100  const polyMesh::readUpdateState& state0,
101  const polyMesh::readUpdateState& state1
102  );
103 };
104 
105 
106 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
107 
108 } // End namespace Foam
109 
110 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
111 
112 #endif
113 
114 // ************************************************************************* //
primitiveMeshTools.H
Foam::tmp
A class for managing temporary objects.
Definition: PtrList.H:61
Foam::polyMeshTools::volRatio
static tmp< scalarField > volRatio(const polyMesh &mesh, const scalarField &vol)
Generate volume ratio field.
Definition: polyMeshTools.C:235
Foam::polyMeshTools::faceSkewness
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:92
polyMesh.H
Foam::polyMesh
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:77
Foam::Field< vector >
mesh
dynamicFvMesh & mesh
Definition: createDynamicFvMesh.H:6
Foam
Namespace for OpenFOAM.
Definition: atmBoundaryLayer.C:33
Foam::polyMesh::readUpdateState
readUpdateState
Enumeration defining the state of the mesh after a read update.
Definition: polyMesh.H:90
Foam::polyMeshTools
Definition: polyMeshTools.H:54
points
const pointField & points
Definition: gmvOutputHeader.H:1
Foam::polyMeshTools::combine
static polyMesh::readUpdateState combine(const polyMesh::readUpdateState &state0, const polyMesh::readUpdateState &state1)
Combine readUpdateState. topo change trumps geom-only.
Definition: polyMeshTools.C:285
Foam::primitiveMeshTools
Definition: primitiveMeshTools.H:57
Foam::polyMeshTools::faceWeights
static tmp< scalarField > faceWeights(const polyMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
Generate interpolation factors field.
Definition: polyMeshTools.C:177
Foam::polyMeshTools::faceOrthogonality
static tmp< scalarField > faceOrthogonality(const polyMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs)
Generate orthogonality field. (1 for fully orthogonal, < 1 for.
Definition: polyMeshTools.C:37