FreeFOAM The Cross-Platform CFD Toolkit
HrenyaSinclairViscosity.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | Copyright (C) 1991-2010 OpenCFD Ltd.
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8 License
9  This file is part of OpenFOAM.
10 
11  OpenFOAM is free software: you can redistribute it and/or modify it
12  under the terms of the GNU General Public License as published by
13  the Free Software Foundation, either version 3 of the License, or
14  (at your option) any later version.
15 
16  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
17  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19  for more details.
20 
21  You should have received a copy of the GNU General Public License
22  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
23 
24 \*---------------------------------------------------------------------------*/
25 
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace kineticTheoryModels
35 {
36  defineTypeNameAndDebug(HrenyaSinclairViscosity, 0);
37 
39  (
40  viscosityModel,
41  HrenyaSinclairViscosity,
42  dictionary
43  );
44 }
45 }
46 
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
48 
50 (
51  const dictionary& dict
52 )
53 :
54  viscosityModel(dict),
55  coeffsDict_(dict.subDict(typeName + "Coeffs")),
56  L_(coeffsDict_.lookup("L"))
57 {}
58 
59 
60 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
61 
63 {}
64 
65 
66 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
67 
70 (
71  const volScalarField& alpha,
72  const volScalarField& Theta,
73  const volScalarField& g0,
74  const dimensionedScalar& rhoa,
75  const dimensionedScalar& da,
76  const dimensionedScalar& e
77 ) const
78 {
79  const scalar sqrtPi = sqrt(mathematicalConstant::pi);
80 
81  volScalarField lamda =
82  scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_;
83 
84  return rhoa*da*sqrt(Theta)*
85  (
86  (4.0/5.0)*sqr(alpha)*g0*(1.0 + e)/sqrtPi
87  + (1.0/15.0)*sqrtPi*g0*(1.0 + e)*(3.0*e - 1)*sqr(alpha)/(3.0-e)
88  + (1.0/6.0)*sqrtPi*alpha*(0.5*lamda + 0.25*(3.0*e - 1.0))
89  /(0.5*(3.0 - e)*lamda)
90  + (10/96.0)*sqrtPi/((1.0 + e)*0.5*(3.0 - e)*g0*lamda)
91  );
92 }
93 
94 
95 // ************************ vim: set sw=4 sts=4 et: ************************ //