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

parcelFunctions.C

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 #include "parcel.H"
00027 #include <OpenFOAM/mathematicalConstants.H>
00028 
00029 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00030 
00031 namespace Foam
00032 {
00033 
00034 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00035 
00036 // The diameter based Reynolds number
00037 scalar parcel::Re
00038 (
00039     const vector& U,
00040     const scalar nu
00041 ) const
00042 {
00043     return mag(Urel(U))*d_/nu;
00044 }
00045 
00046 // The diameter based Reynolds number
00047 scalar parcel::Re
00048 (
00049     const scalar rho,
00050     const vector& U,
00051     const scalar mu
00052 ) const
00053 {
00054 
00055     return rho*mag(Urel(U))*d_/mu;
00056 }
00057 
00058 // The diameter based Weber number
00059 scalar parcel::We
00060 (
00061     const vector& U,
00062     const scalar rho,
00063     const scalar sigma
00064 ) const
00065 {
00066     return 0.5*rho*pow(mag(Urel(U)),2)*d_/sigma;
00067 }
00068 
00069 
00070 scalar parcel::Sc
00071 (
00072     const scalar mu,
00073     const scalar rho,
00074     const scalar massDiffusion
00075 ) const
00076 {
00077     return mu/(rho*massDiffusion);
00078 }
00079 
00080 
00081 scalar parcel::Sc
00082 (
00083     const scalar nu,
00084     const scalar massDiffusion
00085 ) const
00086 {
00087     return nu/massDiffusion;
00088 }
00089 
00090 
00091 scalar parcel::Pr
00092 (
00093     const scalar cp,
00094     const scalar mu,
00095     const scalar kappa
00096 ) const
00097 {
00098     return cp*mu/kappa;
00099 }
00100 
00101 
00102 scalar parcel::N(const scalar rho) const
00103 {
00104     return 6.0*m_/(rho*pow(d_, 3.0)*mathematicalConstant::pi);
00105 }
00106 
00107 
00108 scalar parcel::Vd() const
00109 {
00110     return pow(d_, 3.0)*mathematicalConstant::pi/6.0;
00111 }
00112 
00113 
00114 scalar parcel::V(const scalar rho) const
00115 {
00116     return m_/rho;
00117 }
00118 
00119 
00120 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
00121 
00122 } // End namespace Foam
00123 
00124 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines