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