37namespace extrudeModels
52 refPoint_(coeffDict_.getCompat<
point>(
"point", {{
"axisPt", -1812}})),
54 angle_(
degToRad(coeffDict_.get<scalar>(
"angle")))
62 const point& surfacePoint,
63 const vector& surfaceNormal,
75 sliceAngle = -angle_/2.0;
79 sliceAngle = angle_/2.0;
84 sliceAngle = angle_*sumThickness(layer);
90 point d = surfacePoint - refPoint_;
92 d -= (axis_ & d)*axis_;
96 point edgePt = surfacePoint - d;
99 point rotatedPoint = edgePt;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Vector< Cmpt > & normalise(const scalar tol=ROOTVSMALL)
Inplace normalise the vector by its magnitude.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Top level extrusion model class.
Extrudes by rotating a surface around an axis.
friend Ostream & operator(Ostream &, const faMatrix< Type > &)
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
dimensionedScalar sin(const dimensionedScalar &ds)
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar cos(const dimensionedScalar &ds)
Unit conversion functions.