RASModel.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 #ifndef compressibleRASModel_H
00046 #define compressibleRASModel_H
00047
00048 #include "compressible/turbulenceModel/turbulenceModel.H"
00049 #include "volFields.H"
00050 #include "surfaceFields.H"
00051 #include "nearWallDist.H"
00052 #include "fvm.H"
00053 #include "fvc.H"
00054 #include "fvMatrices.H"
00055 #include "basicThermo.H"
00056 #include "IOdictionary.H"
00057 #include "Switch.H"
00058 #include "bound.H"
00059 #include "autoPtr.H"
00060 #include "runTimeSelectionTables.H"
00061
00062
00063
00064 namespace Foam
00065 {
00066 namespace compressible
00067 {
00068
00069
00070
00071
00072
00073 class RASModel
00074 :
00075 public turbulenceModel,
00076 public IOdictionary
00077 {
00078
00079 protected:
00080
00081
00082
00083
00084 Switch turbulence_;
00085
00086
00087 Switch printCoeffs_;
00088
00089
00090 dictionary coeffDict_;
00091
00092
00093 scalar yPlusLam_;
00094
00095
00096 dimensionedScalar k0_;
00097
00098
00099 dimensionedScalar epsilon0_;
00100
00101
00102 dimensionedScalar epsilonSmall_;
00103
00104
00105 dimensionedScalar omega0_;
00106
00107
00108 dimensionedScalar omegaSmall_;
00109
00110
00111 nearWallDist y_;
00112
00113
00114
00115
00116
00117 virtual void printCoeffs();
00118
00119
00120 private:
00121
00122
00123
00124
00125 RASModel(const RASModel&);
00126
00127
00128 void operator=(const RASModel&);
00129
00130
00131 public:
00132
00133
00134 TypeName("RASModel");
00135
00136
00137
00138
00139 declareRunTimeSelectionTable
00140 (
00141 autoPtr,
00142 RASModel,
00143 dictionary,
00144 (
00145 const volScalarField& rho,
00146 const volVectorField& U,
00147 const surfaceScalarField& phi,
00148 const basicThermo& thermoPhysicalModel
00149 ),
00150 (rho, U, phi, thermoPhysicalModel)
00151 );
00152
00153
00154
00155
00156
00157 RASModel
00158 (
00159 const word& type,
00160 const volScalarField& rho,
00161 const volVectorField& U,
00162 const surfaceScalarField& phi,
00163 const basicThermo& thermoPhysicalModel
00164 );
00165
00166
00167
00168
00169
00170 static autoPtr<RASModel> New
00171 (
00172 const volScalarField& rho,
00173 const volVectorField& U,
00174 const surfaceScalarField& phi,
00175 const basicThermo& thermoPhysicalModel
00176 );
00177
00178
00179
00180 virtual ~RASModel()
00181 {}
00182
00183
00184
00185
00186
00187
00188
00189 const dimensionedScalar& k0() const
00190 {
00191 return k0_;
00192 }
00193
00194
00195
00196 const dimensionedScalar& epsilon0() const
00197 {
00198 return epsilon0_;
00199 }
00200
00201
00202
00203 const dimensionedScalar& epsilonSmall() const
00204 {
00205 return epsilonSmall_;
00206 }
00207
00208
00209
00210 const dimensionedScalar& omega0() const
00211 {
00212 return omega0_;
00213 }
00214
00215
00216
00217 const dimensionedScalar& omegaSmall() const
00218 {
00219 return omegaSmall_;
00220 }
00221
00222
00223 dimensionedScalar& k0()
00224 {
00225 return k0_;
00226 }
00227
00228
00229 dimensionedScalar& epsilon0()
00230 {
00231 return epsilon0_;
00232 }
00233
00234
00235 dimensionedScalar& epsilonSmall()
00236 {
00237 return epsilonSmall_;
00238 }
00239
00240
00241 dimensionedScalar& omega0()
00242 {
00243 return omega0_;
00244 }
00245
00246
00247 dimensionedScalar& omegaSmall()
00248 {
00249 return omegaSmall_;
00250 }
00251
00252
00253 const nearWallDist& y() const
00254 {
00255 return y_;
00256 }
00257
00258
00259 scalar yPlusLam(const scalar kappa, const scalar E) const;
00260
00261
00262 const dictionary& coeffDict() const
00263 {
00264 return coeffDict_;
00265 }
00266
00267
00268
00269 virtual tmp<volScalarField> mut() const = 0;
00270
00271
00272 virtual tmp<volScalarField> muEff() const
00273 {
00274 return tmp<volScalarField>
00275 (
00276 new volScalarField("muEff", mut() + mu())
00277 );
00278 }
00279
00280
00281 virtual tmp<volScalarField> alphaEff() const = 0;
00282
00283
00284 virtual tmp<volScalarField> k() const = 0;
00285
00286
00287 virtual tmp<volScalarField> epsilon() const = 0;
00288
00289
00290 virtual tmp<volSymmTensorField> R() const = 0;
00291
00292
00293 virtual tmp<volSymmTensorField> devRhoReff() const = 0;
00294
00295
00296 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const = 0;
00297
00298
00299 virtual tmp<scalarField> yPlus
00300 (
00301 const label patchI,
00302 const scalar Cmu
00303 ) const;
00304
00305
00306 virtual void correct() = 0;
00307
00308
00309 virtual bool read() = 0;
00310 };
00311
00312
00313
00314
00315 }
00316 }
00317
00318
00319
00320 #endif
00321
00322
Copyright © 2000-2009 OpenCFD Ltd