OpenFOAM logo
Open Source CFD Toolkit

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