All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
KinematicParcelTrackingDataI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2020 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 TrackCloudType>
29 (
30  const TrackCloudType& cloud
31 )
32 :
33  ParcelType::trackingData(cloud),
34  rhoInterp_
35  (
37  (
38  cloud.solution().interpolationSchemes(),
39  cloud.rho()
40  )
41  ),
42  UInterp_
43  (
45  (
46  cloud.solution().interpolationSchemes(),
47  cloud.U()
48  )
49  ),
50  muInterp_
51  (
53  (
54  cloud.solution().interpolationSchemes(),
55  cloud.mu()
56  )
57  ),
58  rhoc_(Zero),
59  Uc_(Zero),
60  muc_(Zero),
61  g_(cloud.g().value())
62 {}
63 
64 
65 template<class ParcelType>
68 {
69  return rhoInterp_();
70 }
71 
72 
73 template<class ParcelType>
76 {
77  return UInterp_();
78 }
79 
80 
81 template<class ParcelType>
84 {
85  return muInterp_();
86 }
87 
88 
89 template<class ParcelType>
90 inline const Foam::vector&
92 {
93  return g_;
94 }
95 
96 
97 template<class ParcelType>
98 inline Foam::scalar
100 {
101  return rhoc_;
102 }
103 
104 
105 template<class ParcelType>
107 {
108  return rhoc_;
109 }
110 
111 
112 template<class ParcelType>
113 inline const Foam::vector&
115 {
116  return Uc_;
117 }
118 
119 
120 template<class ParcelType>
122 {
123  return Uc_;
124 }
125 
126 
127 template<class ParcelType>
129 {
130  return muc_;
131 }
132 
133 
134 template<class ParcelType>
136 {
137  return muc_;
138 }
139 
140 
141 // ************************************************************************* //
const interpolation< vector > & UInterp() const
Return const access to the interpolator for continuous.
static const zero Zero
Definition: zero.H:97
scalar rhoc() const
Return the continuous phase density.
trackingData(const TrackCloudType &cloud)
Construct from components.
scalar muc() const
Return the continuous phase viscosity.
const interpolation< scalar > & rhoInterp() const
Return const access to the interpolator for continuous.
Abstract base class for interpolation.
const interpolation< scalar > & muInterp() const
Return const access to the interpolator for continuous.
const vector & Uc() const
Return the continuous phase velocity.