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

searchableSurfaceCollection Class Reference

Set of transformed searchableSurfaces. Does not do boolean operations. So when meshing might find parts 'inside'. More...

Inheritance diagram for searchableSurfaceCollection:
Collaboration diagram for searchableSurfaceCollection:

List of all members.


Public Member Functions

 TypeName ("searchableSurfaceCollection")
 Runtime type information.
 searchableSurfaceCollection (const IOobject &io, const dictionary &dict)
 Construct from dictionary (used by searchableSurface).
virtual ~searchableSurfaceCollection ()
virtual const wordList & regions () const
 Names of regions.
virtual bool hasVolumeType () const
 Whether supports volume type below.
virtual label size () const
 Range of local indices that can be returned.
virtual void findNearest (const pointField &sample, const scalarField &nearestDistSqr, List< pointIndexHit > &) const
virtual void findLine (const pointField &start, const pointField &end, List< pointIndexHit > &) const
 Find first intersection on segment from start to end.
virtual void findLineAny (const pointField &start, const pointField &end, List< pointIndexHit > &) const
 Return any intersection on segment from start to end.
virtual void findLineAll (const pointField &start, const pointField &end, List< List< pointIndexHit > > &) const
 Get all intersections in order from start to end.
virtual void getRegion (const List< pointIndexHit > &, labelList &region) const
 From a set of points and indices get the region.
virtual void getNormal (const List< pointIndexHit > &, vectorField &normal) const
 From a set of points and indices get the normal.
virtual void getVolumeType (const pointField &, List< volumeType > &) const
 Determine type (inside/outside/mixed) for point. unknown if.
bool writeData (Ostream &) const
 Pure virtual writaData function.

Detailed Description

Set of transformed searchableSurfaces. Does not do boolean operations. So when meshing might find parts 'inside'.

Source files

Definition at line 51 of file searchableSurfaceCollection.H.


Constructor & Destructor Documentation

searchableSurfaceCollection ( const IOobject &  io,
const dictionary &  dict 
)

Construct from dictionary (used by searchableSurface).

Definition at line 107 of file searchableSurfaceCollection.C.

~searchableSurfaceCollection (  )  [virtual]

Definition at line 166 of file searchableSurfaceCollection.C.


Member Function Documentation

TypeName ( "searchableSurfaceCollection"   ) 

Runtime type information.

const Foam::wordList & regions (  )  const [virtual]

Names of regions.

Implements searchableSurface.

Definition at line 172 of file searchableSurfaceCollection.C.

virtual bool hasVolumeType (  )  const [inline, virtual]

Whether supports volume type below.

Implements searchableSurface.

Definition at line 127 of file searchableSurfaceCollection.H.

Foam::label size (  )  const [virtual]

Range of local indices that can be returned.

Implements searchableSurface.

Definition at line 204 of file searchableSurfaceCollection.C.

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

Implements searchableSurface.

Definition at line 216 of file searchableSurfaceCollection.C.

References UPtrList< T >::size().

Here is the call graph for this function:

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

Find first intersection on segment from start to end.

Note: searchableSurfacesQueries expects no intersection to be found if start==end. Is problem?

Implements searchableSurface.

Definition at line 237 of file searchableSurfaceCollection.C.

Referenced by searchableSurfaceCollection::findLineAll().

Here is the caller graph for this function:

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

Return any intersection on segment from start to end.

Implements searchableSurface.

Definition at line 331 of file searchableSurfaceCollection.C.

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

Get all intersections in order from start to end.

Implements searchableSurface.

Definition at line 343 of file searchableSurfaceCollection.C.

References searchableSurfaceCollection::findLine().

Here is the call graph for this function:

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

From a set of points and indices get the region.

Implements searchableSurface.

Definition at line 370 of file searchableSurfaceCollection.C.

References List< T >::clear().

Here is the call graph for this function:

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

From a set of points and indices get the normal.

Implements searchableSurface.

Definition at line 472 of file searchableSurfaceCollection.C.

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

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

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

Implements searchableSurface.

Definition at line 535 of file searchableSurfaceCollection.C.

bool writeData ( Ostream &   )  const [inline, virtual]

Pure virtual writaData function.

Must be defined in derived types

Implements regIOobject.

Definition at line 194 of file searchableSurfaceCollection.H.

References notImplemented.


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