OpenFOAM: API Guide
v1912
The open source CFD toolbox
cellI.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) 2011 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
\*---------------------------------------------------------------------------*/
27
28
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
29
30
inline
Foam::cell::cell
()
31
{}
32
33
34
inline
Foam::cell::cell
(
const
label
sz)
35
:
36
labelList
(sz, -1)
37
{}
38
39
40
inline
Foam::cell::cell
(
const
labelUList
& lst)
41
:
42
labelList
(lst)
43
{}
44
45
46
inline
Foam::cell::cell
(
labelList
&& lst)
47
:
48
labelList
(std::move(lst))
49
{}
50
51
52
inline
Foam::cell::cell
(
Istream
& is)
53
:
54
labelList
(is)
55
{}
56
57
58
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
59
60
inline
Foam::label
Foam::cell::nFaces
()
const
61
{
62
return
size();
63
}
64
65
66
// * * * * * * * * * * * * * * Global Operators * * * * * * * * * * * * * * //
67
68
inline
bool
Foam::operator!=
(
const
cell
& a,
const
cell
&
b
)
69
{
70
return
!(a ==
b
);
71
}
72
73
74
// ************************************************************************* //
Foam::cell::cell
cell()
Construct null.
Definition:
cellI.H:30
Foam::operator!=
bool operator!=(const eddy &a, const eddy &b)
Definition:
eddy.H:235
Foam::label
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Definition:
label.H:62
Foam::constant::physicoChemical::b
const dimensionedScalar b
Wien displacement law constant: default SI units: [m.K].
Definition:
createFields.H:27
Foam::Istream
An Istream is an abstract base class for all input systems (streams, files, token lists etc)....
Definition:
Istream.H:61
Foam::cell::nFaces
label nFaces() const
Return number of faces.
Definition:
cellI.H:60
Foam::List< label >
Foam::UList< label >
Foam::cell
A cell is defined as a list of faces with extra functionality.
Definition:
cell.H:54
src
OpenFOAM
meshes
meshShapes
cell
cellI.H
Generated by
1.8.17
OPENFOAM® is a registered
trademark
of OpenCFD Ltd.