offsetSurface Class Reference

Extrudes by interpolating points from one surface to the other. Surfaces have to be topologically identical i.e. one has to be an offsetted version of the other. More...

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

Public Member Functions

 TypeName ("offsetSurface")
 Runtime type information. More...
 
 offsetSurface (const dictionary &dict)
 Construct from dictionary. More...
 
virtual ~offsetSurface ()
 Destructor. More...
 
point operator() (const point &surfacePoint, const vector &surfaceNormal, const label layer) const
 Return 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...
 
virtual point operator() (const point &surfacePoint, const vector &surfaceNormal, const label layer) const =0
 

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 interpolating points from one surface to the other. Surfaces have to be topologically identical i.e. one has to be an offsetted version of the other.

The offsetSurfaceCoeffs dictionary entries

Property Description Required Default
baseSurface Base surface file name yes
offsetSurface Offset surface file name yes
project Project onto offsetted surface no false

Definition at line 85 of file offsetSurface.H.

Constructor & Destructor Documentation

◆ offsetSurface()

offsetSurface ( const dictionary dict)
explicit

Construct from dictionary.

Definition at line 51 of file offsetSurface.C.

References b, extrudeModel::coeffDict_, dict, Foam::endl(), Foam::exit(), string::expand(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::get(), PrimitivePatch< FaceList, PointField >::nEdges(), PrimitivePatch< FaceList, PointField >::nPoints(), and UList< T >::size().

Here is the call graph for this function:

◆ ~offsetSurface()

~offsetSurface ( )
virtual

Destructor.

Definition at line 92 of file offsetSurface.C.

Member Function Documentation

◆ TypeName()

TypeName ( "offsetSurface"  )

Runtime type information.

◆ operator()()

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

Return point.

Implements extrudeModel.

Definition at line 98 of file offsetSurface.C.

References triangle< Point, PointRef >::a(), triangle< Point, PointRef >::b(), triangle< Point, PointRef >::c(), PrimitivePatch< FaceList, PointField >::points(), triangle< Point, PointRef >::pointToBarycentric(), and samples().

Here is the call graph for this function:

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