Top level extrusion model class. More...
#include <extrudeModel.H>


Public Member Functions | |
| 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. | |
| 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. | |
Protected Member Functions | |
| extrudeModel (const extrudeModel &)=delete | |
| No copy construct. | |
| void | operator= (const extrudeModel &)=delete |
| No copy assignment. | |
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.
References extrudeModel().
Referenced by declareRunTimeSelectionTable(), extrudeModel(), linearDirection::linearDirection(), linearNormal::linearNormal(), linearRadial::linearRadial(), offsetSurface::offsetSurface(), operator=(), polyline::polyline(), radial::radial(), sector::sector(), and sigmaRadial::sigmaRadial().


| extrudeModel | ( | const word & | modelType, |
| const dictionary & | dict ) |
Construct from dictionary for given model type.
The corresponding model Coeffs dictionary must exist.
Definition at line 34 of file extrudeModel.C.
References coeffDict_, DebugInfo, dict, expansionRatio_, Foam::nl, and nLayers_.
|
virtualdefault |
Destructor.
|
protecteddelete |
| TypeName | ( | "extrudeModel" | ) |
Runtime type information.
| declareRunTimeSelectionTable | ( | autoPtr | , |
| extrudeModel | , | ||
| dictionary | , | ||
| (const dictionary &dict) | , | ||
| (dict) | ) |
Declare runtime constructor selection table.
References dict, and extrudeModel().

|
static |
Select null constructed.
Definition at line 26 of file extrudeModelNew.C.
References dict, Foam::endl(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, and Foam::Info.
Referenced by radial::radial().


| Foam::label nLayers | ( | ) | const |
| Foam::scalar expansionRatio | ( | ) | const |
Return the expansion ratio.
Definition at line 58 of file extrudeModel.C.
References expansionRatio_.
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 expansionRatio_, Foam::mag(), nLayers_, and Foam::pow().
Referenced by linearNormal::linearNormal(), linearDirection::operator()(), linearRadial::operator()(), offsetSurface::operator()(), polyline::operator()(), and sector::operator()().


|
pure virtual |
Implemented in linearDirection, linearNormal, linearRadial, offsetSurface, polyline, radial, sector, and sigmaRadial.
|
protected |
Definition at line 78 of file extrudeModel.H.
Referenced by extrudeModel(), linearNormal::linearNormal(), nLayers(), sector::operator()(), sigmaRadial::operator()(), plane::plane(), sumThickness(), and wedge::wedge().
|
protected |
Definition at line 80 of file extrudeModel.H.
Referenced by expansionRatio(), extrudeModel(), and sumThickness().
|
protected |
Definition at line 82 of file extrudeModel.H.
Referenced by extrudeModel(), linearDirection::linearDirection(), linearNormal::linearNormal(), linearRadial::linearRadial(), offsetSurface::offsetSurface(), polyline::polyline(), radial::radial(), sector::sector(), and sigmaRadial::sigmaRadial().