1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
5 \\ / A nd | Copyright (C) 2011 OpenFOAM Foundation
7 -------------------------------------------------------------------------------
9 This file is part of OpenFOAM.
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.
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
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/>.
24 \*---------------------------------------------------------------------------*/
26 #include "HrenyaSinclairViscosity.H"
27 #include "mathematicalConstants.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 namespace kineticTheoryModels
36 defineTypeNameAndDebug(HrenyaSinclairViscosity, 0);
38 addToRunTimeSelectionTable
41 HrenyaSinclairViscosity,
47 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
49 Foam::kineticTheoryModels::HrenyaSinclairViscosity::HrenyaSinclairViscosity
51 const dictionary& dict
55 coeffsDict_(dict.subDict(typeName + "Coeffs")),
56 L_(coeffsDict_.lookup("L"))
60 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
62 Foam::kineticTheoryModels::HrenyaSinclairViscosity::~HrenyaSinclairViscosity()
66 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
68 Foam::tmp<Foam::volScalarField>
69 Foam::kineticTheoryModels::HrenyaSinclairViscosity::mua
71 const volScalarField& alpha,
72 const volScalarField& Theta,
73 const volScalarField& g0,
74 const dimensionedScalar& rhoa,
75 const dimensionedScalar& da,
76 const dimensionedScalar& e
79 const scalar sqrtPi = sqrt(constant::mathematical::pi);
83 scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_
86 return rhoa*da*sqrt(Theta)*
88 (4.0/5.0)*sqr(alpha)*g0*(1.0 + e)/sqrtPi
89 + (1.0/15.0)*sqrtPi*g0*(1.0 + e)*(3.0*e - 1)*sqr(alpha)/(3.0-e)
90 + (1.0/6.0)*sqrtPi*alpha*(0.5*lamda + 0.25*(3.0*e - 1.0))
91 /(0.5*(3.0 - e)*lamda)
92 + (10/96.0)*sqrtPi/((1.0 + e)*0.5*(3.0 - e)*g0*lamda)
97 // ************************************************************************* //