OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

sprayI.H

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00028 
00029 namespace Foam
00030 {
00031 
00032 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00033 
00034 inline const Time& spray::runTime() const
00035 {
00036     return runTime_;
00037 }
00038 
00039 
00040 inline const fvMesh& spray::mesh() const
00041 {
00042     return mesh_;
00043 }
00044 
00045 
00046 inline const volVectorField& spray::U() const
00047 {
00048     return U_;
00049 }
00050 
00051 
00052 inline const volScalarField& spray::rho() const
00053 {
00054     return rho_;
00055 }
00056 
00057 
00058 inline const volScalarField& spray::p() const
00059 {
00060     return p_;
00061 }
00062 
00063 
00064 inline const volScalarField& spray::T() const
00065 {
00066     return T_;
00067 }
00068 
00069 
00070 inline PtrList<injector>& spray::injectors()
00071 {
00072     return injectors_;
00073 }
00074 
00075 
00076 inline const PtrList<injector>& spray::injectors() const
00077 {
00078     return injectors_;
00079 }
00080 
00081 
00082 inline const atomizationModel& spray::atomization() const
00083 {
00084     return atomization_;
00085 }
00086 
00087 
00088 inline const breakupModel& spray::breakup() const
00089 {
00090     return breakupModel_;
00091 }
00092 
00093 
00094 inline const collisionModel& spray::collisions() const
00095 {
00096     return collisionModel_;
00097 }
00098 
00099 
00100 inline const dispersionModel& spray::dispersion() const
00101 {
00102     return dispersionModel_;
00103 }
00104 
00105 
00106 inline const dragModel& spray::drag() const
00107 {
00108     return drag_;
00109 }
00110 
00111 
00112 inline const evaporationModel& spray::evaporation() const
00113 {
00114     return evaporation_;
00115 }
00116 
00117 
00118 inline const heatTransferModel& spray::heatTransfer() const
00119 {
00120     return heatTransfer_;
00121 }
00122 
00123 
00124 inline const injectorModel& spray::injection() const
00125 {
00126     return injectorModel_;
00127 }
00128 
00129 
00130 inline const wallModel& spray::wall() const
00131 {
00132     return wall_;
00133 }
00134 
00135 
00136 inline tmp<volVectorField> spray::momentumSource() const
00137 {
00138     tmp<volVectorField> tsource
00139     (
00140         new volVectorField
00141         (
00142             IOobject
00143             (
00144                 "sms",
00145                 runTime_.timeName(),
00146                 mesh_,
00147                 IOobject::NO_READ,
00148                 IOobject::NO_WRITE
00149             ),
00150             mesh_,
00151             dimensionedVector
00152             (
00153                 "zero",
00154                 dimensionSet(1, -2, -2, 0, 0),
00155                 vector::zero
00156             )
00157         )
00158     );
00159 
00160     tsource().internalField() = sms_/runTime_.deltaT().value()/mesh_.V();
00161 
00162     return tsource;
00163 }
00164 
00165 
00166 inline tmp<volScalarField> spray::evaporationSource(const label si) const
00167 {
00168     tmp<volScalarField> tsource
00169     (
00170         new volScalarField
00171         (
00172             IOobject
00173             (
00174                 "srhos",
00175                 runTime_.timeName(),
00176                 mesh_,
00177                 IOobject::NO_READ,
00178                 IOobject::NO_WRITE
00179             ),
00180             mesh_,
00181             dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
00182         )
00183     );
00184 
00185     if (isLiquidFuel_[si])
00186     {
00187         label fi = gasToLiquidIndex_[si];
00188         tsource().internalField() = srhos_[fi]/runTime_.deltaT().value()/mesh_.V();
00189     }
00190     else
00191     {
00192         scalarField s(mesh_.nCells(), 0.0);
00193         tsource().internalField() = s;
00194     }
00195 
00196     return tsource;
00197 }
00198 
00199 
00200 inline tmp<volScalarField> spray::heatTransferSource() const
00201 {
00202     tmp<volScalarField> tsource
00203     (
00204         new volScalarField
00205         (
00206             IOobject
00207             (
00208                 "shs",
00209                 runTime_.timeName(),
00210                 mesh_,
00211                 IOobject::NO_READ,
00212                 IOobject::NO_WRITE
00213             ),
00214             mesh_,
00215             dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
00216         )
00217     );
00218 
00219     tsource().internalField() = shs_/runTime_.deltaT().value()/mesh_.V();
00220 
00221     return tsource;
00222 }
00223 
00224 
00225 inline Random& spray::rndGen()
00226 {
00227     return rndGen_;
00228 }
00229 
00230 
00231 inline label spray::subCycles() const
00232 {
00233     return subCycles_;
00234 }
00235 
00236 
00237 inline const vector& spray::g() const
00238 {
00239     return g_;
00240 }
00241 
00242 
00243 inline const liquidMixture& spray::fuels() const
00244 {
00245     return fuels_;
00246 }
00247 
00248 
00249 inline const PtrList<gasThermoPhysics>& spray::gasProperties() const
00250 {
00251     return gasProperties_;
00252 }
00253 
00254 
00255 inline const basicMultiComponentMixture& spray::composition() const
00256 {
00257     return composition_;
00258 }
00259 
00260 
00261 inline const List<label>& spray::liquidToGasIndex() const
00262 {
00263     return liquidToGasIndex_;
00264 }
00265 
00266 
00267 inline const List<label>& spray::gasToLiquidIndex() const
00268 {
00269     return gasToLiquidIndex_;
00270 }
00271 
00272 
00273 inline const List<bool>& spray::isLiquidFuel() const
00274 {
00275     return isLiquidFuel_;
00276 }
00277 
00278 
00279 inline const bool& spray::twoD() const
00280 {
00281     return twoD_;
00282 }
00283 
00284 
00285 inline const vector& spray::axisOfSymmetry() const
00286 {
00287     return axisOfSymmetry_;
00288 }
00289 
00290 
00291 inline const vector& spray::axisOfWedge() const
00292 {
00293     return axisOfWedge_;
00294 }
00295 
00296 
00297 inline const vector& spray::axisOfWedgeNormal() const
00298 {
00299     return axisOfWedgeNormal_;
00300 }
00301 
00302 
00303 inline const scalar& spray::angleOfWedge() const
00304 {
00305     return angleOfWedge_;
00306 }
00307 
00308 
00309 inline const interpolation<vector>& spray::UInterpolator() const
00310 {
00311     return UInterpolator_;
00312 }
00313 
00314 
00315 inline const interpolation<scalar>& spray::rhoInterpolator() const
00316 {
00317     return rhoInterpolator_;
00318 }
00319 
00320 
00321 inline const interpolation<scalar>& spray::pInterpolator() const
00322 {
00323     return pInterpolator_;
00324 }
00325 
00326 
00327 inline const interpolation<scalar>& spray::TInterpolator() const
00328 {
00329     return TInterpolator_;
00330 }
00331 
00332 
00333 inline vectorField& spray::sms()
00334 {
00335     return sms_;
00336 }
00337 
00338 
00339 inline const vectorField& spray::sms() const
00340 {
00341     return sms_;
00342 }
00343 
00344 
00345 inline scalarField& spray::shs()
00346 {
00347     return shs_;
00348 }
00349 
00350 
00351 inline const scalarField& spray::shs() const
00352 {
00353     return shs_;
00354 }
00355 
00356 
00357 inline PtrList<scalarField>& spray::srhos()
00358 {
00359     return srhos_;
00360 }
00361 
00362 
00363 inline const PtrList<scalarField>& spray::srhos() const
00364 {
00365     return srhos_;
00366 }
00367 
00368 
00369 inline const scalar& spray::ambientPressure() const
00370 {
00371     return ambientPressure_;
00372 }
00373 
00374 
00375 inline const scalar& spray::ambientTemperature() const
00376 {
00377     return ambientTemperature_;
00378 }
00379 
00380 
00381 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00382 
00383 } // End namespace Foam
00384 
00385 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd