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