Go to the documentation of this file.
36 #ifndef DevolatilisationModel_H
37 #define DevolatilisationModel_H
53 template<
class CloudType>
54 class DevolatilisationModel
56 public CloudSubModelBase<CloudType>
151 #define makeDevolatilisationModel(CloudType) \
153 typedef Foam::CloudType::reactingMultiphaseCloudType \
154 reactingMultiphaseCloudType; \
155 defineNamedTemplateTypeNameAndDebug \
157 Foam::DevolatilisationModel<reactingMultiphaseCloudType>, \
162 defineTemplateRunTimeSelectionTable \
164 DevolatilisationModel<reactingMultiphaseCloudType>, \
170 #define makeDevolatilisationModelType(SS, CloudType) \
172 typedef Foam::CloudType::reactingMultiphaseCloudType \
173 reactingMultiphaseCloudType; \
174 defineNamedTemplateTypeNameAndDebug \
175 (Foam::SS<reactingMultiphaseCloudType>, 0); \
177 Foam::DevolatilisationModel<reactingMultiphaseCloudType>:: \
178 adddictionaryConstructorToTable \
179 <Foam::SS<reactingMultiphaseCloudType> > \
180 add##SS##CloudType##reactingMultiphaseCloudType##ConstructorToTable_;
virtual void calculate(const scalar dt, const scalar age, const scalar mass0, const scalar mass, const scalar T, const scalarField &YGasEff, const scalarField &YLiquidEff, const scalarField &YSolidEff, label &canCombust, scalarField &dMassDV) const =0
Update model.
A class for handling words, derived from string.
static autoPtr< DevolatilisationModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
DevolatilisationModel(CloudType &owner)
Construct null from owner.
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.
virtual ~DevolatilisationModel()
Destructor.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Templated devolatilisation model class.
virtual autoPtr< DevolatilisationModel< CloudType > > clone() const =0
Construct and return a clone.
virtual void info(Ostream &os)
Write injection info to stream.
Templated base class for dsmc cloud.
scalar dMass_
Mass of lagrangian phase converted.
A list of keyword definitions, which are a keyword followed by any number of values (e....
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
Macros to ease declaration of run-time selection tables.
void addToDevolatilisationMass(const scalar dMass)
Add to devolatilisation mass.
TypeName("devolatilisationModel")
Runtime type information.
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.
declareRunTimeSelectionTable(autoPtr, DevolatilisationModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.