OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

HrenyaSinclairViscosity.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-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 #include "HrenyaSinclairViscosity.H"
00028 #include "mathematicalConstants.H"
00029 #include "addToRunTimeSelectionTable.H"
00030 
00031 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00032 
00033 namespace Foam
00034 {
00035 namespace kineticTheoryModels
00036 {
00037     defineTypeNameAndDebug(HrenyaSinclairViscosity, 0);
00038 
00039     addToRunTimeSelectionTable
00040     (
00041         viscosityModel,
00042         HrenyaSinclairViscosity,
00043         dictionary
00044     );
00045 }
00046 }
00047 
00048 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00049 
00050 Foam::kineticTheoryModels::HrenyaSinclairViscosity::HrenyaSinclairViscosity
00051 (
00052     const dictionary& dict
00053 )
00054 :
00055     viscosityModel(dict),
00056     coeffsDict_(dict.subDict(typeName + "Coeffs")),
00057     L_(coeffsDict_.lookup("L"))
00058 {}
00059 
00060 
00061 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00062 
00063 Foam::kineticTheoryModels::HrenyaSinclairViscosity::~HrenyaSinclairViscosity()
00064 {}
00065 
00066 
00067 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00068 
00069 Foam::tmp<Foam::volScalarField>
00070 Foam::kineticTheoryModels::HrenyaSinclairViscosity::mua
00071 (
00072     const volScalarField& alpha,
00073     const volScalarField& Theta,
00074     const volScalarField& g0,
00075     const dimensionedScalar& rhoa,
00076     const dimensionedScalar& da,
00077     const dimensionedScalar& e
00078 ) const
00079 {
00080     const scalar sqrtPi = sqrt(mathematicalConstant::pi);
00081 
00082     volScalarField lamda =
00083         scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_;
00084 
00085     return rhoa*da*sqrt(Theta)*
00086     (
00087         (4.0/5.0)*sqr(alpha)*g0*(1.0 + e)/sqrtPi
00088       + (1.0/15.0)*sqrtPi*g0*(1.0 + e)*(3.0*e - 1)*sqr(alpha)/(3.0-e)
00089       + (1.0/6.0)*sqrtPi*alpha*(0.5*lamda + 0.25*(3.0*e - 1.0))
00090        /(0.5*(3.0 - e)*lamda)
00091       + (10/96.0)*sqrtPi/((1.0 + e)*0.5*(3.0 - e)*g0*lamda)
00092     );
00093 }
00094 
00095 
00096 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd