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...
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... | |
![]() | |
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... | |
virtual | ~extrudeModel () |
Destructor. More... | |
label | nLayers () const |
scalar | expansionRatio () const |
scalar | sumThickness (const label layer) const |
Helper: calculate cumulative relative thickness for layer. More... | |
Private Attributes | |
autoPtr< triSurface > | baseSurfPtr_ |
surface More... | |
autoPtr< triSurfaceSearch > | baseSearchPtr_ |
search engine More... | |
autoPtr< triSurface > | offsetSurfPtr_ |
offsets More... | |
autoPtr< triSurfaceSearch > | offsetSearchPtr_ |
search engine More... | |
const Switch | project_ |
Additional Inherited Members | |
![]() | |
static autoPtr< extrudeModel > | New (const dictionary &) |
Select null constructed. More... | |
![]() | |
extrudeModel (const extrudeModel &) | |
Disallow default bitwise copy construct. More... | |
void | operator= (const extrudeModel &) |
Disallow default bitwise assignment. More... | |
![]() | |
label | nLayers_ |
const scalar | expansionRatio_ |
const dictionary & | dict_ |
const dictionary & | coeffDict_ |
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.
Definition at line 56 of file offsetSurface.H.
offsetSurface | ( | const dictionary & | dict | ) |
Construct from dictionary.
Definition at line 47 of file offsetSurface.C.
References Foam::constant::physicoChemical::b, offsetSurface::baseSearchPtr_, offsetSurface::baseSurfPtr_, extrudeModel::coeffDict_, dict, Foam::exit(), string::expand(), Foam::FatalIOError, FatalIOErrorInFunction, dictionary::lookup(), PrimitivePatch< Face, FaceList, PointField, PointType >::nEdges(), PrimitivePatch< Face, FaceList, PointField, PointType >::nPoints(), offsetSurface::offsetSearchPtr_, offsetSurface::offsetSurfPtr_, and List::size().
|
virtual |
Destructor.
Definition at line 89 of file offsetSurface.C.
TypeName | ( | "offsetSurface" | ) |
Runtime type information.
|
virtual |
Return point.
Either return interpolatedPoint or re-project onto surface (since
snapping might not have do so exactly)
Implements extrudeModel.
Definition at line 96 of file offsetSurface.C.
References triangle::a(), triangle::b(), triangle::barycentric(), triangle::c(), PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and samples().
|
private |
surface
Definition at line 63 of file offsetSurface.H.
Referenced by offsetSurface::offsetSurface().
|
private |
search engine
Definition at line 66 of file offsetSurface.H.
Referenced by offsetSurface::offsetSurface().
|
private |
offsets
Definition at line 69 of file offsetSurface.H.
Referenced by offsetSurface::offsetSurface().
|
private |
search engine
Definition at line 72 of file offsetSurface.H.
Referenced by offsetSurface::offsetSurface().
|
private |
Definition at line 75 of file offsetSurface.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.