OpenFOAM: API Guide
v2012
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
38
#ifndef polyMeshTools_H
39
#define polyMeshTools_H
40
41
#include "
polyMesh.H
"
42
#include "
primitiveMeshTools.H
"
43
44
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
45
46
namespace
Foam
47
{
48
49
/*---------------------------------------------------------------------------*\
50
Namespace polyMeshTools Declaration
51
\*---------------------------------------------------------------------------*/
52
53
class
polyMeshTools
54
:
55
public
primitiveMeshTools
56
{
57
58
public
:
59
60
//- Generate orthogonality field. (1 for fully orthogonal, < 1 for
61
// non-orthogonal)
62
static
tmp<scalarField>
faceOrthogonality
63
(
64
const
polyMesh
&
mesh
,
65
const
vectorField
& fAreas,
66
const
vectorField
& cellCtrs
67
);
68
69
//- Generate skewness field
70
static
tmp<scalarField>
faceSkewness
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
80
static
tmp<scalarField>
faceWeights
81
(
82
const
polyMesh
&
mesh
,
83
const
vectorField
& fCtrs,
84
const
vectorField
& fAreas,
85
const
vectorField
& cellCtrs
86
);
87
88
//- Generate volume ratio field
89
static
tmp<scalarField>
volRatio
90
(
91
const
polyMesh
&
mesh
,
92
const
scalarField
& vol
93
);
94
95
};
96
97
98
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
99
100
}
// End namespace Foam
101
102
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
103
104
#endif
105
106
// ************************************************************************* //
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: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:53
points
const pointField & points
Definition:
gmvOutputHeader.H:1
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: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.