1 /*---------------------------------------------------------------------------*\
3 \\ / F ield | foam-extend: Open Source CFD
4 \\ / O peration | Version: 3.2
5 \\ / A nd | Web: http://www.foam-extend.org
6 \\/ M anipulation | For copyright notice see file Copyright
7 -------------------------------------------------------------------------------
9 This file is part of foam-extend.
11 foam-extend is free software: you can redistribute it and/or modify it
12 under the terms of the GNU General Public License as published by the
13 Free Software Foundation, either version 3 of the License, or (at your
14 option) any later version.
16 foam-extend is distributed in the hope that it will be useful, but
17 WITHOUT ANY WARRANTY; without even the implied warranty of
18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 General Public License for more details.
21 You should have received a copy of the GNU General Public License
22 along with foam-extend. If not, see <http://www.gnu.org/licenses/>.
24 \*---------------------------------------------------------------------------*/
26 #include "GidaspowViscosity.H"
27 #include "mathematicalConstants.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
34 namespace kineticTheoryModels
36 defineTypeNameAndDebug(GidaspowViscosity, 0);
37 addToRunTimeSelectionTable(viscosityModel, GidaspowViscosity, dictionary);
42 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
44 Foam::kineticTheoryModels::GidaspowViscosity::GidaspowViscosity
46 const dictionary& dict
53 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
55 Foam::kineticTheoryModels::GidaspowViscosity::~GidaspowViscosity()
59 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
61 Foam::tmp<Foam::volScalarField>
62 Foam::kineticTheoryModels::GidaspowViscosity::mua
64 const volScalarField& alpha,
65 const volScalarField& Theta,
66 const volScalarField& g0,
67 const dimensionedScalar& rhoa,
68 const dimensionedScalar& da,
69 const dimensionedScalar& e
72 const scalar sqrtPi = sqrt(mathematicalConstant::pi);
74 return rhoa*da*sqrt(Theta)*
76 (4.0/5.0)*sqr(alpha)*g0*(1.0 + e)/sqrtPi
77 + (1.0/15.0)*sqrtPi*g0*(1.0 + e)*sqr(alpha)
78 + (1.0/6.0)*sqrtPi*alpha
79 + (10.0/96.0)*sqrtPi/((1.0 + e)*g0)
84 // ************************************************************************* //