HrenyaSinclairConductivity.C
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #include "HrenyaSinclairConductivity.H"
00028 #include "mathematicalConstants.H"
00029 #include "addToRunTimeSelectionTable.H"
00030
00031
00032
00033 namespace Foam
00034 {
00035 defineTypeNameAndDebug(HrenyaSinclairConductivity, 0);
00036
00037 addToRunTimeSelectionTable
00038 (
00039 conductivityModel,
00040 HrenyaSinclairConductivity,
00041 dictionary
00042 );
00043 }
00044
00045
00046
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
00060
00061 Foam::HrenyaSinclairConductivity::~HrenyaSinclairConductivity()
00062 {}
00063
00064
00065
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