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-------------------------------------------------------------------------------
11License
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
27Class
28 Foam::polyMeshTools
29
30Description
31 Collection of static functions operating on polyMesh (mainly checks) so
32 that need access to patch information.
33
34SourceFiles
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
47namespace Foam
48{
49
50/*---------------------------------------------------------------------------*\
51 Class polyMeshTools Declaration
52\*---------------------------------------------------------------------------*/
54class polyMeshTools
55:
57{
58public:
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// ************************************************************************* //
Collection of static functions operating on polyMesh (mainly checks) so that need access to patch inf...
Definition: polyMeshTools.H:56
static tmp< scalarField > faceOrthogonality(const polyMesh &mesh, const vectorField &fAreas, const vectorField &cellCtrs)
Definition: polyMeshTools.C:37
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:91
static tmp< scalarField > faceWeights(const polyMesh &mesh, const vectorField &fCtrs, const vectorField &fAreas, const vectorField &cellCtrs)
Generate interpolation factors field.
static tmp< scalarField > volRatio(const polyMesh &mesh, const scalarField &vol)
Generate volume ratio field.
Mesh consisting of general polyhedral cells.
Definition: polyMesh.H:81
readUpdateState
Enumeration defining the state of the mesh after a read update.
Definition: polyMesh.H:91
Collection of static functions operating on primitiveMesh (mainly checks).
A class for managing temporary objects.
Definition: tmp.H:65
dynamicFvMesh & mesh
const pointField & points
Namespace for OpenFOAM.