40 nLayers_(single ? 1 :
dict.lookup<
label>(
"nLayers")),
41 expansionRatio_(single ? 1 :
dict.lookup<scalar>(
"expansionRatio"))
61 return expansionRatio_;
69 if (
mag(1.0-expansionRatio_) < small)
71 return scalar(layer)/nLayers_;
76 (1.0-
pow(expansionRatio_, layer))
77 / (1.0-
pow(expansionRatio_, nLayers_));
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Top level extrusion model class.
extrudeModel(const dictionary &, const bool single=false)
Construct from dictionary.
label nLayers() const
Return the number of layers in the extrusion.
virtual ~extrudeModel()
Destructor.
scalar expansionRatio() const
Return the extrusion expansion ratio.
scalar sumThickness(const label layer) const
Helper: calculate cumulative relative thickness for layer.
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.
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
void pow(LagrangianPatchField< typename powProduct< Type, r >::type > &f, const LagrangianPatchField< Type > &f1)
defineTypeNameAndDebug(combustionModel, 0)