LESModel.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 #ifndef compressibleLESModel_H
00050 #define compressibleLESModel_H
00051
00052 #include "compressible/turbulenceModel/turbulenceModel.H"
00053 #include "LESdelta.H"
00054 #include "fvm.H"
00055 #include "fvc.H"
00056 #include "fvMatrices.H"
00057 #include "basicThermo.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 LESModel
00074 :
00075 public turbulenceModel,
00076 public IOdictionary
00077 {
00078
00079 protected:
00080
00081
00082
00083 Switch printCoeffs_;
00084 dictionary coeffDict_;
00085
00086 dimensionedScalar k0_;
00087
00088 autoPtr<LESdelta> delta_;
00089
00090
00091
00092
00093
00094 virtual void printCoeffs();
00095
00096
00097 private:
00098
00099
00100
00101
00102 LESModel(const LESModel&);
00103
00104
00105 LESModel& operator=(const LESModel&);
00106
00107
00108 public:
00109
00110
00111 TypeName("LESModel");
00112
00113
00114
00115
00116 declareRunTimeSelectionTable
00117 (
00118 autoPtr,
00119 LESModel,
00120 dictionary,
00121 (
00122 const volScalarField& rho,
00123 const volVectorField& U,
00124 const surfaceScalarField& phi,
00125 const basicThermo& thermoPhysicalModel
00126 ),
00127 (rho, U, phi, thermoPhysicalModel)
00128 );
00129
00130
00131
00132
00133
00134 LESModel
00135 (
00136 const word& type,
00137 const volScalarField& rho,
00138 const volVectorField& U,
00139 const surfaceScalarField& phi,
00140 const basicThermo& thermoPhysicalModel
00141 );
00142
00143
00144
00145
00146
00147 static autoPtr<LESModel> New
00148 (
00149 const volScalarField& rho,
00150 const volVectorField& U,
00151 const surfaceScalarField& phi,
00152 const basicThermo& thermoPhysicalModel
00153 );
00154
00155
00156
00157 virtual ~LESModel()
00158 {}
00159
00160
00161
00162
00163
00164
00165
00166
00167
00168 inline const dictionary& coeffDict() const
00169 {
00170 return coeffDict_;
00171 }
00172
00173
00174 const dimensionedScalar& k0() const
00175 {
00176 return k0_;
00177 }
00178
00179
00180 dimensionedScalar& k0()
00181 {
00182 return k0_;
00183 }
00184
00185
00186 inline const volScalarField& delta() const
00187 {
00188 return delta_();
00189 }
00190
00191
00192
00193 virtual tmp<volScalarField> k() const = 0;
00194
00195
00196 virtual tmp<volScalarField> epsilon() const = 0;
00197
00198
00199 virtual tmp<volScalarField> muSgs() const = 0;
00200
00201
00202 virtual tmp<volScalarField> muEff() const
00203 {
00204 return tmp<volScalarField>
00205 (
00206 new volScalarField("muEff", muSgs() + mu())
00207 );
00208 }
00209
00210
00211 virtual tmp<volScalarField> alphaSgs() const = 0;
00212
00213
00214 virtual tmp<volScalarField> alphaEff() const = 0;
00215
00216
00217 virtual tmp<volSymmTensorField> B() const = 0;
00218
00219
00220
00221 virtual tmp<volSymmTensorField> devRhoBeff() const = 0;
00222
00223
00224
00225 virtual tmp<fvVectorMatrix> divDevRhoBeff(volVectorField& U) const = 0;
00226
00227
00228
00229
00230
00231 virtual tmp<volScalarField> mut() const
00232 {
00233 return muSgs();
00234 }
00235
00236
00237 virtual tmp<volScalarField> alphat() const
00238 {
00239 return alphaSgs();
00240 }
00241
00242
00243 virtual tmp<volSymmTensorField> R() const
00244 {
00245 return B();
00246 }
00247
00248
00249 virtual tmp<volSymmTensorField> devRhoReff() const
00250 {
00251 return devRhoBeff();
00252 }
00253
00254
00255 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const
00256 {
00257 return divDevRhoBeff(U);
00258 }
00259
00260
00261
00262
00263
00264 void correct();
00265
00266
00267 virtual void correct(const tmp<volTensorField>& gradU);
00268
00269
00270 virtual bool read() = 0;
00271 };
00272
00273
00274
00275
00276 }
00277 }
00278
00279
00280
00281 #endif
00282
00283
Copyright © 2000-2009 OpenCFD Ltd