112 #ifndef HeatTransferModel_H 113 #define HeatTransferModel_H 129 template<
class CloudType>
130 class HeatTransferModel
132 public CloudSubModelBase<CloudType>
137 const Switch BirdCorrection_;
152 const dictionary&
dict,
162 void operator=(
const HeatTransferModel<CloudType>&) =
delete;
173 const dictionary&
dict,
182 virtual autoPtr<HeatTransferModel<CloudType>>
clone()
const = 0;
190 static autoPtr<HeatTransferModel<CloudType>>
New 192 const dictionary&
dict,
202 return BirdCorrection_;
233 #define makeHeatTransferModel(CloudType) \ 235 typedef Foam::CloudType::thermoCloudType thermoCloudType; \ 236 defineNamedTemplateTypeNameAndDebug \ 238 Foam::HeatTransferModel<thermoCloudType>, \ 243 defineTemplateRunTimeSelectionTable \ 245 HeatTransferModel<thermoCloudType>, \ 251 #define makeHeatTransferModelType(SS, CloudType) \ 253 typedef Foam::CloudType::thermoCloudType thermoCloudType; \ 254 defineNamedTemplateTypeNameAndDebug(Foam::SS<thermoCloudType>, 0); \ 256 Foam::HeatTransferModel<thermoCloudType>:: \ 257 adddictionaryConstructorToTable<Foam::SS<thermoCloudType>> \ 258 add##SS##CloudType##thermoCloudType##ConstructorToTable_; dimensionedScalar Pr("Pr", dimless, laminarTransport)
DSMCCloud< dsmcParcel > CloudType
virtual ~HeatTransferModel()=default
Destructor.
static autoPtr< HeatTransferModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Selector.
const dimensionedScalar kappa
Coulomb constant: default SI units: [N.m2/C2].
const dictionary & dict() const
Return const access to the cloud dictionary.
const CloudType & owner() const
Return const access to the owner cloud.
virtual scalar htc(const scalar dp, const scalar Re, const scalar Pr, const scalar kappa, const scalar NCpW) const
Return heat transfer coefficient.
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
TypeName("heatTransferModel")
Runtime type information.
HeatTransferModel(CloudType &owner)
Construct null from owner.
declareRunTimeSelectionTable(autoPtr, HeatTransferModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
Declare runtime constructor selection table.
scalarField Re(const UList< complex > &cf)
Extract real component.
bool BirdCorrection() const noexcept
The Bird HTC correction flag.
virtual autoPtr< HeatTransferModel< CloudType > > clone() const =0
Construct and return a clone.
void operator=(const HeatTransferModel< CloudType > &)=delete
No copy assignment.
Macros to ease declaration of run-time selection tables.
virtual scalar Nu(const scalar Re, const scalar Pr) const =0
Return Nusselt number.