Home
Downloads
Documentation
Installation
User Guide
man-pages
API Documentation
README
Release Notes
Changes
License
Support
SourceForge Project
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
src
lagrangian
molecularDynamics
molecule
interactionLists
referredCell
referredCellI.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 | Copyright (C) 2008-2010 OpenCFD Ltd.
6
\\/ M anipulation |
7
-------------------------------------------------------------------------------
8
License
9
This file is part of OpenFOAM.
10
11
OpenFOAM is free software: you can redistribute it and/or modify it
12
under the terms of the GNU General Public License as published by
13
the Free Software Foundation, either version 3 of the License, or
14
(at your option) any later version.
15
16
OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18
FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19
for more details.
20
21
You should have received a copy of the GNU General Public License
22
along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23
24
\*---------------------------------------------------------------------------*/
25
26
namespace
Foam
27
{
28
29
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
30
31
inline
label
referredCell::sourceProc
()
const
32
{
33
return
sourceProc_;
34
}
35
36
37
inline
label
referredCell::sourceCell
()
const
38
{
39
return
sourceCell_;
40
}
41
42
43
inline
const
vector
&
referredCell::offset
()
const
44
{
45
return
offset_;
46
}
47
48
49
inline
const
tensor
&
referredCell::rotation
()
const
50
{
51
return
rotation_;
52
}
53
54
55
inline
const
vectorList
&
referredCell::vertexPositions
()
const
56
{
57
return
vertexPositions_;
58
}
59
60
61
inline
const
edgeList
&
referredCell::edges
()
const
62
{
63
return
edges_;
64
}
65
66
67
inline
const
labelListList
&
referredCell::faces
()
const
68
{
69
return
faces_;
70
}
71
72
73
inline
const
vectorList
&
referredCell::faceCentres
()
const
74
{
75
return
faceCentres_;
76
}
77
78
79
inline
const
vectorList
&
referredCell::faceAreas
()
const
80
{
81
return
faceAreas_;
82
}
83
84
85
inline
labelList
&
referredCell::realCells
()
86
{
87
return
realCellsForInteraction_;
88
}
89
90
91
inline
const
labelList
&
referredCell::realCellsForInteraction
()
const
92
{
93
return
realCellsForInteraction_;
94
}
95
96
97
// * * * * * * * * * * * * * * * Friend Operators * * * * * * * * * * * * * //
98
99
inline
bool
operator
==
100
(
101
const
referredCell
& a,
102
const
referredCell
&
b
103
)
104
{
105
return
const_cast<
referredCell
&
>
(a).duplicate
106
(
107
const_cast<const referredCell&>(
b
)
108
);
109
}
110
111
112
inline
bool
operator
!=
113
(
114
const
referredCell
& a,
115
const
referredCell
&
b
116
)
117
{
118
return
!(a ==
b
);
119
}
120
121
122
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
123
124
}
// End namespace Foam
125
126
// ************************ vim: set sw=4 sts=4 et: ************************ //