Go to the documentation of this file.
42 #ifndef PhaseChangeModel_H
43 #define PhaseChangeModel_H
59 template<
class CloudType>
60 class PhaseChangeModel
62 public CloudSubModelBase<CloudType>
213 #define makePhaseChangeModel(CloudType) \
215 typedef Foam::CloudType::reactingCloudType reactingCloudType; \
216 defineNamedTemplateTypeNameAndDebug \
218 Foam::PhaseChangeModel<reactingCloudType>, \
223 defineTemplateRunTimeSelectionTable \
225 PhaseChangeModel<reactingCloudType>, \
231 #define makePhaseChangeModelType(SS, CloudType) \
233 typedef Foam::CloudType::reactingCloudType reactingCloudType; \
234 defineNamedTemplateTypeNameAndDebug(Foam::SS<reactingCloudType>, 0); \
236 Foam::PhaseChangeModel<reactingCloudType>:: \
237 adddictionaryConstructorToTable<Foam::SS<reactingCloudType>> \
238 add##SS##CloudType##reactingCloudType##ConstructorToTable_;
static autoPtr< PhaseChangeModel< CloudType > > New(const dictionary &dict, CloudType &owner)
Templated phase change model class.
virtual ~PhaseChangeModel()=default
A class for handling words, derived from Foam::string.
enthalpyTransferType enthalpyTransfer_
virtual void calculate(const scalar dt, const label celli, const scalar Re, const scalar Pr, const scalar d, const scalar nu, const scalar rho, const scalar T, const scalar Ts, const scalar pc, const scalar Tc, const scalarField &X, const scalarField &solMass, const scalarField &liqMass, scalarField &dMassPC) const =0
PhaseChangeModel(CloudType &owner)
virtual void info(Ostream &os)
declareRunTimeSelectionTable(autoPtr, PhaseChangeModel, dictionary,(const dictionary &dict, CloudType &owner),(dict, owner))
virtual scalar dh(const label idc, const label idl, const scalar p, const scalar T) const
TypeName("phaseChangeModel")
Generic templated field type.
dimensionedScalar Pr("Pr", dimless, laminarTransport)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Templated base class for dsmc cloud.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
OBJstream os(runTime.globalPath()/outputName)
static const wordList enthalpyTransferTypeNames
enthalpyTransferType wordToEnthalpyTransfer(const word &etName) const
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Macros to ease declaration of run-time selection tables.
virtual scalar TMax(const scalar p, const scalarField &X) const
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
fileName::Type type(const fileName &name, const bool followLink=true)
scalarField Re(const UList< complex > &cf)
virtual scalar Tvap(const scalarField &X) const
const enthalpyTransferType & enthalpyTransfer() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual autoPtr< PhaseChangeModel< CloudType > > clone() const =0
void addToPhaseChangeMass(const scalar dMass)