fixed writing out entries in advective bc
[OpenFOAM-1.6-ext.git] / src / lagrangian / intermediate / submodels / Reacting / InjectionModel / ReactingLookupTableInjection / reactingParcelInjectionData.H
blob83de5a890ee409550e3752cea737bac3768005e5
1 /*---------------------------------------------------------------------------*\
2   =========                 |
3   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
4    \\    /   O peration     |
5     \\  /    A nd           | Copyright held by original author
6      \\/     M anipulation  |
7 -------------------------------------------------------------------------------
8 License
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
19     for more details.
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
25 Class
26     Foam::reactingParcelInjectionData
28 Description
29     Container class to provide injection data for reacting parcels
31 SourceFiles
32     reactingParcelInjectionData.C
34 \*---------------------------------------------------------------------------*/
36 #ifndef reactingParcelInjectionData_H
37 #define reactingParcelInjectionData_H
39 #include "thermoParcelInjectionData.H"
40 #include "scalarList.H"
42 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
44 namespace Foam
47 // Forward declaration of classes
48 class reactingParcelInjectionData;
50 // Forward declaration of friend functions
52 Ostream& operator<<
54     Ostream&,
55     const reactingParcelInjectionData&
58 Istream& operator>>
60     Istream&,
61     reactingParcelInjectionData&
64 /*---------------------------------------------------------------------------*\
65                Class reactingParcelInjectionData Declaration
66 \*---------------------------------------------------------------------------*/
68 class reactingParcelInjectionData
70     public thermoParcelInjectionData
72 protected:
74     // Parcel properties
76         //- List of mass fractions
77         scalarList Y_;
80 public:
82     //- Runtime type information
83     TypeName("reactingParcelInjectionData");
85     // Constructors
87         //- Null constructor
88         reactingParcelInjectionData();
90         //- Construct from dictionary
91         reactingParcelInjectionData(const dictionary& dict);
93         //- Construct from Istream
94         reactingParcelInjectionData(Istream& is);
97     //-Destructor
98     virtual ~reactingParcelInjectionData();
101     // Access
103         //- Return const access to the list of mass fractions
104         inline const scalarList& Y() const;
107     // Edit
109         //- Return access to the mass fractions
110         inline scalarList& Y();
113     // I-O
115         // Friend Operators
117             friend bool operator==
118             (
119                 const reactingParcelInjectionData& a,
120                 const reactingParcelInjectionData& b
121             )
122             {
123                 notImplemented
124                 (
125                     "operator=="
126                     "("
127                         "const reactingParcelInjectionData&, "
128                         "const reactingParcelInjectionData&"
129                     ")"
130                 );
132                 return false;
133             }
135             friend bool operator!=
136             (
137                 const reactingParcelInjectionData& a,
138                 const reactingParcelInjectionData& b
139             )
140             {
141                 notImplemented
142                 (
143                     "operator=="
144                     "("
145                         "const reactingParcelInjectionData&, "
146                         "const reactingParcelInjectionData&"
147                     ")"
148                 );
150                 return false;
151             }
153             //- Ostream operator
154             friend Ostream& operator<<
155             (
156                 Ostream& os,
157                 const reactingParcelInjectionData& data
158             );
160             //- Istream operator
161             friend Istream& operator>>
162             (
163                 Istream& is,
164                 reactingParcelInjectionData& data
165             );
169 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
171 } // End namespace Foam
173 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
175 #include "reactingParcelInjectionDataI.H"
177 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
179 #endif
181 // ************************************************************************* //