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
25 \*---------------------------------------------------------------------------*/
27 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
32 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
34 inline const Time& spray::runTime() const
40 inline const fvMesh& spray::mesh() const
46 inline const volVectorField& spray::U() const
52 inline const volScalarField& spray::rho() const
58 inline const volScalarField& spray::p() const
64 inline const volScalarField& spray::T() const
70 inline PtrList<injector>& spray::injectors()
76 inline const PtrList<injector>& spray::injectors() const
82 inline const atomizationModel& spray::atomization() const
88 inline const breakupModel& spray::breakup() const
94 inline const collisionModel& spray::collisions() const
96 return collisionModel_;
100 inline const dispersionModel& spray::dispersion() const
102 return dispersionModel_;
106 inline const dragModel& spray::drag() const
112 inline const evaporationModel& spray::evaporation() const
118 inline const heatTransferModel& spray::heatTransfer() const
120 return heatTransfer_;
124 inline const injectorModel& spray::injection() const
126 return injectorModel_;
130 inline const wallModel& spray::wall() const
136 inline tmp<volVectorField> spray::momentumSource() const
138 tmp<volVectorField> tsource
154 dimensionSet(1, -2, -2, 0, 0),
160 tsource().internalField() = sms_/runTime_.deltaT().value()/mesh_.V();
166 inline tmp<volScalarField> spray::evaporationSource(const label si) const
168 tmp<volScalarField> tsource
181 dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
185 if (isLiquidFuel_[si])
187 label fi = gasToLiquidIndex_[si];
188 tsource().internalField() =
189 srhos_[fi]/runTime_.deltaT().value()/mesh_.V();
193 scalarField s(mesh_.nCells(), 0.0);
194 tsource().internalField() = s;
201 inline tmp<volScalarField> spray::heatTransferSource() const
203 tmp<volScalarField> tsource
216 dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
220 tsource().internalField() = shs_/runTime_.deltaT().value()/mesh_.V();
226 inline Random& spray::rndGen()
232 inline label spray::subCycles() const
238 inline label spray::sprayIterate() const
240 return sprayIterate_;
244 inline scalar spray::sprayRelaxFactor() const
246 return sprayRelaxFactor_;
250 inline scalar spray::minimumParcelMass() const
252 return minimumParcelMass_;
256 inline const vector& spray::g() const
262 inline const liquidMixture& spray::fuels() const
268 inline const PtrList<gasThermoPhysics>& spray::gasProperties() const
270 return gasProperties_;
274 inline const basicMultiComponentMixture& spray::composition() const
280 inline const List<label>& spray::liquidToGasIndex() const
282 return liquidToGasIndex_;
286 inline const List<label>& spray::gasToLiquidIndex() const
288 return gasToLiquidIndex_;
292 inline const List<bool>& spray::isLiquidFuel() const
294 return isLiquidFuel_;
298 inline const bool& spray::twoD() const
304 inline const vector& spray::axisOfSymmetry() const
306 return axisOfSymmetry_;
310 inline const vector& spray::axisOfWedge() const
316 inline const vector& spray::axisOfWedgeNormal() const
318 return axisOfWedgeNormal_;
322 inline const scalar& spray::angleOfWedge() const
324 return angleOfWedge_;
328 inline const interpolation<vector>& spray::UInterpolator() const
330 return UInterpolator_;
334 inline const interpolation<scalar>& spray::rhoInterpolator() const
336 return rhoInterpolator_;
340 inline const interpolation<scalar>& spray::pInterpolator() const
342 return pInterpolator_;
346 inline const interpolation<scalar>& spray::TInterpolator() const
348 return TInterpolator_;
352 inline vectorField& spray::sms()
358 inline const vectorField& spray::sms() const
364 inline scalarField& spray::shs()
370 inline const scalarField& spray::shs() const
376 inline PtrList<scalarField>& spray::srhos()
382 inline const PtrList<scalarField>& spray::srhos() const
388 inline const scalar& spray::ambientPressure() const
390 return ambientPressure_;
394 inline const scalar& spray::ambientTemperature() const
396 return ambientTemperature_;
400 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
402 } // End namespace Foam
404 // ************************************************************************* //