1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
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
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
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
35 inline const Foam::fvMesh& Foam::spray::mesh() const
41 inline const Foam::volVectorField& Foam::spray::U() const
47 inline const Foam::volScalarField& Foam::spray::rho() const
53 inline const Foam::volScalarField& Foam::spray::p() const
59 inline const Foam::volScalarField& Foam::spray::T() const
65 inline Foam::PtrList<Foam::injector>& Foam::spray::injectors()
71 inline const Foam::PtrList<Foam::injector>& Foam::spray::injectors() const
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
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
131 inline Foam::tmp<Foam::volVectorField> Foam::spray::momentumSource() const
133 tmp<volVectorField> tsource
149 dimensionSet(1, -2, -2, 0, 0),
155 tsource().internalField() = sms_/runTime_.deltaTValue()/mesh_.V();
161 inline Foam::tmp<Foam::volScalarField>
162 Foam::spray::evaporationSource(const label si) const
164 tmp<volScalarField> tsource
177 dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
181 if (isLiquidFuel_[si])
183 label fi = gasToLiquidIndex_[si];
184 tsource().internalField() = srhos_[fi]/runTime_.deltaTValue()/mesh_.V();
188 scalarField s(mesh_.nCells(), 0.0);
189 tsource().internalField() = s;
196 inline Foam::tmp<Foam::volScalarField> Foam::spray::heatTransferSource() const
198 tmp<volScalarField> tsource
211 dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
215 tsource().internalField() = shs_/runTime_.deltaTValue()/mesh_.V();
221 inline Foam::cachedRandom& Foam::spray::rndGen()
227 inline Foam::label Foam::spray::subCycles() const
233 inline const Foam::vector& Foam::spray::g() const
239 inline const Foam::liquidMixtureProperties& Foam::spray::fuels() const
245 inline const Foam::PtrList<Foam::gasThermoPhysics>&
246 Foam::spray::gasProperties() const
248 return gasProperties_;
252 inline const Foam::basicMultiComponentMixture& Foam::spray::composition() const
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
282 inline const Foam::vector& Foam::spray::axisOfSymmetry() const
284 return axisOfSymmetry_;
288 inline const Foam::vector& Foam::spray::axisOfWedge() const
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()
340 inline const Foam::vectorField& Foam::spray::sms() const
346 inline Foam::scalarField& Foam::spray::shs()
352 inline const Foam::scalarField& Foam::spray::shs() const
358 inline Foam::PtrList<Foam::scalarField>& Foam::spray::srhos()
364 inline const Foam::PtrList<Foam::scalarField>& Foam::spray::srhos() const
370 inline Foam::scalar Foam::spray::ambientPressure() const
372 return ambientPressure_;
376 inline Foam::scalar Foam::spray::ambientTemperature() const
378 return ambientTemperature_;
382 // ************************************************************************* //