Go to the documentation of this file.
36 namespace extrudeModels
51 thickness_(coeffDict_.get<scalar>(
"thickness")),
54 coeffDict_.lookupOrDefault<scalar>(
"firstCellThickness", 0)
56 layerPoints_(nLayers_)
61 <<
"thickness should be positive : " << thickness_
65 if (
nLayers_ > 1 && firstCellThickness_ > 0)
67 if (thickness_ <= firstCellThickness_)
70 <<
"firstCellThickness leave no room for further layers"
74 layerPoints_[0] = firstCellThickness_;
79 (thickness_ - layerPoints_[0])
87 layerPoints_[layer] = thickness_*
sumThickness(layer + 1);
95 point linearNormal::operator()
97 const point& surfacePoint,
98 const vector& surfaceNormal,
107 return surfacePoint + layerPoints_[layer - 1]*surfaceNormal;
scalar sumThickness(const label layer) const
Helper: calculate cumulative relative thickness for layer.
defineTypeNameAndDebug(cyclicSector, 0)
Top level extrusion model class.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
addToRunTimeSelectionTable(extrudeModel, cyclicSector, dictionary)
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Templated 3D Vector derived from VectorSpace adding construction from 3 components,...
linearNormal(const dictionary &dict)
Construct from dictionary.