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 #ifndef LESModel_H
00049 #define LESModel_H
00050
00051 #include "incompressible/turbulenceModel/turbulenceModel.H"
00052 #include "LESdelta.H"
00053 #include "fvm.H"
00054 #include "fvc.H"
00055 #include "fvMatrices.H"
00056 #include "incompressible/transportModel/transportModel.H"
00057 #include "wallFvPatch.H"
00058 #include "bound.H"
00059 #include "autoPtr.H"
00060 #include "runTimeSelectionTables.H"
00061
00062
00063
00064 namespace Foam
00065 {
00066 namespace incompressible
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 volVectorField& U,
00123 const surfaceScalarField& phi,
00124 transportModel& lamTransportModel
00125 ),
00126 (U, phi, lamTransportModel)
00127 );
00128
00129
00130
00131
00132
00133 LESModel
00134 (
00135 const word& type,
00136 const volVectorField& U,
00137 const surfaceScalarField& phi,
00138 transportModel& lamTransportModel
00139 );
00140
00141
00142
00143
00144
00145 static autoPtr<LESModel> New
00146 (
00147 const volVectorField& U,
00148 const surfaceScalarField& phi,
00149 transportModel& lamTransportModel
00150 );
00151
00152
00153
00154 virtual ~LESModel()
00155 {}
00156
00157
00158
00159
00160
00161
00162
00163 inline const dictionary& coeffDict() const
00164 {
00165 return coeffDict_;
00166 }
00167
00168
00169 inline const volScalarField& delta() const
00170 {
00171 return delta_();
00172 }
00173
00174
00175 const dimensionedScalar& k0() const
00176 {
00177 return k0_;
00178 }
00179
00180
00181 dimensionedScalar& k0()
00182 {
00183 return k0_;
00184 }
00185
00186
00187
00188 virtual tmp<volScalarField> k() const = 0;
00189
00190
00191 virtual tmp<volScalarField> epsilon() const = 0;
00192
00193
00194 virtual tmp<volScalarField> nuSgs() const = 0;
00195
00196
00197 virtual tmp<volScalarField> nuEff() const
00198 {
00199 return tmp<volScalarField>
00200 (
00201 new volScalarField("nuEff", nuSgs() + nu())
00202 );
00203 }
00204
00205
00206 virtual tmp<volSymmTensorField> B() const = 0;
00207
00208
00209
00210 virtual tmp<volSymmTensorField> devBeff() const = 0;
00211
00212
00213
00214 virtual tmp<fvVectorMatrix> divDevBeff(volVectorField& U) const = 0;
00215
00216
00217
00218
00219
00220 virtual tmp<volScalarField> nut() const
00221 {
00222 return nuSgs();
00223 }
00224
00225
00226 virtual tmp<volSymmTensorField> R() const
00227 {
00228 return B();
00229 }
00230
00231
00232 virtual tmp<volSymmTensorField> devReff() const
00233 {
00234 return devBeff();
00235 }
00236
00237
00238 virtual tmp<fvVectorMatrix> divDevReff(volVectorField& U) const
00239 {
00240 return divDevBeff(U);
00241 }
00242
00243
00244
00245
00246
00247 void correct();
00248
00249
00250 virtual void correct(const tmp<volTensorField>& gradU);
00251
00252
00253 virtual bool read() = 0;
00254 };
00255
00256
00257
00258
00259 }
00260 }
00261
00262
00263
00264 #endif
00265
00266
Copyright © 2000-2009 OpenCFD Ltd