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