Loading...
Searching...
No Matches
linearNormal Class Reference

Extrudes by transforming points normal to the surface by a given distance. More...

#include <linearNormal.H>

Inheritance diagram for linearNormal:
Collaboration diagram for linearNormal:

Public Member Functions

 TypeName ("linearNormal")
 Runtime type information.
 linearNormal (const dictionary &dict)
 Construct from dictionary.
virtual ~linearNormal ()=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 normal to the surface by a given distance.

The linearNormalCoeffs dictionary entries

Property Description Required Default
thickness Extrusion thickness yes
firstCellThickness Thickness of the first layer no 0

Definition at line 68 of file linearNormal.H.

Constructor & Destructor Documentation

◆ linearNormal()

linearNormal ( const dictionary & dict)
explicit

Construct from dictionary.

Definition at line 41 of file linearNormal.C.

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

Referenced by plane::plane().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ~linearNormal()

virtual ~linearNormal ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "linearNormal" )

Runtime type information.

References dict.

◆ operator()()

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

Implements extrudeModel.

Definition at line 88 of file linearNormal.C.


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