HrenyaSinclairConductivity.C
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration | Website: https://openfoam.org
5  \\ / A nd | Copyright (C) 2011-2024 OpenFOAM Foundation
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 
27 #include "mathematicalConstants.H"
29 
30 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
31 
32 namespace Foam
33 {
34 namespace kineticTheoryModels
35 {
36 namespace conductivityModels
37 {
39 
41  (
45  );
46 }
47 }
48 }
49 
50 
51 // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
52 
53 bool Foam::kineticTheoryModels::conductivityModels::HrenyaSinclair::readCoeffs
54 (
55  const dictionary& coeffDict
56 )
57 {
58  L_.readIfPresent(coeffDict);
59 
60  return true;
61 }
62 
63 
64 // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
65 
67 (
68  const dictionary& coeffDict
69 )
70 :
71  conductivityModel(coeffDict),
72  L_("L", dimensionSet(0, 1, 0, 0, 0), coeffDict)
73 {}
74 
75 
76 // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
77 
80 {}
81 
82 
83 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
84 
87 (
88  const volScalarField& alpha1,
89  const volScalarField& Theta,
90  const volScalarField& g0,
91  const volScalarField& rho1,
92  const volScalarField& da,
93  const dimensionedScalar& e
94 ) const
95 {
96  const scalar sqrtPi = sqrt(constant::mathematical::pi);
97 
99  (
100  scalar(1) + da/(6*sqrt(2.0)*(alpha1 + 1e-5))/L_
101  );
102 
103  return rho1*da*sqrt(Theta)*
104  (
105  2*sqr(alpha1)*g0*(1 + e)/sqrtPi
106  + (9.0/8.0)*sqrtPi*g0*0.25*sqr(1 + e)*(2*e - 1)*sqr(alpha1)
107  /(49.0/16.0 - 33*e/16.0)
108  + (15.0/16.0)*sqrtPi*alpha1*(0.5*sqr(e) + 0.25*e - 0.75 + lambda)
109  /((49.0/16.0 - 33*e/16.0)*lambda)
110  + (25.0/64.0)*sqrtPi
111  /((1 + e)*(49.0/16.0 - 33*e/16.0)*lambda*g0)
112  );
113 }
114 
115 
116 // ************************************************************************* //
Macros for easy insertion into run-time selection tables.
Generic GeometricField class.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Definition: dictionary.H:162
Dimension set for the base types.
Definition: dimensionSet.H:125
bool readIfPresent(const dictionary &, const unitConversion &defaultUnits=NullObjectRef< unitConversion >())
Update the value of dimensioned<Type> if found in the dictionary.
tmp< volScalarField > kappa(const volScalarField &alpha1, const volScalarField &Theta, const volScalarField &g0, const volScalarField &rho1, const volScalarField &da, const dimensionedScalar &e) const
HrenyaSinclair(const dictionary &coeffDict)
Construct from the coefficients dictionary.
A class for managing temporary objects.
Definition: tmp.H:55
dimensionedScalar lambda(viscosity->lookup("lambda"))
addToRunTimeSelectionTable(conductivityModel, Gidaspow, dictionary)
Namespace for OpenFOAM.
const doubleScalar e
Definition: doubleScalar.H:106
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
void sqrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)