BUG: UListIO: byteSize overflowing on really big faceLists
[OpenFOAM-2.0.x.git] / src / lagrangian / dieselSpray / spray / sprayI.H
blob7f7aa209841f6e498a5645a13772fcd089b2ee3c
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.
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
19     for more details.
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/>.
24 \*---------------------------------------------------------------------------*/
27 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
29 inline const Foam::Time& Foam::spray::runTime() const
31     return runTime_;
35 inline const Foam::fvMesh& Foam::spray::mesh() const
37     return mesh_;
41 inline const Foam::volVectorField& Foam::spray::U() const
43     return U_;
47 inline const Foam::volScalarField& Foam::spray::rho() const
49     return rho_;
53 inline const Foam::volScalarField& Foam::spray::p() const
55     return p_;
59 inline const Foam::volScalarField& Foam::spray::T() const
61     return T_;
65 inline Foam::PtrList<Foam::injector>& Foam::spray::injectors()
67     return injectors_;
71 inline const Foam::PtrList<Foam::injector>& Foam::spray::injectors() const
73     return injectors_;
77 inline const Foam::atomizationModel& Foam::spray::atomization() const
79     return atomization_();
83 inline const Foam::breakupModel& Foam::spray::breakup() const
85     return breakupModel_();
89 inline const Foam::collisionModel& Foam::spray::collisions() const
91     return collisionModel_();
95 inline const Foam::dispersionModel& Foam::spray::dispersion() const
97     return dispersionModel_();
101 inline const Foam::dragModel& Foam::spray::drag() const
103     return drag_();
107 inline const Foam::evaporationModel& Foam::spray::evaporation() const
109     return evaporation_();
113 inline const Foam::heatTransferModel& Foam::spray::heatTransfer() const
115     return heatTransfer_();
119 inline const Foam::injectorModel& Foam::spray::injection() const
121     return injectorModel_();
125 inline const Foam::wallModel& Foam::spray::wall() const
127     return wall_();
131 inline Foam::tmp<Foam::volVectorField> Foam::spray::momentumSource() const
133     tmp<volVectorField> tsource
134     (
135         new volVectorField
136         (
137             IOobject
138             (
139                 "sms",
140                 runTime_.timeName(),
141                 mesh_,
142                 IOobject::NO_READ,
143                 IOobject::NO_WRITE
144             ),
145             mesh_,
146             dimensionedVector
147             (
148                 "zero",
149                 dimensionSet(1, -2, -2, 0, 0),
150                 vector::zero
151             )
152         )
153     );
155     tsource().internalField() = sms_/runTime_.deltaTValue()/mesh_.V();
157     return tsource;
161 inline Foam::tmp<Foam::volScalarField>
162 Foam::spray::evaporationSource(const label si) const
164     tmp<volScalarField> tsource
165     (
166         new volScalarField
167         (
168             IOobject
169             (
170                 "srhos",
171                 runTime_.timeName(),
172                 mesh_,
173                 IOobject::NO_READ,
174                 IOobject::NO_WRITE
175             ),
176             mesh_,
177             dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
178         )
179     );
181     if (isLiquidFuel_[si])
182     {
183         label fi = gasToLiquidIndex_[si];
184         tsource().internalField() = srhos_[fi]/runTime_.deltaTValue()/mesh_.V();
185     }
186     else
187     {
188         scalarField s(mesh_.nCells(), 0.0);
189         tsource().internalField() = s;
190     }
192     return tsource;
196 inline Foam::tmp<Foam::volScalarField> Foam::spray::heatTransferSource() const
198     tmp<volScalarField> tsource
199     (
200         new volScalarField
201         (
202             IOobject
203             (
204                 "shs",
205                 runTime_.timeName(),
206                 mesh_,
207                 IOobject::NO_READ,
208                 IOobject::NO_WRITE
209             ),
210             mesh_,
211             dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
212         )
213     );
215     tsource().internalField() = shs_/runTime_.deltaTValue()/mesh_.V();
217     return tsource;
221 inline Foam::cachedRandom& Foam::spray::rndGen()
223     return rndGen_;
227 inline Foam::label Foam::spray::subCycles() const
229     return subCycles_;
233 inline const Foam::vector& Foam::spray::g() const
235     return g_;
239 inline const Foam::liquidMixtureProperties& Foam::spray::fuels() const
241     return fuels_();
245 inline const Foam::PtrList<Foam::gasThermoPhysics>&
246 Foam::spray::gasProperties() const
248     return gasProperties_;
252 inline const Foam::basicMultiComponentMixture& Foam::spray::composition() const
254     return composition_;
258 inline const Foam::List<Foam::label>& Foam::spray::liquidToGasIndex() const
260     return liquidToGasIndex_;
264 inline const Foam::List<Foam::label>& Foam::spray::gasToLiquidIndex() const
266     return gasToLiquidIndex_;
270 inline const Foam::List<bool>& Foam::spray::isLiquidFuel() const
272     return isLiquidFuel_;
276 inline bool Foam::spray::twoD() const
278     return twoD_;
282 inline const Foam::vector& Foam::spray::axisOfSymmetry() const
284     return axisOfSymmetry_;
288 inline const Foam::vector& Foam::spray::axisOfWedge() const
290     return axisOfWedge_;
294 inline const Foam::vector& Foam::spray::axisOfWedgeNormal() const
296     return axisOfWedgeNormal_;
300 inline Foam::scalar Foam::spray::angleOfWedge() const
302     return angleOfWedge_;
306 inline const Foam::interpolation<Foam::vector>&
307 Foam::spray::UInterpolator() const
309     return UInterpolator_;
313 inline const Foam::interpolation<Foam::scalar>&
314 Foam::spray::rhoInterpolator() const
316     return rhoInterpolator_;
320 inline const Foam::interpolation<Foam::scalar>&
321 Foam::spray::pInterpolator() const
323     return pInterpolator_;
327 inline const Foam::interpolation<Foam::scalar>&
328 Foam::spray::TInterpolator() const
330     return TInterpolator_;
334 inline Foam::vectorField& Foam::spray::sms()
336     return sms_;
340 inline const Foam::vectorField& Foam::spray::sms() const
342     return sms_;
346 inline Foam::scalarField& Foam::spray::shs()
348     return shs_;
352 inline const Foam::scalarField& Foam::spray::shs() const
354     return shs_;
358 inline Foam::PtrList<Foam::scalarField>& Foam::spray::srhos()
360     return srhos_;
364 inline const Foam::PtrList<Foam::scalarField>& Foam::spray::srhos() const
366     return srhos_;
370 inline Foam::scalar Foam::spray::ambientPressure() const
372     return ambientPressure_;
376 inline Foam::scalar Foam::spray::ambientTemperature() const
378     return ambientTemperature_;
382 // ************************************************************************* //