36 #ifndef SurfaceReactionModel_H
37 #define SurfaceReactionModel_H
54 template<
class 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_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Templated surface reaction model class.
declareRunTimeSelectionTable(autoPtr, SurfaceReactionModel, dictionary,(const dictionary &dict, CloudType &cloud),(dict, cloud))
Declare runtime constructor selection table.
void addToSurfaceReactionMass(const scalar dMass)
Add to devolatilisation mass.
scalar dMass_
Mass of lagrangian phase converted.
virtual void info(Ostream &os)
Write injection info to stream.
SurfaceReactionModel(CloudType &owner)
Construct null from owner.
virtual autoPtr< SurfaceReactionModel< CloudType > > clone() const =0
Construct and return a clone.
static autoPtr< SurfaceReactionModel< CloudType > > New(const dictionary &dict, CloudType &cloud)
Selector.
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.
virtual ~SurfaceReactionModel()
Destructor.
TypeName("surfaceReactionModel")
Runtime type information.
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.
A list of keyword definitions, which are a keyword followed by any number of values (e....
const dictionary & dict() const
Return const access to the cloud dictionary.
A class for handling words, derived from string.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
Macros to ease declaration of run-time selection tables.