Top level extrusion model class. More...
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< extrudeModel > | New (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 dictionary & | coeffDict_ |
Top level extrusion model class.
Dictionary entries
Property | Description | Required | Default |
---|---|---|---|
nLayer | Number of extrusion layers | no | 1 |
expansionRatio | Expansion ratio | no | 1 |
Definition at line 72 of file extrudeModel.H.
|
protecteddelete |
No copy construct.
extrudeModel | ( | const word & | modelType, |
const dictionary & | dict | ||
) |
Construct from dictionary for given model type.
The corresponding model Coeffs dictionary must exist.
Definition at line 35 of file extrudeModel.C.
|
virtualdefault |
Destructor.
|
protecteddelete |
No copy assignment.
TypeName | ( | "extrudeModel" | ) |
Runtime type information.
declareRunTimeSelectionTable | ( | autoPtr | , |
extrudeModel | , | ||
dictionary | , | ||
(const dictionary &dict) | , | ||
(dict) | |||
) |
Declare runtime constructor selection table.
|
static |
Select null constructed.
Definition at line 27 of file extrudeModelNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.
Foam::label nLayers | ( | ) | const |
Return the number of layers.
Definition at line 52 of file extrudeModel.C.
References extrudeModel::nLayers_.
Foam::scalar expansionRatio | ( | ) | const |
Return the expansion ratio.
Definition at line 58 of file extrudeModel.C.
Referenced by sigmaRadial::sigmaRadial().
Foam::scalar sumThickness | ( | const label | layer | ) | const |
Helper: calculate cumulative relative thickness for layer.
(layer=0 -> 0; layer=nLayers -> 1)
Definition at line 64 of file extrudeModel.C.
References Foam::mag(), and Foam::pow().
Referenced by linearNormal::linearNormal().
|
pure virtual |
Implemented in polyline, offsetSurface, sector, linearNormal, linearDirection, sigmaRadial, linearRadial, and radial.
|
protected |
Definition at line 78 of file extrudeModel.H.
Referenced by linearNormal::linearNormal(), extrudeModel::nLayers(), plane::plane(), and wedge::wedge().
|
protected |
Definition at line 80 of file extrudeModel.H.
|
protected |
Definition at line 82 of file extrudeModel.H.
Referenced by offsetSurface::offsetSurface().