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

triSurfaceMesh Class Reference

IOoject and searching on triSurface. More...

Inheritance diagram for triSurfaceMesh:
Collaboration diagram for triSurfaceMesh:

List of all members.


Public Member Functions

 TypeName ("triSurfaceMesh")
 Runtime type information.
 triSurfaceMesh (const IOobject &, const triSurface &)
 Construct from triSurface.
 triSurfaceMesh (const IOobject &io)
 Construct read.
 triSurfaceMesh (const IOobject &io, const dictionary &dict)
 Construct from IO and dictionary (used by searchableSurface).
virtual ~triSurfaceMesh ()
void clearOut ()
 Clear storage.
virtual void movePoints (const pointField &)
 Move points.
const indexedOctree
< treeDataTriSurface > & 
tree () const
 Demand driven contruction of octree.
const indexedOctree
< treeDataEdge > & 
edgeTree () const
 Demand driven contruction of octree for boundary edges.
virtual const wordListregions () const
 Names of regions.
virtual bool hasVolumeType () const
 Whether supports volume type below. I.e. whether is closed.
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.
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 getField (const word &fieldName, const List< pointIndexHit > &, labelList &values) const
 Specific to triSurfaceMesh: from a set of hits (points and.
bool writeData (Ostream &) const
 writeData function required by regIOobject but not used
virtual bool writeObject (IOstream::streamFormat fmt, IOstream::versionNumber ver, IOstream::compressionType cmp) const
 Write using given format, version and compression.

Detailed Description

IOoject and searching on triSurface.

Note: when constructing from dictionary has optional parameters:

Source files

Definition at line 55 of file triSurfaceMesh.H.


Constructor & Destructor Documentation

triSurfaceMesh ( const IOobject io,
const triSurface s 
)

Construct from triSurface.

Definition at line 214 of file triSurfaceMesh.C.

triSurfaceMesh ( const IOobject io  ) 

Construct read.

Definition at line 236 of file triSurfaceMesh.C.

triSurfaceMesh ( const IOobject io,
const dictionary dict 
)

Construct from IO and dictionary (used by searchableSurface).

Dictionary may contain a 'scale' entry (eg, 0.001: mm -> m)

Definition at line 280 of file triSurfaceMesh.C.

~triSurfaceMesh (  )  [virtual]

Definition at line 346 of file triSurfaceMesh.C.

References Foam::endl(), Foam::Info, and IOobject::name().

Here is the call graph for this function:


Member Function Documentation

TypeName ( "triSurfaceMesh"   ) 

Runtime type information.

void clearOut (  ) 

Clear storage.

Reimplemented from triSurface.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 352 of file triSurfaceMesh.C.

Referenced by triSurfaceMesh::movePoints().

Here is the caller graph for this function:

void movePoints ( const pointField newPoints  )  [virtual]

Move points.

Reimplemented from triSurface.

Definition at line 362 of file triSurfaceMesh.C.

References autoPtr< T >::clear(), and triSurfaceMesh::clearOut().

Referenced by triSurfaceMesh::tree().

Here is the call graph for this function:

Here is the caller graph for this function:

const Foam::indexedOctree< Foam::treeDataTriSurface > & tree (  )  const

Demand driven contruction of octree.

Definition at line 371 of file triSurfaceMesh.C.

References autoPtr< T >::clear(), and triSurfaceMesh::movePoints().

Here is the call graph for this function:

const Foam::indexedOctree< Foam::treeDataEdge > & edgeTree (  )  const

Demand driven contruction of octree for boundary edges.

Definition at line 410 of file triSurfaceMesh.C.

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

Names of regions.

Implements searchableSurface.

Definition at line 459 of file triSurfaceMesh.C.

bool hasVolumeType (  )  const [virtual]

Whether supports volume type below. I.e. whether is closed.

Implements searchableSurface.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 474 of file triSurfaceMesh.C.

References triSurface::patches().

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 170 of file triSurfaceMesh.H.

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

Implements searchableSurface.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 493 of file triSurfaceMesh.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.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 520 of file triSurfaceMesh.C.

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

Return any intersection on segment from start to end.

Implements searchableSurface.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 547 of file triSurfaceMesh.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.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 574 of file triSurfaceMesh.C.

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

From a set of points and indices get the region.

Implements searchableSurface.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 649 of file triSurfaceMesh.C.

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

From a set of points and indices get the normal.

Cached:

normal[i] = faceNormals()[triI];

Uncached

Implements searchableSurface.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 670 of file triSurfaceMesh.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.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 724 of file triSurfaceMesh.C.

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

Reimplemented in distributedTriSurfaceMesh.

Definition at line 235 of file triSurfaceMesh.H.

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

Specific to triSurfaceMesh: from a set of hits (points and.

indices) get the specified field. Misses do not get set.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 701 of file triSurfaceMesh.C.

bool writeData ( Ostream  )  const [inline, virtual]

writeData function required by regIOobject but not used

for this class, write is used instead

Reimplemented from objectRegistry.

Definition at line 259 of file triSurfaceMesh.H.

bool writeObject ( IOstream::streamFormat  fmt,
IOstream::versionNumber  ver,
IOstream::compressionType  cmp 
) const [virtual]

Write using given format, version and compression.

Reimplemented from objectRegistry.

Reimplemented in distributedTriSurfaceMesh.

Definition at line 749 of file triSurfaceMesh.C.


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