PDRDragModel.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 #ifndef PDRDragModel_H
00038 #define PDRDragModel_H
00039
00040 #include "IOdictionary.H"
00041 #include "hhuCombustionThermo.H"
00042 #include "RASModel.H"
00043 #include "multivariateSurfaceInterpolationScheme.H"
00044 #include "runTimeSelectionTables.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052
00053
00054
00055 class PDRDragModel
00056 :
00057 public regIOobject
00058 {
00059
00060 protected:
00061
00062
00063
00064 dictionary PDRDragModelCoeffs_;
00065
00066 const compressible::RASModel& turbulence_;
00067 const volScalarField& rho_;
00068 const volVectorField& U_;
00069 const surfaceScalarField& phi_;
00070
00071 Switch on_;
00072
00073
00074 private:
00075
00076
00077
00078
00079 PDRDragModel(const PDRDragModel&);
00080
00081
00082 void operator=(const PDRDragModel&);
00083
00084
00085 public:
00086
00087
00088 TypeName("PDRDragModel");
00089
00090
00091
00092
00093 declareRunTimeSelectionTable
00094 (
00095 autoPtr,
00096 PDRDragModel,
00097 dictionary,
00098 (
00099 const dictionary& PDRProperties,
00100 const compressible::RASModel& turbulence,
00101 const volScalarField& rho,
00102 const volVectorField& U,
00103 const surfaceScalarField& phi
00104 ),
00105 (
00106 PDRProperties,
00107 turbulence,
00108 rho,
00109 U,
00110 phi
00111 )
00112 );
00113
00114
00115
00116
00117
00118 static autoPtr<PDRDragModel> New
00119 (
00120 const dictionary& PDRProperties,
00121 const compressible::RASModel& turbulence,
00122 const volScalarField& rho,
00123 const volVectorField& U,
00124 const surfaceScalarField& phi
00125 );
00126
00127
00128
00129
00130
00131 PDRDragModel
00132 (
00133 const dictionary& PDRProperties,
00134 const compressible::RASModel& turbulence,
00135 const volScalarField& rho,
00136 const volVectorField& U,
00137 const surfaceScalarField& phi
00138 );
00139
00140
00141
00142
00143 virtual ~PDRDragModel();
00144
00145
00146
00147
00148
00149 bool on() const
00150 {
00151 return on_;
00152 }
00153
00154
00155 virtual tmp<volSymmTensorField> Dcu() const = 0;
00156
00157
00158 virtual tmp<volScalarField> Gk() const = 0;
00159
00160
00161 virtual bool read(const dictionary& PDRProperties) = 0;
00162
00163 virtual bool writeData(Ostream&) const
00164 {
00165 return true;
00166 }
00167 };
00168
00169
00170
00171
00172 }
00173
00174
00175
00176 #endif
00177
00178
Copyright © 2000-2009 OpenCFD Ltd