SurfaceReactionModel.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 SurfaceReactionModel_H
00038 #define SurfaceReactionModel_H
00039
00040 #include "IOdictionary.H"
00041 #include "autoPtr.H"
00042 #include "runTimeSelectionTables.H"
00043
00044 #include "scalarField.H"
00045
00046
00047
00048 namespace Foam
00049 {
00050
00051
00052
00053
00054
00055 template<class CloudType>
00056 class SurfaceReactionModel
00057 {
00058
00059
00060
00061 const dictionary& dict_;
00062
00063
00064 CloudType& owner_;
00065
00066
00067 const dictionary coeffDict_;
00068
00069
00070 public:
00071
00072
00073 TypeName("SurfaceReactionModel");
00074
00075
00076
00077 declareRunTimeSelectionTable
00078 (
00079 autoPtr,
00080 SurfaceReactionModel,
00081 dictionary,
00082 (
00083 const dictionary& dict,
00084 CloudType& cloud
00085 ),
00086 (dict, cloud)
00087 );
00088
00089
00090
00091
00092
00093 SurfaceReactionModel(CloudType& owner);
00094
00095
00096 SurfaceReactionModel
00097 (
00098 const dictionary& dict,
00099 CloudType& cloud,
00100 const word& type
00101 );
00102
00103
00104
00105 virtual ~SurfaceReactionModel();
00106
00107
00108
00109 static autoPtr<SurfaceReactionModel<CloudType> > New
00110 (
00111 const dictionary& dict,
00112 CloudType& cloud
00113 );
00114
00115
00116
00117
00118
00119 const CloudType& owner() const;
00120
00121
00122 const dictionary& dict() const;
00123
00124
00125 const dictionary& coeffDict() const;
00126
00127
00128
00129
00130
00131 virtual bool active() const = 0;
00132
00133
00134
00135 virtual scalar calculate
00136 (
00137 const scalar dt,
00138 const label cellI,
00139 const scalar d,
00140 const scalar T,
00141 const scalar Tc,
00142 const scalar pc,
00143 const scalar rhoc,
00144 const scalar mass,
00145 const scalarField& YGas,
00146 const scalarField& YLiquid,
00147 const scalarField& YSolid,
00148 const scalarField& YMixture,
00149 const scalarField& dMassVolatile,
00150 scalarField& dMassGas,
00151 scalarField& dMassLiquid,
00152 scalarField& dMassSolid,
00153 scalarField& dMassSRCarrier
00154 ) const = 0;
00155 };
00156
00157
00158
00159
00160 }
00161
00162
00163
00164 #define makeSurfaceReactionModel(CloudType) \
00165 \
00166 defineNamedTemplateTypeNameAndDebug(SurfaceReactionModel<CloudType>, 0); \
00167 \
00168 defineTemplateRunTimeSelectionTable \
00169 ( \
00170 SurfaceReactionModel<CloudType>, \
00171 dictionary \
00172 );
00173
00174
00175 #define makeSurfaceReactionModelThermoType(SS, CloudType, ParcelType, ThermoType)\
00176 \
00177 defineNamedTemplateTypeNameAndDebug \
00178 ( \
00179 SS<CloudType<ParcelType<ThermoType> > >, \
00180 0 \
00181 ); \
00182 \
00183 SurfaceReactionModel<CloudType<ParcelType<ThermoType> > >:: \
00184 adddictionaryConstructorToTable \
00185 <SS<CloudType<ParcelType<ThermoType> > > > \
00186 add##SS##CloudType##ParcelType##ThermoType##ConstructorToTable_;
00187
00188
00189
00190
00191 #ifdef NoRepository
00192 # include "SurfaceReactionModel.C"
00193 #endif
00194
00195
00196
00197 #endif
00198
00199
Copyright © 2000-2009 OpenCFD Ltd