43 const word& modelType,
47 nLayers_(
dict.getOrDefault<label>(
"nLayers", 1)),
48 expansionRatio_(
dict.getOrDefault<scalar>(
"expansionRatio", 1)),
49 coeffDict_(
dict.optionalSubDict(modelType +
"Coeffs"))
52 <<
"Selected extrudeModel for " << modelType
67 return expansionRatio_;
75 if (
mag(1.0-expansionRatio_) < SMALL)
77 return scalar(layer)/nLayers_;
82 (1.0-
pow(expansionRatio_, layer))
83 / (1.0-
pow(expansionRatio_, nLayers_));
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
const dictionary & coeffDict_
Top level extrusion model class.
A class for handling words, derived from Foam::string.
label nLayers() const
Return the number of layers.
#define DebugInfo
Report an information message using Foam::Info.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
defineTypeNameAndDebug(combustionModel, 0)
scalar sumThickness(const label layer) const
Helper: calculate cumulative relative thickness for layer.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
extrudeModel(const extrudeModel &)=delete
No copy construct.
scalar expansionRatio() const
Return the expansion ratio.