51 thickness_(
coeffDict_.get<scalar>(
"thickness"))
56 <<
"thickness should be positive : " << thickness_
64point linearDirection::operator()
66 const point& surfacePoint,
67 const vector& surfaceNormal,
71 return surfacePoint + (thickness_*sumThickness(layer)) * direction_;
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Top level extrusion model class.
extrudeModel(const extrudeModel &)=delete
No copy construct.
const dictionary & coeffDict_
scalar sumThickness(const label layer) const
Helper: calculate cumulative relative thickness for layer.
Extrudes by transforming points in a specified direction by the given distance.
linearDirection(const dictionary &dict)
Construct from dictionary.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word GlobalIOList< Tuple2< scalar, vector > >::typeName("scalarVectorTable")
vector point
Point is a vector.
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
errorManipArg< error, int > exit(error &err, const int errNo=1)