A topoSetSource to selects points based on relation to surface. More...
Public Member Functions | |
TypeName ("surfaceToPoint") | |
Runtime type information. More... | |
surfaceToPoint (const polyMesh &mesh, const fileName &surfName, const scalar nearDist, const bool includeInside, const bool includeOutside) | |
Construct from components. More... | |
surfaceToPoint (const polyMesh &mesh, const dictionary &dict) | |
Construct from dictionary. More... | |
surfaceToPoint (const polyMesh &mesh, Istream &) | |
Construct from Istream. More... | |
virtual | ~surfaceToPoint () |
Destructor. More... | |
virtual sourceType | setType () const |
virtual void | applyToSet (const topoSetSource::setAction action, topoSet &) const |
![]() | |
TypeName ("topoSetSource") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, topoSetSource, word,(const polyMesh &mesh, const dictionary &dict),(mesh, dict)) | |
declareRunTimeSelectionTable (autoPtr, topoSetSource, istream,(const polyMesh &mesh, Istream &is),(mesh, is)) | |
topoSetSource (const polyMesh &mesh) | |
Construct from components. More... | |
autoPtr< topoSetSource > | clone () const |
Clone. More... | |
virtual | ~topoSetSource () |
Destructor. More... | |
const polyMesh & | mesh () const |
Private Member Functions | |
void | combine (topoSet &set, const bool add) const |
Depending on surface add to or delete from pointSet. More... | |
void | checkSettings () const |
Check settings at construction time. More... | |
Private Attributes | |
const fileName | surfName_ |
Name of surface file. More... | |
const scalar | nearDist_ |
If > 0 : include points with distance to surface less than nearDist. More... | |
const bool | includeInside_ |
Include all points on opposite sign of normal on nearest surface. More... | |
const bool | includeOutside_ |
Include all points on this sign of normal on nearest surface. More... | |
Static Private Attributes | |
static addToUsageTable | usage_ |
Add usage string. More... | |
Additional Inherited Members | |
![]() | |
enum | sourceType { CELLSETSOURCE, FACESETSOURCE, POINTSETSOURCE, CELLZONESOURCE, FACEZONESOURCE, POINTZONESOURCE } |
Enumeration defining the types of sources. More... | |
enum | setAction { CLEAR, NEW, INVERT, ADD, DELETE, SUBSET, LIST, REMOVE } |
Enumeration defining the valid actions. More... | |
![]() | |
static setAction | toAction (const word &actionName) |
Convert string to action. More... | |
static Istream & | checkIs (Istream &is) |
Check state of stream. More... | |
static const string & | usage (const word &name) |
static autoPtr< topoSetSource > | New (const word &topoSetSourceType, const polyMesh &mesh, const dictionary &dict) |
Return a reference to the selected topoSetSource. More... | |
static autoPtr< topoSetSource > | New (const word &topoSetSourceType, const polyMesh &mesh, Istream &is) |
Return a reference to the selected topoSetSource. More... | |
![]() | |
void | addOrDelete (topoSet &set, const label cellI, const bool) const |
Add (if bool) cellI to set or delete cellI from set. More... | |
![]() | |
const polyMesh & | mesh_ |
![]() | |
static HashTable< string > * | usageTablePtr_ = NULL |
A table of usage strings. More... | |
A topoSetSource to selects points based on relation to surface.
Definition at line 56 of file surfaceToPoint.H.
surfaceToPoint | ( | const polyMesh & | mesh, |
const fileName & | surfName, | ||
const scalar | nearDist, | ||
const bool | includeInside, | ||
const bool | includeOutside | ||
) |
Construct from components.
Definition at line 124 of file surfaceToPoint.C.
surfaceToPoint | ( | const polyMesh & | mesh, |
const dictionary & | dict | ||
) |
Construct from dictionary.
Definition at line 143 of file surfaceToPoint.C.
surfaceToPoint | ( | const polyMesh & | mesh, |
Istream & | is | ||
) |
Construct from Istream.
Definition at line 159 of file surfaceToPoint.C.
|
virtual |
Destructor.
Definition at line 176 of file surfaceToPoint.C.
Depending on surface add to or delete from pointSet.
Definition at line 58 of file surfaceToPoint.C.
References Foam::add(), topoSetSource::addOrDelete(), triSurfaceSearch::calcInside(), Foam::endl(), forAll, PointIndexHit< Point >::hit(), PointIndexHit< Point >::hitPoint(), surfaceToPoint::includeInside_, surfaceToPoint::includeOutside_, Foam::Info, Foam::mag(), topoSetSource::mesh_, surfaceToPoint::nearDist_, triSurfaceSearch::nearest(), polyMesh::points(), and surfaceToPoint::surfName_.
|
private |
Check settings at construction time.
Definition at line 107 of file surfaceToPoint.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, and FatalErrorInFunction.
TypeName | ( | "surfaceToPoint" | ) |
Runtime type information.
|
inlinevirtual |
Implements topoSetSource.
Definition at line 125 of file surfaceToPoint.H.
References topoSetSource::POINTSETSOURCE.
|
virtual |
Implements topoSetSource.
Definition at line 183 of file surfaceToPoint.C.
References topoSetSource::ADD, Foam::ListListOps::combine(), topoSetSource::DELETE, Foam::endl(), Foam::Info, and topoSetSource::NEW.
|
staticprivate |
Add usage string.
Definition at line 64 of file surfaceToPoint.H.
|
private |
Name of surface file.
Definition at line 67 of file surfaceToPoint.H.
Referenced by surfaceToPoint::combine().
|
private |
If > 0 : include points with distance to surface less than nearDist.
Definition at line 70 of file surfaceToPoint.H.
Referenced by surfaceToPoint::combine().
|
private |
Include all points on opposite sign of normal on nearest surface.
Definition at line 73 of file surfaceToPoint.H.
Referenced by surfaceToPoint::combine().
|
private |
Include all points on this sign of normal on nearest surface.
Definition at line 76 of file surfaceToPoint.H.
Referenced by surfaceToPoint::combine().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.