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