FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

searchableSurfaceCollection Class Reference

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

#include <meshTools/searchableSurfaceCollection.H>


Detailed Description

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

Source files

Definition at line 56 of file searchableSurfaceCollection.H.

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 pointField  coordinates () const
 Get representative set of element coordinates.
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.
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.
virtual void  setField (const labelList &values)
 WIP. Store element-wise field.
virtual void  getField (const List< pointIndexHit > &, labelList &) const
 WIP. From a set of hits (points and.
bool  writeData (Ostream &) const
 Pure virtual writaData function.

Constructor & Destructor Documentation

~searchableSurfaceCollection (  ) [virtual]

Definition at line 255 of file searchableSurfaceCollection.C.


Member Function Documentation

TypeName ( "searchableSurfaceCollection"    )

Runtime type information.

virtual bool hasVolumeType (  ) const [inline, virtual]

Whether supports volume type below.

Implements searchableSurface.

Definition at line 143 of file searchableSurfaceCollection.H.

Foam::label size (  ) const [virtual]

Range of local indices that can be returned.

Implements searchableSurface.

Definition at line 293 of file searchableSurfaceCollection.C.

Foam::pointField coordinates (  ) const [virtual]

Get representative set of element coordinates.

Usually the element centres (should be of length size()).

Implements searchableSurface.

Definition at line 299 of file searchableSurfaceCollection.C.

References Foam::cmptMultiply(), and forAll.

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

Implements searchableSurface.

Definition at line 329 of file searchableSurfaceCollection.C.

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 350 of file searchableSurfaceCollection.C.

References Foam::abort(), Foam::cmptDivide(), Foam::cmptMultiply(), Foam::FatalError, FatalErrorIn, forAll, Foam::mag(), List< T >::setSize(), and List< T >::size().

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 449 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 461 of file searchableSurfaceCollection.C.

References List< T >::clear(), forAll, List< T >::setSize(), and List< T >::size().

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 488 of file searchableSurfaceCollection.C.

References forAll, List< T >::setSize(), and List< T >::size().

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 553 of file searchableSurfaceCollection.C.

References forAll, List< T >::setSize(), and List< T >::size().

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 593 of file searchableSurfaceCollection.C.

References Foam::exit(), Foam::FatalError, and FatalErrorIn.

void distribute ( const List< treeBoundBox > &   bbs,
const bool   keepNonLocal,
autoPtr< mapDistribute > &   faceMap,
autoPtr< mapDistribute > &   pointMap  
) [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 from searchableSurface.

Definition at line 608 of file searchableSurfaceCollection.C.

References forAll.

void setField ( const labelList &   values  ) [virtual]

WIP. Store element-wise field.

Reimplemented from searchableSurface.

Definition at line 641 of file searchableSurfaceCollection.C.

References forAll.

void getField ( const List< pointIndexHit > &   info,
labelList &   values  
) const [virtual]

WIP. From a set of hits (points and.

indices) get the specified field. Misses do not get set. Return empty field if not supported.

Reimplemented from searchableSurface.

Definition at line 662 of file searchableSurfaceCollection.C.

References forAll, List< T >::setSize(), and List< T >::size().

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

Pure virtual writaData function.

Must be defined in derived types

Implements regIOobject.

Definition at line 233 of file searchableSurfaceCollection.H.

References notImplemented.


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