Loading...
Searching...
No Matches
linearDirection Class Reference

Extrudes by transforming points in a specified direction by the given distance. More...

#include <linearDirection.H>

Inheritance diagram for linearDirection:
Collaboration diagram for linearDirection:

Public Member Functions

 TypeName ("linearDirection")
 Runtime type information.
 linearDirection (const dictionary &dict)
 Construct from dictionary.
virtual ~linearDirection ()=default
 Destructor.
point operator() (const point &surfacePoint, const vector &surfaceNormal, const label layer) const
Public Member Functions inherited from extrudeModel
 TypeName ("extrudeModel")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, extrudeModel, dictionary,(const dictionary &dict),(dict))
 Declare runtime constructor selection table.
 extrudeModel (const word &modelType, const dictionary &dict)
 Construct from dictionary for given model type.
virtual ~extrudeModel ()=default
 Destructor.
label nLayers () const
 Return the number of layers.
scalar expansionRatio () const
 Return the expansion ratio.
scalar sumThickness (const label layer) const
 Helper: calculate cumulative relative thickness for layer.

Additional Inherited Members

Static Public Member Functions inherited from extrudeModel
static autoPtr< extrudeModelNew (const dictionary &dict)
 Select null constructed.
Protected Member Functions inherited from extrudeModel
 extrudeModel (const extrudeModel &)=delete
 No copy construct.
void operator= (const extrudeModel &)=delete
 No copy assignment.
Protected Attributes inherited from extrudeModel
label nLayers_
const scalar expansionRatio_
const dictionarycoeffDict_

Detailed Description

Extrudes by transforming points in a specified direction by the given distance.

The linearDirectionCoeffs dictionary entries

Property Description Required Default
direction The extrusion direction, normalized on input yes
thickness The extrusion thickness yes

Definition at line 68 of file linearDirection.H.

Constructor & Destructor Documentation

◆ linearDirection()

linearDirection ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 40 of file linearDirection.C.

References extrudeModel::coeffDict_, dict, Foam::exit(), extrudeModel::extrudeModel(), Foam::FatalError, FatalErrorInFunction, and Foam::GlobalIOList< Tuple2< scalar, vector > >::typeName.

Here is the call graph for this function:

◆ ~linearDirection()

virtual ~linearDirection ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "linearDirection" )

Runtime type information.

References dict.

◆ operator()()

point operator() ( const point & surfacePoint,
const vector & surfaceNormal,
const label layer ) const
virtual

Implements extrudeModel.

Definition at line 57 of file linearDirection.C.

References extrudeModel::sumThickness().

Here is the call graph for this function:

The documentation for this class was generated from the following files: