sector Class Reference

Extrudes by rotating a surface around an axis. More...

Inheritance diagram for sector:
Collaboration diagram for sector:

Public Member Functions

 TypeName ("sector")
 Runtime type information. More...
 sector (const dictionary &dict)
 Construct from dictionary. More...
virtual ~sector ()=default
 Destructor. More...
point operator() (const point &surfacePoint, const vector &surfaceNormal, const label layer) const
 Return corresponding point. More...
- Public Member Functions inherited from extrudeModel
 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...

Additional Inherited Members

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

Detailed Description

Extrudes by rotating a surface around an axis.

- extrusion is opposite the surface/patch normal so inwards the source mesh

  • axis direction has to be consistent with this.
  • use -mergeFaces option if doing full 360 and want to merge front and back
  • note direction of axis. This should be consistent with rotating against the patch normal direction. If you get it wrong you'll see all cells with extreme aspect ratio and internal faces wrong way around in checkMesh

The sectorCoeffs dictionary entries

Property Description Required Default
point A point on the axis yes
axis Axis direction, normalized on input yes
angle Sector angle (degrees) yes
For compatibility, accepts the entry axisPt (1812 and earlier) as equivalent to point.

Definition at line 90 of file sector.H.

Constructor & Destructor Documentation

◆ sector()

sector ( const dictionary dict)

Construct from dictionary.

Definition at line 49 of file sector.C.

◆ ~sector()

virtual ~sector ( )


Member Function Documentation

◆ TypeName()

TypeName ( "sector"  )

Runtime type information.

◆ operator()()

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

Return corresponding point.

Implements extrudeModel.

Definition at line 61 of file sector.C.

References Foam::cos(), Foam::mag(), n, and Foam::sin().

Here is the call graph for this function:

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