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