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

searchableSurfaceWithGaps Class Reference

searchableSurface using multiple slightly shifted underlying surfaces to make sure pierces don't go through gaps:
  • shift test vector with two small vectors (of size gap_) perpendicular to the original. Test with + and - this vector. Only if both register a hit is it seen as one.
  • extend the test vector slightly (with SMALL) to account for numerical inaccuracies.
More...

Inheritance diagram for searchableSurfaceWithGaps:
Collaboration diagram for searchableSurfaceWithGaps:

List of all members.


Public Member Functions

 TypeName ("searchableSurfaceWithGaps")
 Runtime type information.
 searchableSurfaceWithGaps (const IOobject &io, const dictionary &dict)
 Construct from dictionary (used by searchableSurface).
virtual ~searchableSurfaceWithGaps ()
const searchableSurface & surface () const
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 > &info) const
 Find nearest on original surface. Note:does not use perturbation.
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 > &info, labelList &region) const
 From a set of points and indices get the region.
virtual void getNormal (const List< pointIndexHit > &info, vectorField &normal) const
 From a set of points and indices get the normal.
virtual void getVolumeType (const pointField &samples, List< volumeType > &info) const
 Determine type (inside/outside/mixed) for point. unknown if.
bool writeData (Ostream &os) const
 Pure virtual writaData function.

Detailed Description

searchableSurface using multiple slightly shifted underlying surfaces to make sure pierces don't go through gaps:
  • shift test vector with two small vectors (of size gap_) perpendicular to the original. Test with + and - this vector. Only if both register a hit is it seen as one.
  • extend the test vector slightly (with SMALL) to account for numerical inaccuracies.

Source files

Definition at line 55 of file searchableSurfaceWithGaps.H.


Constructor & Destructor Documentation

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

Construct from dictionary (used by searchableSurface).

Definition at line 167 of file searchableSurfaceWithGaps.C.

~searchableSurfaceWithGaps (  )  [virtual]

Definition at line 187 of file searchableSurfaceWithGaps.C.


Member Function Documentation

TypeName ( "searchableSurfaceWithGaps"   ) 

Runtime type information.

virtual const wordList& regions (  )  const [inline, virtual]

Names of regions.

Implements searchableSurface.

Definition at line 131 of file searchableSurfaceWithGaps.H.

virtual bool hasVolumeType (  )  const [inline, virtual]

Whether supports volume type below.

Implements searchableSurface.

Definition at line 137 of file searchableSurfaceWithGaps.H.

References searchableSurface::regions(), and searchableSurfaceWithGaps::surface().

Here is the call graph for this function:

virtual label size (  )  const [inline, virtual]

Range of local indices that can be returned.

Implements searchableSurface.

Definition at line 143 of file searchableSurfaceWithGaps.H.

References searchableSurface::hasVolumeType(), and searchableSurfaceWithGaps::surface().

Here is the call graph for this function:

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

Find nearest on original surface. Note:does not use perturbation.

and hence might be inconsistent with intersections.

Implements searchableSurface.

Definition at line 156 of file searchableSurfaceWithGaps.H.

References searchableSurface::findNearest(), and searchableSurfaceWithGaps::surface().

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 194 of file searchableSurfaceWithGaps.C.

Referenced by searchableSurfaceWithGaps::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 319 of file searchableSurfaceWithGaps.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 331 of file searchableSurfaceWithGaps.C.

References searchableSurfaceWithGaps::findLine().

Here is the call graph for this function:

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

From a set of points and indices get the region.

Implements searchableSurface.

Definition at line 194 of file searchableSurfaceWithGaps.H.

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

From a set of points and indices get the normal.

Implements searchableSurface.

Definition at line 204 of file searchableSurfaceWithGaps.H.

virtual void getVolumeType ( const pointField &  samples,
List< volumeType > &  info 
) const [inline, virtual]

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

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

Implements searchableSurface.

Definition at line 217 of file searchableSurfaceWithGaps.H.

References searchableSurface::getVolumeType(), and searchableSurfaceWithGaps::surface().

Here is the call graph for this function:

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

Pure virtual writaData function.

Must be defined in derived types

Implements regIOobject.

Definition at line 228 of file searchableSurfaceWithGaps.H.

References searchableSurfaceWithGaps::surface(), and regIOobject::writeData().

Here is the call graph for this function:


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