1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 1991-2009 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 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() = srhos_[fi]/runTime_.deltaT().value()/mesh_.V();
192 scalarField s(mesh_.nCells(), 0.0);
193 tsource().internalField() = s;
200 inline tmp<volScalarField> spray::heatTransferSource() const
202 tmp<volScalarField> tsource
215 dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
219 tsource().internalField() = shs_/runTime_.deltaT().value()/mesh_.V();
225 inline Random& spray::rndGen()
231 inline label spray::subCycles() const
237 inline const vector& spray::g() const
243 inline const liquidMixture& spray::fuels() const
249 inline const PtrList<gasThermoPhysics>& spray::gasProperties() const
251 return gasProperties_;
255 inline const basicMultiComponentMixture& spray::composition() const
261 inline const List<label>& spray::liquidToGasIndex() const
263 return liquidToGasIndex_;
267 inline const List<label>& spray::gasToLiquidIndex() const
269 return gasToLiquidIndex_;
273 inline const List<bool>& spray::isLiquidFuel() const
275 return isLiquidFuel_;
279 inline const bool& spray::twoD() const
285 inline const vector& spray::axisOfSymmetry() const
287 return axisOfSymmetry_;
291 inline const vector& spray::axisOfWedge() const
297 inline const vector& spray::axisOfWedgeNormal() const
299 return axisOfWedgeNormal_;
303 inline const scalar& spray::angleOfWedge() const
305 return angleOfWedge_;
309 inline const interpolation<vector>& spray::UInterpolator() const
311 return UInterpolator_;
315 inline const interpolation<scalar>& spray::rhoInterpolator() const
317 return rhoInterpolator_;
321 inline const interpolation<scalar>& spray::pInterpolator() const
323 return pInterpolator_;
327 inline const interpolation<scalar>& spray::TInterpolator() const
329 return TInterpolator_;
333 inline vectorField& spray::sms()
339 inline const vectorField& spray::sms() const
345 inline scalarField& spray::shs()
351 inline const scalarField& spray::shs() const
357 inline PtrList<scalarField>& spray::srhos()
363 inline const PtrList<scalarField>& spray::srhos() const
369 inline const scalar& spray::ambientPressure() const
371 return ambientPressure_;
375 inline const scalar& spray::ambientTemperature() const
377 return ambientTemperature_;
381 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
383 } // End namespace Foam
385 // ************************ vim: set sw=4 sts=4 et: ************************ //