FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

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-2010 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
00013     the Free Software Foundation, either version 3 of the License, or
00014     (at your 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, see <http://www.gnu.org/licenses/>.
00023 
00024 \*---------------------------------------------------------------------------*/
00025 
00026 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00027 
00028 namespace Foam
00029 {
00030 
00031 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00032 
00033 inline const Time& spray::runTime() const
00034 {
00035     return runTime_;
00036 }
00037 
00038 
00039 inline const fvMesh& spray::mesh() const
00040 {
00041     return mesh_;
00042 }
00043 
00044 
00045 inline const volVectorField& spray::U() const
00046 {
00047     return U_;
00048 }
00049 
00050 
00051 inline const volScalarField& spray::rho() const
00052 {
00053     return rho_;
00054 }
00055 
00056 
00057 inline const volScalarField& spray::p() const
00058 {
00059     return p_;
00060 }
00061 
00062 
00063 inline const volScalarField& spray::T() const
00064 {
00065     return T_;
00066 }
00067 
00068 
00069 inline PtrList<injector>& spray::injectors()
00070 {
00071     return injectors_;
00072 }
00073 
00074 
00075 inline const PtrList<injector>& spray::injectors() const
00076 {
00077     return injectors_;
00078 }
00079 
00080 
00081 inline const atomizationModel& spray::atomization() const
00082 {
00083     return atomization_;
00084 }
00085 
00086 
00087 inline const breakupModel& spray::breakup() const
00088 {
00089     return breakupModel_;
00090 }
00091 
00092 
00093 inline const collisionModel& spray::collisions() const
00094 {
00095     return collisionModel_;
00096 }
00097 
00098 
00099 inline const dispersionModel& spray::dispersion() const
00100 {
00101     return dispersionModel_;
00102 }
00103 
00104 
00105 inline const dragModel& spray::drag() const
00106 {
00107     return drag_;
00108 }
00109 
00110 
00111 inline const evaporationModel& spray::evaporation() const
00112 {
00113     return evaporation_;
00114 }
00115 
00116 
00117 inline const heatTransferModel& spray::heatTransfer() const
00118 {
00119     return heatTransfer_;
00120 }
00121 
00122 
00123 inline const injectorModel& spray::injection() const
00124 {
00125     return injectorModel_;
00126 }
00127 
00128 
00129 inline const wallModel& spray::wall() const
00130 {
00131     return wall_;
00132 }
00133 
00134 
00135 inline tmp<volVectorField> spray::momentumSource() const
00136 {
00137     tmp<volVectorField> tsource
00138     (
00139         new volVectorField
00140         (
00141             IOobject
00142             (
00143                 "sms",
00144                 runTime_.timeName(),
00145                 mesh_,
00146                 IOobject::NO_READ,
00147                 IOobject::NO_WRITE
00148             ),
00149             mesh_,
00150             dimensionedVector
00151             (
00152                 "zero",
00153                 dimensionSet(1, -2, -2, 0, 0),
00154                 vector::zero
00155             )
00156         )
00157     );
00158 
00159     tsource().internalField() = sms_/runTime_.deltaT().value()/mesh_.V();
00160 
00161     return tsource;
00162 }
00163 
00164 
00165 inline tmp<volScalarField> spray::evaporationSource(const label si) const
00166 {
00167     tmp<volScalarField> tsource
00168     (
00169         new volScalarField
00170         (
00171             IOobject
00172             (
00173                 "srhos",
00174                 runTime_.timeName(),
00175                 mesh_,
00176                 IOobject::NO_READ,
00177                 IOobject::NO_WRITE
00178             ),
00179             mesh_,
00180             dimensionedScalar("zero", dimensionSet(1, -3, -1, 0, 0), 0.0)
00181         )
00182     );
00183 
00184     if (isLiquidFuel_[si])
00185     {
00186         label fi = gasToLiquidIndex_[si];
00187         tsource().internalField() = srhos_[fi]/runTime_.deltaT().value()/mesh_.V();
00188     }
00189     else
00190     {
00191         scalarField s(mesh_.nCells(), 0.0);
00192         tsource().internalField() = s;
00193     }
00194 
00195     return tsource;
00196 }
00197 
00198 
00199 inline tmp<volScalarField> spray::heatTransferSource() const
00200 {
00201     tmp<volScalarField> tsource
00202     (
00203         new volScalarField
00204         (
00205             IOobject
00206             (
00207                 "shs",
00208                 runTime_.timeName(),
00209                 mesh_,
00210                 IOobject::NO_READ,
00211                 IOobject::NO_WRITE
00212             ),
00213             mesh_,
00214             dimensionedScalar("zero", dimensionSet(1, -1, -3, 0, 0), 0.0)
00215         )
00216     );
00217 
00218     tsource().internalField() = shs_/runTime_.deltaT().value()/mesh_.V();
00219 
00220     return tsource;
00221 }
00222 
00223 
00224 inline Random& spray::rndGen()
00225 {
00226     return rndGen_;
00227 }
00228 
00229 
00230 inline label spray::subCycles() const
00231 {
00232     return subCycles_;
00233 }
00234 
00235 
00236 inline const vector& spray::g() const
00237 {
00238     return g_;
00239 }
00240 
00241 
00242 inline const liquidMixture& spray::fuels() const
00243 {
00244     return fuels_;
00245 }
00246 
00247 
00248 inline const PtrList<gasThermoPhysics>& spray::gasProperties() const
00249 {
00250     return gasProperties_;
00251 }
00252 
00253 
00254 inline const basicMultiComponentMixture& spray::composition() const
00255 {
00256     return composition_;
00257 }
00258 
00259 
00260 inline const List<label>& spray::liquidToGasIndex() const
00261 {
00262     return liquidToGasIndex_;
00263 }
00264 
00265 
00266 inline const List<label>& spray::gasToLiquidIndex() const
00267 {
00268     return gasToLiquidIndex_;
00269 }
00270 
00271 
00272 inline const List<bool>& spray::isLiquidFuel() const
00273 {
00274     return isLiquidFuel_;
00275 }
00276 
00277 
00278 inline const bool& spray::twoD() const
00279 {
00280     return twoD_;
00281 }
00282 
00283 
00284 inline const vector& spray::axisOfSymmetry() const
00285 {
00286     return axisOfSymmetry_;
00287 }
00288 
00289 
00290 inline const vector& spray::axisOfWedge() const
00291 {
00292     return axisOfWedge_;
00293 }
00294 
00295 
00296 inline const vector& spray::axisOfWedgeNormal() const
00297 {
00298     return axisOfWedgeNormal_;
00299 }
00300 
00301 
00302 inline const scalar& spray::angleOfWedge() const
00303 {
00304     return angleOfWedge_;
00305 }
00306 
00307 
00308 inline const interpolation<vector>& spray::UInterpolator() const
00309 {
00310     return UInterpolator_;
00311 }
00312 
00313 
00314 inline const interpolation<scalar>& spray::rhoInterpolator() const
00315 {
00316     return rhoInterpolator_;
00317 }
00318 
00319 
00320 inline const interpolation<scalar>& spray::pInterpolator() const
00321 {
00322     return pInterpolator_;
00323 }
00324 
00325 
00326 inline const interpolation<scalar>& spray::TInterpolator() const
00327 {
00328     return TInterpolator_;
00329 }
00330 
00331 
00332 inline vectorField& spray::sms()
00333 {
00334     return sms_;
00335 }
00336 
00337 
00338 inline const vectorField& spray::sms() const
00339 {
00340     return sms_;
00341 }
00342 
00343 
00344 inline scalarField& spray::shs()
00345 {
00346     return shs_;
00347 }
00348 
00349 
00350 inline const scalarField& spray::shs() const
00351 {
00352     return shs_;
00353 }
00354 
00355 
00356 inline PtrList<scalarField>& spray::srhos()
00357 {
00358     return srhos_;
00359 }
00360 
00361 
00362 inline const PtrList<scalarField>& spray::srhos() const
00363 {
00364     return srhos_;
00365 }
00366 
00367 
00368 inline const scalar& spray::ambientPressure() const
00369 {
00370     return ambientPressure_;
00371 }
00372 
00373 
00374 inline const scalar& spray::ambientTemperature() const
00375 {
00376     return ambientTemperature_;
00377 }
00378 
00379 
00380 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00381 
00382 } // End namespace Foam
00383 
00384 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines