33 namespace extrudeModels
48 direction_(coeffDict_.
lookup(
"direction")),
49 thickness_(coeffDict_.
lookup<scalar>(
"thickness"))
51 direction_ /=
mag(direction_);
56 <<
"thickness should be positive : " << thickness_
70 point linearDirection::operator()
72 const point& surfacePoint,
73 const vector& surfaceNormal,
79 return surfacePoint + d*direction_;
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(cyclicSector, 0)
Macros for easy insertion into run-time selection tables.
virtual ~linearDirection()
Destructor.
Top level extrusion model class.
stressControl lookup("compactNormalStress") >> compactNormalStress
scalar sumThickness(const label layer) const
Helper: calculate cumulative relative thickness for layer.
addToRunTimeSelectionTable(extrudeModel, cyclicSector, dictionary)
dimensioned< scalar > mag(const dimensioned< Type > &)
linearDirection(const dictionary &dict)
Construct from dictionary.