Go to the documentation of this file.
36 #ifndef SurfaceReactionModel_H
37 #define SurfaceReactionModel_H
54 template<
class CloudType>
55 class SurfaceReactionModel
57 public CloudSubModelBase<CloudType>
161 #define makeSurfaceReactionModel(CloudType) \
163 typedef Foam::CloudType::reactingMultiphaseCloudType \
164 reactingMultiphaseCloudType; \
165 defineNamedTemplateTypeNameAndDebug \
167 Foam::SurfaceReactionModel<reactingMultiphaseCloudType>, \
172 defineTemplateRunTimeSelectionTable \
174 SurfaceReactionModel<reactingMultiphaseCloudType>, \
180 #define makeSurfaceReactionModelType(SS, CloudType) \
182 typedef Foam::CloudType::reactingMultiphaseCloudType \
183 reactingMultiphaseCloudType; \
184 defineNamedTemplateTypeNameAndDebug \
185 (Foam::SS<reactingMultiphaseCloudType>, 0); \
187 Foam::SurfaceReactionModel<reactingMultiphaseCloudType>:: \
188 adddictionaryConstructorToTable \
189 <Foam::SS<reactingMultiphaseCloudType> > \
190 add##SS##CloudType##reactingMultiphaseCloudType##ConstructorToTable_;
Templated surface reaction model class.
A class for handling words, derived from string.
scalar dMass_
Mass of lagrangian phase converted.
virtual scalar calculate(const scalar dt, const label cellI, const scalar d, const scalar T, const scalar Tc, const scalar pc, const scalar rhoc, const scalar mass, const scalarField &YGas, const scalarField &YLiquid, const scalarField &YSolid, const scalarField &YMixture, const scalar N, scalarField &dMassGas, scalarField &dMassLiquid, scalarField &dMassSolid, scalarField &dMassSRCarrier) const =0
Update surface reactions.
SurfaceReactionModel(CloudType &owner)
Construct null from owner.
void addToSurfaceReactionMass(const scalar dMass)
Add to devolatilisation mass.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
declareRunTimeSelectionTable(autoPtr, SurfaceReactionModel, dictionary,(const dictionary &dict, CloudType &cloud),(dict, cloud))
Declare runtime constructor selection table.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by any number of values (e....
virtual autoPtr< SurfaceReactionModel< CloudType > > clone() const =0
Construct and return a clone.
static autoPtr< SurfaceReactionModel< CloudType > > New(const dictionary &dict, CloudType &cloud)
Selector.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A cloud is a collection of lagrangian particles.
virtual ~SurfaceReactionModel()
Destructor.
Macros to ease declaration of run-time selection tables.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
fileName::Type type(const fileName &)
Return the file type: DIRECTORY or FILE.
virtual void info(Ostream &os)
Write injection info to stream.
TypeName("surfaceReactionModel")
Runtime type information.