OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

HrenyaSinclairConductivity.C

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002   =========                 |
00003   \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
00004    \\    /   O peration     |
00005     \\  /    A nd           | Copyright (C) 1991-2009 OpenCFD Ltd.
00006      \\/     M anipulation  |
00007 -------------------------------------------------------------------------------
00008 License
00009     This file is part of OpenFOAM.
00010 
00011     OpenFOAM is free software; you can redistribute it and/or modify it
00012     under the terms of the GNU General Public License as published by the
00013     Free Software Foundation; either version 2 of the License, or (at your
00014     option) any later version.
00015 
00016     OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
00017     ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00018     FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
00019     for more details.
00020 
00021     You should have received a copy of the GNU General Public License
00022     along with OpenFOAM; if not, write to the Free Software Foundation,
00023     Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
00024 
00025 \*---------------------------------------------------------------------------*/
00026 
00027 #include "HrenyaSinclairConductivity.H"
00028 #include "mathematicalConstants.H"
00029 #include "addToRunTimeSelectionTable.H"
00030 
00031 // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
00032 
00033 namespace Foam
00034 {
00035     defineTypeNameAndDebug(HrenyaSinclairConductivity, 0);
00036 
00037     addToRunTimeSelectionTable
00038     (
00039         conductivityModel,
00040         HrenyaSinclairConductivity,
00041         dictionary
00042     );
00043 }
00044 
00045 
00046 // * * * * * * * * * * * * * * * * Constructors  * * * * * * * * * * * * * * //
00047 
00048 Foam::HrenyaSinclairConductivity::HrenyaSinclairConductivity
00049 (
00050     const dictionary& dict
00051 )
00052 :
00053     conductivityModel(dict),
00054     coeffsDict_(dict.subDict(typeName + "Coeffs")),
00055     L_(coeffsDict_.lookup("L"))
00056 {}
00057 
00058 
00059 // * * * * * * * * * * * * * * * * Destructor  * * * * * * * * * * * * * * * //
00060 
00061 Foam::HrenyaSinclairConductivity::~HrenyaSinclairConductivity()
00062 {}
00063 
00064 
00065 // * * * * * * * * * * * * * * * Member Functions  * * * * * * * * * * * * * //
00066 
00067 Foam::tmp<Foam::volScalarField> Foam::HrenyaSinclairConductivity::kappa
00068 (
00069     const volScalarField& alpha,
00070     const volScalarField& Theta,
00071     const volScalarField& g0,
00072     const dimensionedScalar& rhoa,
00073     const dimensionedScalar& da,
00074     const dimensionedScalar& e
00075 ) const
00076 {
00077     const scalar sqrtPi = sqrt(mathematicalConstant::pi);
00078 
00079     volScalarField lamda = 
00080         scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_;
00081 
00082     return rhoa*da*sqrt(Theta)*
00083     (
00084         2.0*sqr(alpha)*g0*(1.0 + e)/sqrtPi
00085       + (9.0/8.0)*sqrtPi*0.25*sqr(1.0 + e)*(2.0*e - 1.0)*sqr(alpha)
00086        /(49.0/16.0 - 33.0*e/16.0)
00087       + (15.0/16.0)*sqrtPi*alpha*(0.5*sqr(e) + 0.25*e - 0.75 + lamda)
00088        /((49.0/16.0 - 33.0*e/16.0)*lamda)
00089       + (25.0/64.0)*sqrtPi
00090        /((1.0 + e)*(49.0/16.0 - 33.0*e/16.0)*lamda*g0)
00091     );
00092 }
00093 
00094 
00095 // ************************************************************************* //
Copyright © 2000-2009 OpenCFD Ltd