1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright held by original author
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 the
13 Free Software Foundation; either version 2 of the License, or (at your
14 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, write to the Free Software Foundation,
23 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 Foam::kinematicParcelInjectionData
29 Container class to provide injection data for kinematic parcels
32 kinematicParcelInjectionData.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef kinematicParcelInjectionData_H
37 #define kinematicParcelInjectionData_H
39 #include "dictionary.H"
43 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
48 // Forward declaration of classes
49 class kinematicParcelInjectionData;
51 // Forward declaration of friend functions
56 const kinematicParcelInjectionData&
62 kinematicParcelInjectionData&
65 /*---------------------------------------------------------------------------*\
66 Class kinematicParcelInjectionData Declaration
67 \*---------------------------------------------------------------------------*/
69 class kinematicParcelInjectionData
87 //- Mass flow rate [kg/s]
93 //- Runtime type information
94 TypeName("kinematicParcelInjectionData");
99 kinematicParcelInjectionData();
101 //- Construct from dictionary
102 kinematicParcelInjectionData(const dictionary& dict);
104 //- Construct from Istream
105 kinematicParcelInjectionData(Istream& is);
109 virtual ~kinematicParcelInjectionData();
114 //- Return const access to the position
115 inline const point& x() const;
117 //- Return const access to the velocity
118 inline const vector& U() const;
120 //- Return const access to the diameter
121 inline scalar d() const;
123 //- Return const access to the density
124 inline scalar rho() const;
126 //- Return const access to the mass flow rate
127 inline scalar mDot() const;
132 //- Return access to the position
135 //- Return access to the velocity
138 //- Return access to the diameter
141 //- Return access to the density
142 inline scalar& rho();
144 //- Return access to the mass flow rate
145 inline scalar& mDot();
152 friend bool operator==
154 const kinematicParcelInjectionData& a,
155 const kinematicParcelInjectionData& b
162 "const kinematicParcelInjectionData&, "
163 "const kinematicParcelInjectionData&"
170 friend bool operator!=
172 const kinematicParcelInjectionData& a,
173 const kinematicParcelInjectionData& b
180 "const kinematicParcelInjectionData&, "
181 "const kinematicParcelInjectionData&"
189 friend Ostream& operator<<
192 const kinematicParcelInjectionData& data
196 friend Istream& operator>>
199 kinematicParcelInjectionData& data
204 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
206 } // End namespace Foam
208 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
210 #include "kinematicParcelInjectionDataI.H"
212 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
216 // ************************************************************************* //