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

searchableSurfaces Class Reference

Container for searchableSurfaces. More...

Inheritance diagram for searchableSurfaces:
Collaboration diagram for searchableSurfaces:

List of all members.


Public Member Functions

 ClassName ("searchableSurfaces")
 searchableSurfaces (const label)
 Construct with length specified. Fill later.
 searchableSurfaces (const IOobject &, const dictionary &)
 Construct from dictionary.
const wordList & names () const
wordList & names ()
const List< wordList > & regionNames () const
List< wordList > & regionNames ()
label findSurfaceID (const word &name) const
 Find index of surface. Return -1 if not found.
void findAnyIntersection (const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const
 Find any intersection. Return hit point information and.
void findAllIntersections (const pointField &start, const pointField &end, labelListList &surfaces, List< List< pointIndexHit > > &) const
 Find all intersections in order from start to end. Returns for.
void findNearest (const pointField &, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const
 Find nearest. Return -1 (and a miss()) or surface and nearest.
pointIndexHit facesIntersection (const scalar initialDistSqr, const scalar convergenceDistSqr, const point &start) const
 Calculate point which is on a set of surfaces.

Detailed Description

Container for searchableSurfaces.

Source files

Definition at line 47 of file searchableSurfaces.H.


Constructor & Destructor Documentation

searchableSurfaces ( const label  size  )  [explicit]

Construct with length specified. Fill later.

Definition at line 36 of file searchableSurfaces.C.


Member Function Documentation

ClassName ( "searchableSurfaces"   ) 

const wordList& names (  )  const [inline]

Definition at line 94 of file searchableSurfaces.H.

wordList& names (  )  [inline]

Definition at line 98 of file searchableSurfaces.H.

const List<wordList>& regionNames (  )  const [inline]

Definition at line 103 of file searchableSurfaces.H.

List<wordList>& regionNames (  )  [inline]

Definition at line 107 of file searchableSurfaces.H.

Foam::label findSurfaceID ( const word &  name  )  const

Find index of surface. Return -1 if not found.

Definition at line 251 of file searchableSurfaces.C.

Referenced by refinementSurfaces::refinementSurfaces().

Here is the caller graph for this function:

void findAnyIntersection ( const pointField &  start,
const pointField &  end,
labelList &  surfaces,
List< pointIndexHit > &  hitInfo 
) const

Find any intersection. Return hit point information and.

surface number. If multiple surfaces hit the first surface is returned, not necessarily the nearest (to start).

Definition at line 260 of file searchableSurfaces.C.

References Foam::findIndex().

Referenced by NamedEnum< Enum, nEnum >::names().

Here is the call graph for this function:

Here is the caller graph for this function:

void findAllIntersections ( const pointField &  start,
const pointField &  end,
labelListList &  surfaces,
List< List< pointIndexHit > > &  hitInfo 
) const

Find all intersections in order from start to end. Returns for.

every hit the surface and the hit info.

Definition at line 281 of file searchableSurfaces.C.

void findNearest ( const pointField &  samples,
const scalarField &  nearestDistSqr,
labelList &  surfaces,
List< pointIndexHit > &  nearestInfo 
) const

Find nearest. Return -1 (and a miss()) or surface and nearest.

point.

Definition at line 302 of file searchableSurfaces.C.

Referenced by NamedEnum< Enum, nEnum >::names().

Here is the caller graph for this function:

Foam::pointIndexHit facesIntersection ( const scalar  initialDistSqr,
const scalar  convergenceDistSqr,
const point &  start 
) const

Calculate point which is on a set of surfaces.

Definition at line 323 of file searchableSurfaces.C.


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