33 namespace extrudeModels
51 direction_ /=
mag(direction_);
56 <<
"thickness should be positive : " << thickness_
70 point linearDirection::operator()
72 const point& surfacePoint,
73 const vector& surfaceNormal,
78 scalar d = thickness_*sumThickness(layer);
79 return surfacePoint + d*direction_;
Macros for easy insertion into run-time selection tables.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Top level extrusion model class.
Extrudes by transforming points in a specified direction by a given distance.
linearDirection(const dictionary &dict)
Construct from dictionary.
virtual ~linearDirection()
Destructor.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(cyclicSector, 0)
addToRunTimeSelectionTable(extrudeModel, cyclicSector, dictionary)
const unitSet & lookup(const word &unitName)
Lookup and return the named unit from the table.
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
tmp< DimensionedField< scalar, GeoMesh, Field > > mag(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)