1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2010-2010 OpenCFD Ltd.
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
25 Foam::kinematicParcelInjectionData
28 Container class to provide injection data for kinematic parcels
31 kinematicParcelInjectionData.C
33 \*---------------------------------------------------------------------------*/
35 #ifndef kinematicParcelInjectionData_H
36 #define kinematicParcelInjectionData_H
38 #include "dictionary.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
47 // Forward declaration of classes
48 class kinematicParcelInjectionData;
50 // Forward declaration of friend functions
55 const kinematicParcelInjectionData&
61 kinematicParcelInjectionData&
64 /*---------------------------------------------------------------------------*\
65 Class kinematicParcelInjectionData Declaration
66 \*---------------------------------------------------------------------------*/
68 class kinematicParcelInjectionData
86 //- Mass flow rate [kg/s]
92 //- Runtime type information
93 TypeName("kinematicParcelInjectionData");
98 kinematicParcelInjectionData();
100 //- Construct from dictionary
101 kinematicParcelInjectionData(const dictionary& dict);
103 //- Construct from Istream
104 kinematicParcelInjectionData(Istream& is);
108 virtual ~kinematicParcelInjectionData();
113 //- Return const access to the position
114 inline const point& x() const;
116 //- Return const access to the velocity
117 inline const vector& U() const;
119 //- Return const access to the diameter
120 inline scalar d() const;
122 //- Return const access to the density
123 inline scalar rho() const;
125 //- Return const access to the mass flow rate
126 inline scalar mDot() const;
131 //- Return access to the position
134 //- Return access to the velocity
137 //- Return access to the diameter
140 //- Return access to the density
141 inline scalar& rho();
143 //- Return access to the mass flow rate
144 inline scalar& mDot();
151 friend bool operator==
153 const kinematicParcelInjectionData& a,
154 const kinematicParcelInjectionData& b
161 "const kinematicParcelInjectionData&, "
162 "const kinematicParcelInjectionData&"
169 friend bool operator!=
171 const kinematicParcelInjectionData& a,
172 const kinematicParcelInjectionData& b
179 "const kinematicParcelInjectionData&, "
180 "const kinematicParcelInjectionData&"
188 friend Ostream& operator<<
191 const kinematicParcelInjectionData& data
195 friend Istream& operator>>
198 kinematicParcelInjectionData& data
203 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
205 } // End namespace Foam
207 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
209 #include "kinematicParcelInjectionDataI.H"
211 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
215 // ************************************************************************* //