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
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060 #ifndef compressiblekOmegaSST_H
00061 #define compressiblekOmegaSST_H
00062
00063 #include "turbulenceModel.H"
00064 #include "wallDist.H"
00065
00066
00067
00068 namespace Foam
00069 {
00070 namespace compressible
00071 {
00072 namespace turbulenceModels
00073 {
00074
00075
00076
00077
00078
00079 class kOmegaSST
00080 :
00081 public turbulenceModel
00082 {
00083
00084
00085 dimensionedScalar alphaK1;
00086 dimensionedScalar alphaK2;
00087
00088 dimensionedScalar alphaOmega1;
00089 dimensionedScalar alphaOmega2;
00090
00091 dimensionedScalar alphah;
00092
00093 dimensionedScalar gamma1;
00094 dimensionedScalar gamma2;
00095
00096 dimensionedScalar beta1;
00097 dimensionedScalar beta2;
00098
00099 dimensionedScalar betaStar;
00100
00101 dimensionedScalar a1;
00102 dimensionedScalar c1;
00103
00104 dimensionedScalar omega0_;
00105 dimensionedScalar omegaSmall_;
00106
00107 dimensionedScalar Cmu;
00108
00109 wallDist y_;
00110
00111 volScalarField k_;
00112 volScalarField omega_;
00113 volScalarField mut_;
00114
00115
00116
00117
00118 tmp<volScalarField> F1(const volScalarField& CDkOmega) const;
00119 tmp<volScalarField> F2() const;
00120
00121 tmp<volScalarField> blend
00122 (
00123 const volScalarField& F1,
00124 const dimensionedScalar& psi1,
00125 const dimensionedScalar& psi2
00126 ) const
00127 {
00128 return F1*(psi1 - psi2) + psi2;
00129 }
00130
00131 tmp<volScalarField> alphaK
00132 (
00133 const volScalarField& F1
00134 ) const
00135 {
00136 return blend(F1, alphaK1, alphaK2);
00137 }
00138
00139 tmp<volScalarField> alphaOmega
00140 (
00141 const volScalarField& F1
00142 ) const
00143 {
00144 return blend(F1, alphaOmega1, alphaOmega2);
00145 }
00146
00147 tmp<volScalarField> beta
00148 (
00149 const volScalarField& F1
00150 ) const
00151 {
00152 return blend(F1, beta1, beta2);
00153 }
00154
00155 tmp<volScalarField> gamma
00156 (
00157 const volScalarField& F1
00158 ) const
00159 {
00160 return blend(F1, gamma1, gamma2);
00161 }
00162
00163
00164 public:
00165
00166
00167 TypeName("kOmegaSST");
00168
00169
00170
00171
00172
00173 kOmegaSST
00174 (
00175 const volScalarField& rho,
00176 const volVectorField& U,
00177 const surfaceScalarField& phi,
00178 basicThermo& thermophysicalModel
00179 );
00180
00181
00182
00183
00184 ~kOmegaSST()
00185 {}
00186
00187
00188
00189
00190 tmp<volScalarField> mut() const
00191 {
00192 return mut_;
00193 }
00194
00195
00196 tmp<volScalarField> DkEff(const volScalarField& F1) const
00197 {
00198 return tmp<volScalarField>
00199 (
00200 new volScalarField("DkEff", alphaK(F1)*mut_ + mu())
00201 );
00202 }
00203
00204
00205 tmp<volScalarField> DomegaEff(const volScalarField& F1) const
00206 {
00207 return tmp<volScalarField>
00208 (
00209 new volScalarField("DomegaEff", alphaOmega(F1)*mut_ + mu())
00210 );
00211 }
00212
00213
00214 tmp<volScalarField> alphaEff() const
00215 {
00216 return tmp<volScalarField>
00217 (
00218 new volScalarField("alphaEff", alphah*mut_ + alpha())
00219 );
00220 }
00221
00222 tmp<volScalarField> k() const
00223 {
00224 return k_;
00225 }
00226
00227 tmp<volScalarField> omega() const
00228 {
00229 return omega_;
00230 }
00231
00232 tmp<volScalarField> epsilon() const
00233 {
00234 return betaStar*k_*omega_;
00235 }
00236
00237 tmp<volSymmTensorField> R() const;
00238
00239 tmp<fvVectorMatrix> divRhoR(volVectorField& U) const;
00240
00241 void correct();
00242
00243
00244 bool read();
00245 };
00246
00247
00248
00249
00250 }
00251 }
00252 }
00253
00254
00255
00256 #endif
00257
00258
Copyright © 2000-2007 OpenCFD Ltd