41 #ifndef DevolatilisationModel_H 42 #define DevolatilisationModel_H 58 template<
class CloudType>
59 class DevolatilisationModel
61 public CloudSubModelBase<CloudType>
156 #define makeDevolatilisationModel(CloudType) \ 158 typedef Foam::CloudType::reactingMultiphaseCloudType \ 159 reactingMultiphaseCloudType; \ 160 defineNamedTemplateTypeNameAndDebug \ 162 Foam::DevolatilisationModel<reactingMultiphaseCloudType>, \ 167 defineTemplateRunTimeSelectionTable \ 169 DevolatilisationModel<reactingMultiphaseCloudType>, \ 175 #define makeDevolatilisationModelType(SS, CloudType) \ 177 typedef Foam::CloudType::reactingMultiphaseCloudType \ 178 reactingMultiphaseCloudType; \ 179 defineNamedTemplateTypeNameAndDebug \ 180 (Foam::SS<reactingMultiphaseCloudType>, 0); \ 182 Foam::DevolatilisationModel<reactingMultiphaseCloudType>:: \ 183 adddictionaryConstructorToTable \ 184 <Foam::SS<reactingMultiphaseCloudType>> \ 185 add##SS##CloudType##reactingMultiphaseCloudType##ConstructorToTable_; TypeName("devolatilisationModel")
Runtime type information.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
virtual ~DevolatilisationModel()
Destructor.
A class for handling words, derived from Foam::string.
scalar dMass_
Mass of lagrangian phase converted.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Templated devolatilisation model class.
declareRunTimeSelectionTable(autoPtr, DevolatilisationModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
Macros to ease declaration of run-time selection tables.
virtual void info()
Write injection info.
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.