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