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

searchableSurfacesQueries Class Reference

A collection of tools for searchableSurfaces. More...

List of all members.


Public Member Functions

 ClassName ("searchableSurfacesQueries")

Static Public Member Functions

static void findAnyIntersection (const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &)
 Find any intersection. Return hit point information and.
static void findAllIntersections (const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &start, const pointField &end, labelListList &surfaces, List< List< pointIndexHit > > &surfaceHits)
 Find all intersections in order from start to end. Returns for.
static void findNearest (const PtrList< searchableSurface > &, const labelList &surfacesToTest, const pointField &, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &)
 Find nearest. Return -1 (and a miss()) or surface and nearest.
static pointIndexHit facesIntersection (const PtrList< searchableSurface > &allSurfaces, const labelList &surfacesToTest, const scalar initDistSqr, const scalar convergenceDistSqr, const point &start)
 Calculate point which is on a set of surfaces. WIP.

Detailed Description

A collection of tools for searchableSurfaces.

Source files

Definition at line 47 of file searchableSurfacesQueries.H.


Member Function Documentation

ClassName ( "searchableSurfacesQueries"   ) 

void findAnyIntersection ( const PtrList< searchableSurface > &  allSurfaces,
const labelList &  surfacesToTest,
const pointField &  start,
const pointField &  end,
labelList &  surfaces,
List< pointIndexHit > &  hitInfo 
) [static]

Find any intersection. Return hit point information and.

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

Definition at line 391 of file searchableSurfacesQueries.C.

void findAllIntersections ( const PtrList< searchableSurface > &  allSurfaces,
const labelList &  surfacesToTest,
const pointField &  start,
const pointField &  end,
labelListList &  surfaces,
List< List< pointIndexHit > > &  surfaceHits 
) [static]

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

every hit the index in surfacesToTest and the hit info.

Definition at line 452 of file searchableSurfacesQueries.C.

void findNearest ( const PtrList< searchableSurface > &  allSurfaces,
const labelList &  surfacesToTest,
const pointField &  samples,
const scalarField &  nearestDistSqr,
labelList &  surfaces,
List< pointIndexHit > &  nearestInfo 
) [static]

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

point.

Definition at line 637 of file searchableSurfacesQueries.C.

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

Here is the call graph for this function:

Foam::pointIndexHit facesIntersection ( const PtrList< searchableSurface > &  allSurfaces,
const labelList &  surfacesToTest,
const scalar  initDistSqr,
const scalar  convergenceDistSqr,
const point &  start 
) [static]

Calculate point which is on a set of surfaces. WIP.

Calculate point which is on a set of surfaces.

Downhill Simplex method

Definition at line 684 of file searchableSurfacesQueries.C.


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