OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

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