36 #ifndef DevolatilisationModel_H 37 #define DevolatilisationModel_H 53 template<
class CloudType>
54 class DevolatilisationModel
56 public CloudSubModelBase<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_; TypeName("devolatilisationModel")
Runtime type information.
A list of keyword definitions, which are a keyword followed by any number of values (e...
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.
ParcelType parcelType
Type of parcel the cloud was instantiated for.
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.
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.
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.