36 #ifndef BreakupModel_H
37 #define BreakupModel_H
52 template<
class CloudType>
131 inline const scalar&
y0()
const
136 inline const scalar&
yDot0()
const
146 inline const scalar&
TABCmu()
const
182 const label injectori,
195 #define makeBreakupModel(CloudType) \
197 typedef Foam::CloudType::sprayCloudType sprayCloudType; \
198 defineNamedTemplateTypeNameAndDebug \
200 Foam::BreakupModel<sprayCloudType>, \
206 defineTemplateRunTimeSelectionTable \
208 BreakupModel<sprayCloudType>, \
214 #define makeBreakupModelType(SS, CloudType) \
216 typedef Foam::CloudType::sprayCloudType sprayCloudType; \
217 defineNamedTemplateTypeNameAndDebug(Foam::SS<sprayCloudType>, 0); \
219 Foam::BreakupModel<sprayCloudType>:: \
220 adddictionaryConstructorToTable<Foam::SS<sprayCloudType>> \
221 add##SS##CloudType##sprayCloudType##ConstructorToTable_;
Templated break-up model class.
static autoPtr< BreakupModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const scalar & TABtwoWeCrit() const
const scalar & y0() const
declareRunTimeSelectionTable(autoPtr, BreakupModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
virtual bool update(const scalar dt, const vector &g, scalar &d, scalar &tc, scalar &ms, scalar &nParticle, scalar &KHindex, scalar &y, scalar &yDot, const scalar d0, const scalar rho, const scalar mu, const scalar sigma, const vector &U, const scalar rhoc, const scalar muc, const vector &Urel, const scalar Urmag, const scalar tMom, const label injectori, scalar &dChild, scalar &massChild)=0
Update the parcel properties and return true if a child parcel.
const scalar & yDot0() const
const scalar & TABComega() const
const scalar & TABCmu() const
const Switch & solveOscillationEq() const
BreakupModel(CloudType &owner)
Construct null from owner.
virtual ~BreakupModel()
Destructor.
TypeName("breakupModel")
Runtime type information.
virtual autoPtr< BreakupModel< CloudType > > clone() const =0
Construct and return a clone.
Switch solveOscillationEq_
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
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.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
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.