40 const word& modelType,
44 nLayers_(
dict.lookupOrDefault<
label>(
"nLayers", 1)),
45 expansionRatio_(
dict.lookupOrDefault<scalar>(
"expansionRatio", 1)),
47 coeffDict_(
dict.optionalSubDict(modelType +
"Coeffs"))
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_));
A list of keyword definitions, which are a keyword followed by any number of values (e....
Top level extrusion model class.
virtual ~extrudeModel()
Destructor.
scalar expansionRatio() const
scalar sumThickness(const label layer) const
Helper: calculate cumulative relative thickness for layer.
extrudeModel(const word &modelType, const dictionary &)
Construct from dictionary.
A class for handling words, derived from string.
defineRunTimeSelectionTable(reactionRateFlameArea, dictionary)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > mag(const dimensioned< Type > &)
defineTypeNameAndDebug(combustionModel, 0)