KinematicParcelTrackingDataI.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) 2011 OpenFOAM Foundation
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 template<class ParcelType>
27 template<class CloudType>
29 (
30  CloudType& cloud,
31  trackPart part
32 )
33 :
34  ParcelType::template TrackingData<CloudType>(cloud),
35  rhoInterp_
36  (
38  (
39  cloud.solution().interpolationSchemes(),
40  cloud.rho()
41  )
42  ),
43  UInterp_
44  (
46  (
47  cloud.solution().interpolationSchemes(),
48  cloud.U()
49  )
50  ),
51  muInterp_
52  (
54  (
55  cloud.solution().interpolationSchemes(),
56  cloud.mu()
57  )
58  ),
59  g_(cloud.g().value()),
60  part_(part)
61 {}
62 
63 
64 template<class ParcelType>
65 template<class CloudType>
68 {
69  return rhoInterp_();
70 }
71 
72 
73 template<class ParcelType>
74 template<class CloudType>
77 {
78  return UInterp_();
79 }
80 
81 
82 template<class ParcelType>
83 template<class CloudType>
86 {
87  return muInterp_();
88 }
89 
90 
91 template<class ParcelType>
92 template<class CloudType>
93 inline const Foam::vector&
95 {
96  return g_;
97 }
98 
99 
100 template<class ParcelType>
101 template<class CloudType>
105 {
106  return part_;
107 }
108 
109 
110 template<class ParcelType>
111 template<class CloudType>
115 {
116  return part_;
117 }
118 
119 
120 // ************************************************************************* //
Kinematic parcel class with rotational motion (as spherical particles only) and one/two-way coupling ...
const dimensionedVector & g
Abstract base class for interpolation.
Templated base class for dsmc cloud.
Definition: DSMCCloud.H:68