Merge branch 'master' of ssh://git.code.sf.net/p/foam-extend/foam-extend-3.2
[foam-extend-3.2.git] / applications / solvers / multiphase / twoPhaseEulerFoam / kineticTheoryModels / conductivityModel / HrenyaSinclair / HrenyaSinclairConductivity.C
blob0ca13833a36b2321dc4feff75fecce884e2468a5
1 /*---------------------------------------------------------------------------*\
2   =========                 |
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 -------------------------------------------------------------------------------
8 License
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 "HrenyaSinclairConductivity.H"
27 #include "mathematicalConstants.H"
28 #include "addToRunTimeSelectionTable.H"
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
32 namespace Foam
34     defineTypeNameAndDebug(HrenyaSinclairConductivity, 0);
36     addToRunTimeSelectionTable
37     (
38         conductivityModel,
39         HrenyaSinclairConductivity,
40         dictionary
41     );
45 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
47 Foam::HrenyaSinclairConductivity::HrenyaSinclairConductivity
49     const dictionary& dict
52     conductivityModel(dict),
53     coeffsDict_(dict.subDict(typeName + "Coeffs")),
54     L_(coeffsDict_.lookup("L"))
58 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
60 Foam::HrenyaSinclairConductivity::~HrenyaSinclairConductivity()
64 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
66 Foam::tmp<Foam::volScalarField> Foam::HrenyaSinclairConductivity::kappa
68     const volScalarField& alpha,
69     const volScalarField& Theta,
70     const volScalarField& g0,
71     const dimensionedScalar& rhoa,
72     const dimensionedScalar& da,
73     const dimensionedScalar& e
74 ) const
76     const scalar sqrtPi = sqrt(mathematicalConstant::pi);
78     volScalarField lamda =
79         scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_;
81     return rhoa*da*sqrt(Theta)*
82     (
83         2.0*sqr(alpha)*g0*(1.0 + e)/sqrtPi
84       + (9.0/8.0)*sqrtPi*0.25*sqr(1.0 + e)*(2.0*e - 1.0)*sqr(alpha)
85        /(49.0/16.0 - 33.0*e/16.0)
86       + (15.0/16.0)*sqrtPi*alpha*(0.5*sqr(e) + 0.25*e - 0.75 + lamda)
87        /((49.0/16.0 - 33.0*e/16.0)*lamda)
88       + (25.0/64.0)*sqrtPi
89        /((1.0 + e)*(49.0/16.0 - 33.0*e/16.0)*lamda*g0)
90     );
94 // ************************************************************************* //