turbulenceModel.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 compressibleturbulenceModel_H
00046 #define compressibleturbulenceModel_H
00047
00048 #include "primitiveFieldsFwd.H"
00049 #include "volFieldsFwd.H"
00050 #include "surfaceFieldsFwd.H"
00051 #include "fvMatricesFwd.H"
00052 #include "basicThermo.H"
00053 #include "autoPtr.H"
00054 #include "runTimeSelectionTables.H"
00055
00056
00057
00058 namespace Foam
00059 {
00060
00061
00062 class fvMesh;
00063
00064 namespace compressible
00065 {
00066
00067
00068
00069
00070
00071 class turbulenceModel
00072 {
00073
00074 protected:
00075
00076
00077
00078 const Time& runTime_;
00079 const fvMesh& mesh_;
00080
00081 const volScalarField& rho_;
00082 const volVectorField& U_;
00083 const surfaceScalarField& phi_;
00084
00085 const basicThermo& thermophysicalModel_;
00086
00087
00088 private:
00089
00090
00091
00092
00093 turbulenceModel(const turbulenceModel&);
00094
00095
00096 void operator=(const turbulenceModel&);
00097
00098
00099 public:
00100
00101
00102 TypeName("turbulenceModel");
00103
00104
00105
00106
00107 declareRunTimeNewSelectionTable
00108 (
00109 autoPtr,
00110 turbulenceModel,
00111 turbulenceModel,
00112 (
00113 const volScalarField& rho,
00114 const volVectorField& U,
00115 const surfaceScalarField& phi,
00116 const basicThermo& thermoPhysicalModel
00117 ),
00118 (rho, U, phi, thermoPhysicalModel)
00119 );
00120
00121
00122
00123
00124
00125 turbulenceModel
00126 (
00127 const volScalarField& rho,
00128 const volVectorField& U,
00129 const surfaceScalarField& phi,
00130 const basicThermo& thermoPhysicalModel
00131 );
00132
00133
00134
00135
00136
00137 static autoPtr<turbulenceModel> New
00138 (
00139 const volScalarField& rho,
00140 const volVectorField& U,
00141 const surfaceScalarField& phi,
00142 const basicThermo& thermoPhysicalModel
00143 );
00144
00145
00146
00147 virtual ~turbulenceModel()
00148 {}
00149
00150
00151
00152
00153
00154 const volScalarField& rho() const
00155 {
00156 return rho_;
00157 }
00158
00159
00160 const volVectorField& U() const
00161 {
00162 return U_;
00163 }
00164
00165
00166 const surfaceScalarField& phi() const
00167 {
00168 return phi_;
00169 }
00170
00171
00172 const basicThermo& thermo() const
00173 {
00174 return thermophysicalModel_;
00175 }
00176
00177
00178 const volScalarField& mu() const
00179 {
00180 return thermophysicalModel_.mu();
00181 }
00182
00183
00184 const volScalarField& alpha() const
00185 {
00186 return thermophysicalModel_.alpha();
00187 }
00188
00189
00190 virtual tmp<volScalarField> mut() const = 0;
00191
00192
00193 virtual tmp<volScalarField> muEff() const = 0;
00194
00195
00196 virtual tmp<volScalarField> alphaEff() const = 0;
00197
00198
00199 virtual tmp<volScalarField> k() const = 0;
00200
00201
00202 virtual tmp<volScalarField> epsilon() const = 0;
00203
00204
00205 virtual tmp<volSymmTensorField> R() const = 0;
00206
00207
00208 virtual tmp<volSymmTensorField> devRhoReff() const = 0;
00209
00210
00211 virtual tmp<fvVectorMatrix> divDevRhoReff(volVectorField& U) const = 0;
00212
00213
00214 virtual void correct() = 0;
00215
00216
00217 virtual bool read() = 0;
00218 };
00219
00220
00221
00222
00223 }
00224 }
00225
00226
00227
00228 #endif
00229
00230
Copyright © 2000-2009 OpenCFD Ltd