36 #ifndef AtomisationModel_H
37 #define AtomisationModel_H
53 template<
class CloudType>
112 scalar
Taverage(
const scalar& Tliq,
const scalar& Tc)
const;
118 virtual bool calcChi()
const = 0;
129 const scalar volFlowRate,
133 const vector& injectionPos,
134 const scalar pAmbient,
147 #define makeAtomisationModel(CloudType) \
149 typedef Foam::CloudType::sprayCloudType sprayCloudType; \
150 defineNamedTemplateTypeNameAndDebug \
152 Foam::AtomisationModel<sprayCloudType>, \
158 defineTemplateRunTimeSelectionTable \
160 AtomisationModel<sprayCloudType>, \
166 #define makeAtomisationModelType(SS, CloudType) \
168 typedef Foam::CloudType::sprayCloudType sprayCloudType; \
169 defineNamedTemplateTypeNameAndDebug(Foam::SS<sprayCloudType>, 0); \
171 Foam::AtomisationModel<sprayCloudType>:: \
172 adddictionaryConstructorToTable<Foam::SS<sprayCloudType>> \
173 add##SS##CloudType##sprayCloudType##ConstructorToTable_;
Templated atomisation model class.
virtual autoPtr< AtomisationModel< CloudType > > clone() const =0
Construct and return a clone.
virtual ~AtomisationModel()
Destructor.
virtual void update(const scalar dt, scalar &d, scalar &liquidCore, scalar &tc, const scalar rho, const scalar mu, const scalar sigma, const scalar volFlowRate, const scalar rhoAv, const scalar Urel, const vector &pos, const vector &injectionPos, const scalar pAmbient, const scalar chi, randomGenerator &rndGen) const =0
TypeName("atomisationModel")
Runtime type information.
declareRunTimeSelectionTable(autoPtr, AtomisationModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual scalar initLiquidCore() const =0
Initial value of liquidCore.
static autoPtr< AtomisationModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual bool calcChi() const =0
Flag to indicate if chi needs to be calculated.
scalar Taverage(const scalar &Tliq, const scalar &Tc) const
Average temperature calculation.
AtomisationModel(CloudType &owner)
Construct null from owner.
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
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.
const dimensionedScalar sigma
Stefan-Boltzmann constant: default SI units: [W/m^2/K^4].
const dimensionedScalar mu
Atomic mass unit.
dimensionedScalar pos(const dimensionedScalar &ds)
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.
randomGenerator rndGen(653213)