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

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