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
solidParticle
solidParticleI.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) 1991-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
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
27
28
inline
Foam::solidParticle::trackData::trackData
29
(
30
solidParticleCloud
& spc,
31
const
interpolationCellPoint<scalar>
& rhoInterp,
32
const
interpolationCellPoint<vector>
& UInterp,
33
const
interpolationCellPoint<scalar>
& nuInterp,
34
const
vector
& g
35
)
36
:
37
spc_(spc),
38
rhoInterp_(rhoInterp),
39
UInterp_(UInterp),
40
nuInterp_(nuInterp),
41
g_(g)
42
{}
43
44
45
inline
Foam::solidParticle::solidParticle
46
(
47
const
Cloud<solidParticle>
& c,
48
const
vector
& position,
49
const
label celli,
50
const
scalar
d
,
51
const
vector
&
U
52
)
53
:
54
Particle<solidParticle>
(c, position, celli),
55
d_(d),
56
U_(U)
57
{}
58
59
60
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61
62
inline
Foam::solidParticleCloud
&
Foam::solidParticle::trackData::spc
()
63
{
64
return
spc_;
65
}
66
67
inline
const
Foam::interpolationCellPoint<Foam::scalar>
&
68
Foam::solidParticle::trackData::rhoInterp
()
const
69
{
70
return
rhoInterp_;
71
}
72
73
inline
const
Foam::interpolationCellPoint<Foam::vector>
&
74
Foam::solidParticle::trackData::UInterp
()
const
75
{
76
return
UInterp_;
77
}
78
79
inline
const
Foam::interpolationCellPoint<Foam::scalar>
&
80
Foam::solidParticle::trackData::nuInterp
()
const
81
{
82
return
nuInterp_;
83
}
84
85
inline
const
Foam::vector
&
Foam::solidParticle::trackData::g
()
const
86
{
87
return
g_;
88
}
89
90
91
inline
Foam::scalar
Foam::solidParticle::d
()
const
92
{
93
return
d_;
94
}
95
96
inline
Foam::scalar
Foam::solidParticle::wallImpactDistance
(
const
vector
&)
const
97
{
98
return
0.5*d_;
99
}
100
101
inline
const
Foam::vector
&
Foam::solidParticle::U
()
const
102
{
103
return
U_;
104
}
105
106
107
// ************************ vim: set sw=4 sts=4 et: ************************ //