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 ()
 Destructor. More...
point operator() (const point &surfacePoint, const vector &surfaceNormal, const label layer) const
- 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 &)
 Construct from dictionary. More...
 extrudeModel (const extrudeModel &)=delete
 Disallow default bitwise copy construction. More...
virtual ~extrudeModel ()
 Destructor. More...
label nLayers () const
scalar expansionRatio () const
void operator= (const extrudeModel &)=delete
 Disallow default bitwise assignment. 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 &)
 Select null constructed. More...
- Protected Attributes inherited from extrudeModel
label nLayers_
const scalar expansionRatio_
const dictionarydict_
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

Definition at line 55 of file sector.H.

Constructor & Destructor Documentation

◆ sector()

sector ( const dictionary dict)

Construct from dictionary.

Definition at line 46 of file sector.C.

◆ ~sector()

~sector ( )


Definition at line 60 of file sector.C.

Member Function Documentation

◆ TypeName()

TypeName ( "sector"  )

Runtime type information.

◆ operator()()

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

Implements extrudeModel.

Definition at line 67 of file sector.C.

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

Here is the call graph for this function:

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