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.
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineRunTimeSelectionTable(fvConstraint, dictionary)
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
defineTypeNameAndDebug(atmosphericBoundaryLayer, 0)