HrenyaSinclairViscosity.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 "HrenyaSinclairViscosity.H"
00028 #include "mathematicalConstants.H"
00029 #include "addToRunTimeSelectionTable.H"
00030
00031
00032
00033 namespace Foam
00034 {
00035 namespace kineticTheoryModels
00036 {
00037 defineTypeNameAndDebug(HrenyaSinclairViscosity, 0);
00038
00039 addToRunTimeSelectionTable
00040 (
00041 viscosityModel,
00042 HrenyaSinclairViscosity,
00043 dictionary
00044 );
00045 }
00046 }
00047
00048
00049
00050 Foam::kineticTheoryModels::HrenyaSinclairViscosity::HrenyaSinclairViscosity
00051 (
00052 const dictionary& dict
00053 )
00054 :
00055 viscosityModel(dict),
00056 coeffsDict_(dict.subDict(typeName + "Coeffs")),
00057 L_(coeffsDict_.lookup("L"))
00058 {}
00059
00060
00061
00062
00063 Foam::kineticTheoryModels::HrenyaSinclairViscosity::~HrenyaSinclairViscosity()
00064 {}
00065
00066
00067
00068
00069 Foam::tmp<Foam::volScalarField>
00070 Foam::kineticTheoryModels::HrenyaSinclairViscosity::mua
00071 (
00072 const volScalarField& alpha,
00073 const volScalarField& Theta,
00074 const volScalarField& g0,
00075 const dimensionedScalar& rhoa,
00076 const dimensionedScalar& da,
00077 const dimensionedScalar& e
00078 ) const
00079 {
00080 const scalar sqrtPi = sqrt(mathematicalConstant::pi);
00081
00082 volScalarField lamda =
00083 scalar(1) + da/(6.0*sqrt(2.0)*(alpha + scalar(1.0e-5)))/L_;
00084
00085 return rhoa*da*sqrt(Theta)*
00086 (
00087 (4.0/5.0)*sqr(alpha)*g0*(1.0 + e)/sqrtPi
00088 + (1.0/15.0)*sqrtPi*g0*(1.0 + e)*(3.0*e - 1)*sqr(alpha)/(3.0-e)
00089 + (1.0/6.0)*sqrtPi*alpha*(0.5*lamda + 0.25*(3.0*e - 1.0))
00090 /(0.5*(3.0 - e)*lamda)
00091 + (10/96.0)*sqrtPi/((1.0 + e)*0.5*(3.0 - e)*g0*lamda)
00092 );
00093 }
00094
00095
00096
Copyright © 2000-2009 OpenCFD Ltd