1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend 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 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
31 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
33 inline const Time& spray::runTime() const
39 inline const fvMesh& spray::mesh() const
45 inline const volVectorField& spray::U() const
51 inline const volScalarField& spray::rho() const
57 inline const volScalarField& spray::p() const
63 inline const volScalarField& spray::T() const
69 inline PtrList<injector>& spray::injectors()
75 inline const PtrList<injector>& spray::injectors() const
81 inline const atomizationModel& spray::atomization() const
87 inline const breakupModel& spray::breakup() const
93 inline const collisionModel& spray::collisions() const
95 return collisionModel_;
99 inline const dispersionModel& spray::dispersion() const
101 return dispersionModel_;
105 inline const dragModel& spray::drag() const
111 inline const evaporationModel& spray::evaporation() const
117 inline const heatTransferModel& spray::heatTransfer() const
119 return heatTransfer_;
123 inline const injectorModel& spray::injection() const
125 return injectorModel_;
129 inline const wallModel& spray::wall() const
135 inline tmp<volVectorField> spray::momentumSource() const
137 tmp<volVectorField> tsource
153 dimensionSet(1, -2, -2, 0, 0),
159 tsource().internalField() = sms_/runTime_.deltaT().value()/mesh_.V();
165 inline tmp<volScalarField> spray::evaporationSource(const label si) const
167 tmp<volScalarField> tsource
180 dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
184 if (isLiquidFuel_[si])
186 label fi = gasToLiquidIndex_[si];
187 tsource().internalField() =
188 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 label spray::sprayIterate() const
239 return sprayIterate_;
243 inline scalar spray::sprayRelaxFactor() const
245 return sprayRelaxFactor_;
249 inline scalar spray::minimumParcelMass() const
251 return minimumParcelMass_;
255 inline const vector& spray::g() const
261 inline const liquidMixture& spray::fuels() const
267 inline const PtrList<gasThermoPhysics>& spray::gasProperties() const
269 return gasProperties_;
273 inline const basicMultiComponentMixture& spray::composition() const
279 inline const List<label>& spray::liquidToGasIndex() const
281 return liquidToGasIndex_;
285 inline const List<label>& spray::gasToLiquidIndex() const
287 return gasToLiquidIndex_;
291 inline const List<bool>& spray::isLiquidFuel() const
293 return isLiquidFuel_;
297 inline const bool& spray::twoD() const
303 inline const vector& spray::axisOfSymmetry() const
305 return axisOfSymmetry_;
309 inline const vector& spray::axisOfWedge() const
315 inline const vector& spray::axisOfWedgeNormal() const
317 return axisOfWedgeNormal_;
321 inline const scalar& spray::angleOfWedge() const
323 return angleOfWedge_;
327 inline const interpolation<vector>& spray::UInterpolator() const
329 return UInterpolator_;
333 inline const interpolation<scalar>& spray::rhoInterpolator() const
335 return rhoInterpolator_;
339 inline const interpolation<scalar>& spray::pInterpolator() const
341 return pInterpolator_;
345 inline const interpolation<scalar>& spray::TInterpolator() const
347 return TInterpolator_;
351 inline vectorField& spray::sms()
357 inline const vectorField& spray::sms() const
363 inline scalarField& spray::shs()
369 inline const scalarField& spray::shs() const
375 inline PtrList<scalarField>& spray::srhos()
381 inline const PtrList<scalarField>& spray::srhos() const
387 inline const scalar& spray::ambientPressure() const
389 return ambientPressure_;
393 inline const scalar& spray::ambientTemperature() const
395 return ambientTemperature_;
399 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
401 } // End namespace Foam
403 // ************************************************************************* //