26 #include "reactionDriven.H" 34 namespace diameterModels
36 namespace nucleationModels
57 const populationBalanceModel& popBal,
58 const dictionary& dict
61 nucleationModel(popBal, dict),
62 dNuc_(
"nucleationDiameter",
dimLength, dict),
67 dmdtfName_(dict.
lookup(
"dmdtf")),
68 specieName_(dict.
lookup(
"specie"))
72 dNuc_.value() < velGroup_.sizeGroups().first().dSph().value()
73 || dNuc_.value() > velGroup_.sizeGroups().last().dSph().value()
77 <<
"Nucleation diameter " << dNuc_.value() <<
"m outside of range [" 78 << velGroup_.sizeGroups().first().dSph().value() <<
", " 79 << velGroup_.sizeGroups().last().dSph().value() <<
"]." <<
nl 94 const sizeGroup& fi = popBal_.sizeGroups()[i];
97 const phaseInterface
interface(velGroup_.phase(), reactingPhase_);
109 const scalar dmidtfSign =
113 popBal_.eta(i,
pi/6*
pow3(dNuc_))*dmidtfSign*dmidtf/rho/fi.x();
FvWallInfoData< WallInfo, label > label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
reactionDriven(const populationBalanceModel &popBal, const dictionary &dict)
virtual word name() const
Name.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimLength
GeometricField< scalar, fvPatchField, volMesh > volScalarField
stressControl lookup("compactNormalStress") >> compactNormalStress
static word groupName(Name name, const word &group)
virtual void addToNucleationRate(volScalarField &nucleationRate, const label i)
Add to nucleationRate.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
const phaseInterface & interface() const
Access the interface.
dimensionedScalar pow3(const dimensionedScalar &ds)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
label index(const phaseModel &phase) const
Return the index of the given phase. Generates a FatalError if.
phaseSystem::phaseModelList & phases