36 #ifndef HeatTransferModel_H
37 #define HeatTransferModel_H
53 template<
class CloudType>
61 const Switch BirdCorrection_;
150 #define makeHeatTransferModel(CloudType) \
152 typedef Foam::CloudType::thermoCloudType thermoCloudType; \
153 defineNamedTemplateTypeNameAndDebug \
155 Foam::HeatTransferModel<thermoCloudType>, \
160 defineTemplateRunTimeSelectionTable \
162 HeatTransferModel<thermoCloudType>, \
168 #define makeHeatTransferModelType(SS, CloudType) \
170 typedef Foam::CloudType::thermoCloudType thermoCloudType; \
171 defineNamedTemplateTypeNameAndDebug(Foam::SS<thermoCloudType>, 0); \
173 Foam::HeatTransferModel<thermoCloudType>:: \
174 adddictionaryConstructorToTable<Foam::SS<thermoCloudType>> \
175 add##SS##CloudType##thermoCloudType##ConstructorToTable_;
Base class for cloud sub-models.
const CloudType & owner() const
Return const access to the owner cloud.
Templated base class for dsmc cloud.
Templated heat transfer model class.
virtual autoPtr< HeatTransferModel< CloudType > > clone() const =0
Construct and return a clone.
declareRunTimeSelectionTable(autoPtr, HeatTransferModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
static autoPtr< HeatTransferModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
virtual ~HeatTransferModel()
Destructor.
virtual scalar htc(const scalar dp, const scalar Re, const scalar Pr, const scalar kappa, const scalar NCpW) const
Return heat transfer coefficient.
TypeName("heatTransferModel")
Runtime type information.
virtual scalar Nu(const scalar Re, const scalar Pr) const =0
Nusselt number.
HeatTransferModel(CloudType &owner)
Construct null from owner.
const Switch & BirdCorrection() const
Return the Bird htc correction flag.
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 kappa
Coulomb constant: default SI units: [N.m2/C2].
fileType type(const fileName &, const bool checkVariants=true, const bool followLink=true)
Return the file type: directory or file.
scalarField Re(const UList< complex > &cf)
Macros to ease declaration of run-time selection tables.