Go to the documentation of this file.
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_;
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 Foam::string.
static autoPtr< DevolatilisationModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
DevolatilisationModel(CloudType &owner)
Construct null from owner.
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 a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Macros to ease declaration of run-time selection tables.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
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,...
declareRunTimeSelectionTable(autoPtr, DevolatilisationModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.