OpenFOAM: API Guide
v1912
The open source CFD toolbox
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
-------------------------------------------------------------------------------
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
Namespace
27
Foam::polyMeshTools
28
29
Description
30
Collection of static functions operating on polyMesh (mainly checks) so
31
that need access to patch information.
32
33
SourceFiles
34
polyMeshTools.C
35
36
\*---------------------------------------------------------------------------*/
37
#ifndef polyMeshTools_H
38
#define polyMeshTools_H
39
40
#include "
polyMesh.H
"
41
#include "
primitiveMeshTools.H
"
42
43
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44
45
namespace
Foam
46
{
47
48
/*---------------------------------------------------------------------------*\
49
Namespace polyMeshTools Declaration
50
\*---------------------------------------------------------------------------*/
51
52
class
polyMeshTools
53
:
54
public
primitiveMeshTools
55
{
56
57
public
:
58
59
//- Generate orthogonality field. (1 for fully orthogonal, < 1 for
60
// non-orthogonal)
61
static
tmp<scalarField>
faceOrthogonality
62
(
63
const
polyMesh
&
mesh
,
64
const
vectorField
& fAreas,
65
const
vectorField
& cellCtrs
66
);
67
68
//- Generate skewness field
69
static
tmp<scalarField>
faceSkewness
70
(
71
const
polyMesh
&
mesh
,
72
const
pointField
&
points
,
73
const
vectorField
& fCtrs,
74
const
vectorField
& fAreas,
75
const
vectorField
& cellCtrs
76
);
77
78
//- Generate interpolation factors field
79
static
tmp<scalarField>
faceWeights
80
(
81
const
polyMesh
&
mesh
,
82
const
vectorField
& fCtrs,
83
const
vectorField
& fAreas,
84
const
vectorField
& cellCtrs
85
);
86
87
//- Generate volume ratio field
88
static
tmp<scalarField>
volRatio
89
(
90
const
polyMesh
&
mesh
,
91
const
scalarField
& vol
92
);
93
94
};
95
96
97
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
98
99
}
// End namespace Foam
100
101
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
102
103
#endif
104
105
// ************************************************************************* //
primitiveMeshTools.H
Foam::tmp
A class for managing temporary objects.
Definition:
PtrList.H:59
Foam::polyMeshTools::volRatio
static tmp< scalarField > volRatio(const polyMesh &mesh, const scalarField &vol)
Generate volume ratio field.
Definition:
polyMeshTools.C:234
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:91
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::polyMeshTools
Definition:
polyMeshTools.H:52
points
const pointField & points
Definition:
gmvOutputHeader.H:1
Foam::primitiveMeshTools
Definition:
primitiveMeshTools.H:52
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:176
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:36
src
OpenFOAM
meshes
polyMesh
polyMeshCheck
polyMeshTools.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.