36 #ifndef DevolatilisationModel_H
37 #define DevolatilisationModel_H
53 template<
class CloudType>
123 const typename CloudType::parcelType::trackingData& td,
152 #define makeDevolatilisationModel(CloudType) \
154 typedef Foam::CloudType::reactingMultiphaseCloudType \
155 reactingMultiphaseCloudType; \
156 defineNamedTemplateTypeNameAndDebug \
158 Foam::DevolatilisationModel<reactingMultiphaseCloudType>, \
163 defineTemplateRunTimeSelectionTable \
165 DevolatilisationModel<reactingMultiphaseCloudType>, \
171 #define makeDevolatilisationModelType(SS, CloudType) \
173 typedef Foam::CloudType::reactingMultiphaseCloudType \
174 reactingMultiphaseCloudType; \
175 defineNamedTemplateTypeNameAndDebug \
176 (Foam::SS<reactingMultiphaseCloudType>, 0); \
178 Foam::DevolatilisationModel<reactingMultiphaseCloudType>:: \
179 adddictionaryConstructorToTable \
180 <Foam::SS<reactingMultiphaseCloudType>> \
181 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.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
Templated devolatilisation model class.
scalar dMass_
Mass of lagrangian phase converted.
virtual autoPtr< DevolatilisationModel< CloudType > > clone() const =0
Construct and return a clone.
virtual void info(Ostream &os)
Write injection info to stream.
DevolatilisationModel(CloudType &owner)
Construct null from owner.
static autoPtr< DevolatilisationModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual ~DevolatilisationModel()
Destructor.
TypeName("devolatilisationModel")
Runtime type information.
virtual void calculate(const typename CloudType::parcelType &p, const typename CloudType::parcelType::trackingData &td, const scalar dt, 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.
declareRunTimeSelectionTable(autoPtr, DevolatilisationModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
void addToDevolatilisationMass(const scalar dMass)
Add to devolatilisation mass.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
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.