OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

searchableSurface Class Reference

Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP. More...

Inheritance diagram for searchableSurface:
Collaboration diagram for searchableSurface:

List of all members.


Classes

class  iNew
 Class used for the read-construction of. More...

Public Types

enum  volumeType { UNKNOWN = 0, MIXED = 1, INSIDE = 2, OUTSIDE = 3 }
 volume types More...

Public Member Functions

 TypeName ("searchableSurface")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, searchableSurface, dict,(const IOobject &io, const dictionary &dict),(io, dict))
 searchableSurface (const IOobject &io)
virtual autoPtr
< searchableSurface > 
clone () const
 Clone.
virtual ~searchableSurface ()
virtual const wordList & regions () const =0
 Names of regions.
virtual bool hasVolumeType () const =0
 Whether supports volume type below.
virtual label size () const =0
 Range of local indices that can be returned.
virtual label globalSize () const
 Range of global indices that can be returned.
virtual void findNearest (const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const =0
virtual void findLine (const pointField &start, const pointField &end, List< pointIndexHit > &) const =0
 Find first intersection on segment from start to end.
virtual void findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &) const =0
 Return any intersection on segment from start to end.
virtual void findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit > > &) const =0
 Get all intersections in order from start to end.
virtual void getRegion (const List< pointIndexHit > &, labelList &region) const =0
 From a set of points and indices get the region.
virtual void getNormal (const List< pointIndexHit > &, vectorField &normal) const =0
 From a set of points and indices get the normal.
virtual void getVolumeType (const pointField &, List< volumeType > &) const =0
 Determine type (inside/outside) for point. unknown if.
virtual void distribute (const List< treeBoundBox > &, const bool keepNonLocal, autoPtr< mapDistribute > &faceMap, autoPtr< mapDistribute > &pointMap)
 Set bounds of surface. Bounds currently set as list of.

Static Public Member Functions

static autoPtr< searchableSurface > New (const word &surfaceType, const IOobject &io, const dictionary &dict)
 Return a reference to the selected searchableSurface.

Detailed Description

Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.

Information returned is usually a pointIndexHit:

Source files

Definition at line 60 of file searchableSurface.H.


Member Enumeration Documentation

enum volumeType

volume types

Enumerator:
UNKNOWN 
MIXED 
INSIDE 
OUTSIDE 

Definition at line 69 of file searchableSurface.H.


Constructor & Destructor Documentation

searchableSurface ( const IOobject &  io  ) 

Definition at line 61 of file searchableSurface.C.

~searchableSurface (  )  [virtual]

Definition at line 69 of file searchableSurface.C.


Member Function Documentation

TypeName ( "searchableSurface"   ) 

Runtime type information.

declareRunTimeSelectionTable ( autoPtr  ,
searchableSurface  ,
dict  ,
(const IOobject &io, const dictionary &dict)  ,
(io, dict)   
)

virtual autoPtr<searchableSurface> clone (  )  const [inline, virtual]

Clone.

Reimplemented from IOobject.

Definition at line 148 of file searchableSurface.H.

autoPtr< searchableSurface > New ( const word &  surfaceType,
const IOobject &  io,
const dictionary &  dict 
) [static]

Return a reference to the selected searchableSurface.

Definition at line 32 of file searchableSurface.C.

References Foam::defineRunTimeSelectionTable(), Foam::defineTypeNameAndDebug(), Foam::endl(), and FatalErrorIn.

Referenced by searchableSurfaces::searchableSurfaces().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual const wordList& regions (  )  const [pure virtual]

virtual bool hasVolumeType (  )  const [pure virtual]

Whether supports volume type below.

Implemented in distributedTriSurfaceMesh, searchableBox, searchableCylinder, searchablePlane, searchablePlate, searchableSphere, searchableSurfaceCollection, searchableSurfaceWithGaps, and triSurfaceMesh.

Referenced by searchableSurfaceWithGaps::size().

Here is the caller graph for this function:

virtual label size (  )  const [pure virtual]

Range of local indices that can be returned.

Implemented in searchableBox, searchableCylinder, searchablePlane, searchablePlate, searchableSphere, searchableSurfaceCollection, searchableSurfaceWithGaps, and triSurfaceMesh.

Referenced by searchableSurface::globalSize().

Here is the caller graph for this function:

virtual label globalSize (  )  const [inline, virtual]

Range of global indices that can be returned.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 184 of file searchableSurface.H.

References searchableSurface::size().

Here is the call graph for this function:

virtual void findNearest ( const pointField &  sample,
const scalarField &  nearestDistSqr,
List< pointIndexHit > &   
) const [pure virtual]

virtual void findLine ( const pointField &  start,
const pointField &  end,
List< pointIndexHit > &   
) const [pure virtual]

virtual void findLineAny ( const pointField &  start,
const pointField &  end,
List< pointIndexHit > &   
) const [pure virtual]

virtual void findLineAll ( const pointField &  start,
const pointField &  end,
List< List< pointIndexHit > > &   
) const [pure virtual]

virtual void getRegion ( const List< pointIndexHit > &  ,
labelList &  region 
) const [pure virtual]

virtual void getNormal ( const List< pointIndexHit > &  ,
vectorField &  normal 
) const [pure virtual]

virtual void getVolumeType ( const pointField &  ,
List< volumeType > &   
) const [pure virtual]

Determine type (inside/outside) for point. unknown if.

cannot be determined (e.g. non-manifold surface)

Implemented in distributedTriSurfaceMesh, searchableBox, searchableCylinder, searchablePlane, searchablePlate, searchableSphere, searchableSurfaceCollection, searchableSurfaceWithGaps, and triSurfaceMesh.

Referenced by searchableSurfaceWithGaps::getVolumeType().

Here is the caller graph for this function:

virtual void distribute ( const List< treeBoundBox > &  ,
const bool  keepNonLocal,
autoPtr< mapDistribute > &  faceMap,
autoPtr< mapDistribute > &  pointMap 
) [inline, virtual]

Set bounds of surface. Bounds currently set as list of.

bounding boxes. The bounds are hints to the surface as for the range of queries it can expect. faceMap/pointMap can be set if the surface has done any redistribution.

Reimplemented in distributedTriSurfaceMesh, and triSurfaceMesh.

Definition at line 316 of file searchableSurface.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd