37 namespace extrudeModels
52 refPoint_(coeffDict_.getCompat<
point>(
"point", {{
"axisPt", -1812}})),
53 axis_(coeffDict_.get<
vector>(
"axis").normalise()),
54 angle_(
degToRad(coeffDict_.get<scalar>(
"angle")))
60 point sector::operator()
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;
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Unit conversion functions.
defineTypeNameAndDebug(cyclicSector, 0)
Macros for easy insertion into run-time selection tables.
Top level extrusion model class.
dimensionedScalar cos(const dimensionedScalar &ds)
Extrudes by rotating a surface around an axis.
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
addToRunTimeSelectionTable(extrudeModel, cyclicSector, dictionary)
vector point
Point is a vector.
sector(const dictionary &dict)
Construct from dictionary.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.