kOmegaSST.H
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
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
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082 #ifndef compressiblekOmegaSST_H
00083 #define compressiblekOmegaSST_H
00084
00085 #include "RASModel.H"
00086 #include "wallDist.H"
00087
00088
00089
00090 namespace Foam
00091 {
00092 namespace compressible
00093 {
00094 namespace RASModels
00095 {
00096
00097
00098
00099
00100
00101 class kOmegaSST
00102 :
00103 public RASModel
00104 {
00105
00106
00107
00108
00109 dimensionedScalar alphaK1_;
00110 dimensionedScalar alphaK2_;
00111
00112 dimensionedScalar alphaOmega1_;
00113 dimensionedScalar alphaOmega2_;
00114
00115 dimensionedScalar Prt_;
00116
00117 dimensionedScalar gamma1_;
00118 dimensionedScalar gamma2_;
00119
00120 dimensionedScalar beta1_;
00121 dimensionedScalar beta2_;
00122
00123 dimensionedScalar betaStar_;
00124
00125 dimensionedScalar a1_;
00126 dimensionedScalar c1_;
00127
00128
00129
00130
00131 wallDist y_;
00132
00133
00134
00135 volScalarField k_;
00136 volScalarField omega_;
00137 volScalarField mut_;
00138 volScalarField alphat_;
00139
00140
00141
00142
00143 tmp<volScalarField> F1(const volScalarField& CDkOmega) const;
00144 tmp<volScalarField> F2() const;
00145
00146 tmp<volScalarField> blend
00147 (
00148 const volScalarField& F1,
00149 const dimensionedScalar& psi1,
00150 const dimensionedScalar& psi2
00151 ) const
00152 {
00153 return F1*(psi1 - psi2) + psi2;
00154 }
00155
00156 tmp<volScalarField> alphaK(const volScalarField& F1) const
00157 {
00158 return blend(F1, alphaK1_, alphaK2_);
00159 }
00160
00161 tmp<volScalarField> alphaOmega(const volScalarField& F1) const
00162 {
00163 return blend(F1, alphaOmega1_, alphaOmega2_);
00164 }
00165
00166 tmp<volScalarField> beta(const volScalarField& F1) const
00167 {
00168 return blend(F1, beta1_, beta2_);
00169 }
00170
00171 tmp<volScalarField> gamma(const volScalarField& F1) const
00172 {
00173 return blend(F1, gamma1_, gamma2_);
00174 }
00175
00176
00177 public:
00178
00179
00180 TypeName("kOmegaSST");
00181
00182
00183
00184
00185
00186 kOmegaSST
00187 (
00188 const volScalarField& rho,
00189 const volVectorField& U,
00190 const surfaceScalarField& phi,
00191 const basicThermo& thermophysicalModel
00192 );
00193
00194
00195
00196 virtual ~kOmegaSST()
00197 {}
00198
00199
00200
00201
00202
00203 tmp<volScalarField> DkEff(const volScalarField& F1) const
00204 {
00205 return tmp<volScalarField>
00206 (
00207 new volScalarField("DkEff", alphaK(F1)*mut_ + mu())
00208 );
00209 }
00210
00211
00212 tmp<volScalarField> DomegaEff(const volScalarField& F1) const
00213 {
00214 return tmp<volScalarField>
00215 (
00216 new volScalarField("DomegaEff", alphaOmega(F1)*mut_ + mu())
00217 );
00218 }
00219
00220 virtual tmp<volScalarField> mut() const
00221 {
00222 return mut_;
00223 }
00224
00225
00226 virtual tmp<volScalarField> alphaEff() const
00227 {
00228 return tmp<volScalarField>
00229 (
00230 new volScalarField("alphaEff", alphat_ + alpha())
00231 );
00232 }
00233
00234
00235 virtual tmp<volScalarField> k() const
00236 {
00237 return k_;
00238 }
00239
00240 virtual tmp<volScalarField> omega() const
00241 {
00242 return omega_;
00243 }
00244
00245
00246 virtual tmp<volScalarField> epsilon() const
00247 {
00248 return tmp<volScalarField>
00249 (
00250 new volScalarField
00251 (
00252 IOobject
00253 (
00254 "epsilon",
00255 mesh_.time().timeName(),
00256 mesh_
00257 ),
00258 betaStar_*k_*omega_,
00259 omega_.boundaryField().types()
00260 )
00261 );
00262 }
00263
00264
00265 virtual tmp<volSymmTensorField> R() const;
00266
00267
00268 virtual tmp<volSymmTensorField> devRhoReff() const;
00269
00270
00271 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const;
00272
00273
00274 virtual void correct();
00275
00276
00277 virtual bool read();
00278 };
00279
00280
00281
00282
00283 }
00284 }
00285 }
00286
00287
00288
00289 #endif
00290
00291
Copyright © 2000-2009 OpenCFD Ltd