OpenFOAM logo
Open Source CFD Toolkit

parcelI.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 List<word>& parcel::fuelNames() const
00037 {
00038     return fuelNames_;
00039 }
00040 
00041 inline scalar parcel::d() const
00042 {
00043     return d_;
00044 }
00045 
00046 inline scalar& parcel::d()
00047 {
00048     return d_;
00049 }
00050 
00051 inline scalar parcel::T() const
00052 {
00053     return T_;
00054 }
00055 
00056 inline scalar& parcel::T()
00057 {
00058     return T_;
00059 }
00060 
00061 inline scalar parcel::m() const
00062 {
00063     return m_;
00064 }
00065 
00066 inline scalar& parcel::m()
00067 {
00068     return m_;
00069 }
00070 
00071 inline scalar parcel::dev() const
00072 {
00073     return y_;
00074 }
00075 
00076 inline scalar& parcel::dev()
00077 {
00078     return y_;
00079 }
00080 
00081 inline scalar parcel::ddev() const
00082 {
00083     return yDot_;
00084 }
00085 
00086 inline scalar& parcel::ddev()
00087 {
00088     return yDot_;
00089 }
00090 
00091 inline scalar parcel::ct() const
00092 {
00093     return ct_;
00094 }
00095 
00096 inline scalar& parcel::ct()
00097 {
00098     return ct_;
00099 }
00100 
00101 inline scalar& parcel::ms()
00102 {
00103     return ms_;
00104 }
00105 
00106 inline scalar parcel::ms() const
00107 {
00108     return ms_;
00109 }
00110 
00111 inline scalar& parcel::tTurb()
00112 {
00113     return tTurb_;
00114 }
00115 
00116 inline scalar parcel::tTurb() const
00117 {
00118     return tTurb_;
00119 }
00120    
00121 inline scalar& parcel::liquidCore()
00122 {
00123     return liquidCore_;
00124 }
00125 
00126 inline scalar parcel::liquidCore() const
00127 {
00128     return liquidCore_;
00129 }
00130 
00131 inline scalar& parcel::injector()
00132 {
00133     return injector_;
00134 }
00135 
00136 inline scalar parcel::injector() const
00137 {
00138     return injector_;
00139 }
00140    
00141 inline const vector& parcel::U() const
00142 {
00143     return U_;
00144 }
00145 
00146 inline vector& parcel::U()
00147 {
00148     return U_;
00149 }
00150 
00151 inline const vector& parcel::Uturb() const
00152 {
00153     return Uturb_;
00154 }
00155 
00156 inline vector& parcel::Uturb()
00157 {
00158     return Uturb_;
00159 }
00160 
00161 inline const vector& parcel::n() const
00162 {
00163     return n_;
00164 }
00165 
00166 inline vector& parcel::n()
00167 {
00168     return n_;
00169 }
00170 
00171 inline const scalarField& parcel::X() const
00172 {
00173     return X_;
00174 }
00175 
00176 inline scalarField& parcel::X()
00177 {
00178     return X_;
00179 }
00180 
00181 inline scalar& parcel::tMom()
00182 {
00183     return tMom_;
00184 }
00185 
00186 inline scalar parcel::tMom() const
00187 {
00188     return tMom_;
00189 }
00190 
00191 inline scalar& parcel::t0()
00192 {
00193     return t0_;
00194 }
00195 
00196 inline scalar parcel::t0() const
00197 {
00198     return t0_;
00199 }
00200 
00201 inline scalar& parcel::tEnd()
00202 {
00203     return tEnd_;
00204 }
00205 
00206 inline scalar parcel::tEnd() const
00207 {
00208     return tEnd_;
00209 }
00210 
00211 inline vector parcel::Urel(const vector& U) const
00212 {
00213     return U_ - U;
00214 }
00215 
00216 inline void parcel::correctNormal
00217 (
00218     const vector& sym
00219 )
00220 {
00221     scalar d = position() & sym;
00222     n_ = position() - d*sym;
00223     n_ /= mag(n_);
00224 }
00225 
00226 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00227 
00228 } // End namespace Foam
00229 
00230 // ************************************************************************* //
For further information go to www.openfoam.org