extrudeModel Class Referenceabstract

Top level extrusion model class. More...

Inheritance diagram for extrudeModel:
[legend]
Collaboration diagram for extrudeModel:
[legend]

Public Member Functions

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

Static Public Member Functions

static autoPtr< extrudeModelNew (const dictionary &dict)
 Select null constructed. More...
 

Protected Member Functions

 extrudeModel (const extrudeModel &)=delete
 No copy construct. More...
 
void operator= (const extrudeModel &)=delete
 No copy assignment. More...
 

Protected Attributes

label nLayers_
 
const scalar expansionRatio_
 
const dictionarycoeffDict_
 

Detailed Description

Top level extrusion model class.

Dictionary entries

Property Description Required Default
nLayer Number of extrusion layers no 1
expansionRatio Expansion ratio no 1
Source files

Definition at line 76 of file extrudeModel.H.

Constructor & Destructor Documentation

◆ extrudeModel() [1/2]

extrudeModel ( const extrudeModel )
protecteddelete

No copy construct.

◆ extrudeModel() [2/2]

extrudeModel ( const word modelType,
const dictionary dict 
)

Construct from dictionary for given model type.

The corresponding model Coeffs dictionary must exist.

Definition at line 41 of file extrudeModel.C.

References extrudeModel::coeffDict_, DebugInfo, and Foam::nl.

◆ ~extrudeModel()

virtual ~extrudeModel ( )
virtualdefault

Destructor.

Member Function Documentation

◆ operator=()

void operator= ( const extrudeModel )
protecteddelete

No copy assignment.

◆ TypeName()

TypeName ( "extrudeModel"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
extrudeModel  ,
dictionary  ,
(const dictionary &dict ,
(dict  
)

Declare runtime constructor selection table.

◆ New()

Foam::autoPtr< Foam::extrudeModel > New ( const dictionary dict)
static

Select null constructed.

Definition at line 33 of file extrudeModelNew.C.

References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), and Foam::Info.

Here is the call graph for this function:

◆ nLayers()

Foam::label nLayers ( ) const

Return the number of layers.

Definition at line 59 of file extrudeModel.C.

◆ expansionRatio()

Foam::scalar expansionRatio ( ) const

Return the expansion ratio.

Definition at line 65 of file extrudeModel.C.

Referenced by sigmaRadial::sigmaRadial().

Here is the caller graph for this function:

◆ sumThickness()

Foam::scalar sumThickness ( const label  layer) const

Helper: calculate cumulative relative thickness for layer.

(layer=0 -> 0; layer=nLayers -> 1)

Definition at line 71 of file extrudeModel.C.

References Foam::mag(), and Foam::pow().

Referenced by linearNormal::linearNormal().

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

◆ operator()()

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

Member Data Documentation

◆ nLayers_

label nLayers_
protected

Definition at line 82 of file extrudeModel.H.

Referenced by linearNormal::linearNormal(), plane::plane(), and wedge::wedge().

◆ expansionRatio_

const scalar expansionRatio_
protected

Definition at line 84 of file extrudeModel.H.

◆ coeffDict_

const dictionary& coeffDict_
protected

Definition at line 86 of file extrudeModel.H.

Referenced by extrudeModel::extrudeModel(), and offsetSurface::offsetSurface().


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