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

refinementSurfaces Class Reference

Container for data on surfaces used for surface-driven refinement. Contains all the data about the level of refinement needed per surface. More...

Collaboration diagram for refinementSurfaces:

List of all members.


Public Member Functions

 refinementSurfaces (const searchableSurfaces &allGeometry, const PtrList< dictionary > &)
 Construct from surfaces and dictionaries.
 refinementSurfaces (const searchableSurfaces &allGeometry, const dictionary &)
 Construct from surfaces and dictionary.
const searchableSurfacesgeometry () const
const labelListsurfaces () const
const wordListnames () const
 Names of surfaces.
const wordListfaceZoneNames () const
 Per 'interface' surface : name of faceZone to put faces into.
const wordListcellZoneNames () const
 Per 'interface' surface : name of cellZone to put cells into.
labelList getUnnamedSurfaces () const
 Get indices of unnamed surfaces (surfaces without faceZoneName).
labelList getNamedSurfaces () const
 Get indices of named surfaces (surfaces with faceZoneName).
labelList getClosedNamedSurfaces () const
 Get indices of closed named surfaces.
const labelListregionOffset () const
 From local region number to global region number.
const labelListminLevel () const
 From global region number to refinement level.
const labelListmaxLevel () const
 From global region number to refinement level.
const scalarFieldperpendicularAngle () const
 From global region number to perpendicular angle.
label globalRegion (const label surfI, const label regionI) const
 From surface and region on surface to global region.
label minLevel (const label surfI, const label regionI) const
 Min level for surface and region on surface.
label maxLevel (const label surfI, const label regionI) const
 Max level for surface and region on surface.
label nRegions () const
void setMinLevelFields (const shellSurfaces &shells)
 Calculate minLevelFields.
void findHigherIntersection (const pointField &start, const pointField &end, const labelList &currentLevel, labelList &surfaces, labelList &surfaceLevel) const
 Find intersection of edge. Return -1 or first surface.
void findAllHigherIntersections (const pointField &start, const pointField &end, const labelList &currentLevel, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const
 Find all intersections of edge. Unsorted order.
void findNearestIntersection (const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList &region1, labelList &surface2, List< pointIndexHit > &hit2, labelList &region2) const
 Find intersection nearest to the endpoints. surface1,2 are.
void findAnyIntersection (const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const
 Used for debugging only: find intersection of edge.
void findNearest (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const
 Find nearest point on surfaces.
void findNearestRegion (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, labelList &hitRegion) const
 Find nearest point on surfaces. Return surface and region on.
void findInside (const labelList &surfacesToTest, const pointField &pt, labelList &insideSurfaces) const
 Detect if a point is 'inside' (closed) surfaces.

Static Public Member Functions

static labelList countRegions (const triSurface &)
 Helper: count number of triangles per region.

Detailed Description

Container for data on surfaces used for surface-driven refinement. Contains all the data about the level of refinement needed per surface.

Source files

Definition at line 53 of file refinementSurfaces.H.


Constructor & Destructor Documentation

refinementSurfaces ( const searchableSurfaces allGeometry,
const dictionary surfacesDict 
)

Construct from surfaces and dictionary.

Definition at line 246 of file refinementSurfaces.C.


Member Function Documentation

const searchableSurfaces& geometry (  )  const [inline]

Definition at line 124 of file refinementSurfaces.H.

const labelList& surfaces (  )  const [inline]

Definition at line 129 of file refinementSurfaces.H.

Referenced by autoHexMeshDriver::autoHexMeshDriver().

Here is the caller graph for this function:

const wordList& names (  )  const [inline]

Names of surfaces.

Definition at line 135 of file refinementSurfaces.H.

Referenced by autoHexMeshDriver::autoHexMeshDriver().

Here is the caller graph for this function:

const wordList& faceZoneNames (  )  const [inline]

Per 'interface' surface : name of faceZone to put faces into.

Definition at line 141 of file refinementSurfaces.H.

Referenced by autoSnapDriver::repatchToSurface().

Here is the caller graph for this function:

const wordList& cellZoneNames (  )  const [inline]

Per 'interface' surface : name of cellZone to put cells into.

Definition at line 147 of file refinementSurfaces.H.

Foam::labelList getUnnamedSurfaces (  )  const

Get indices of unnamed surfaces (surfaces without faceZoneName).

Definition at line 430 of file refinementSurfaces.C.

Referenced by autoSnapDriver::repatchToSurface().

Here is the caller graph for this function:

Foam::labelList getNamedSurfaces (  )  const

Get indices of named surfaces (surfaces with faceZoneName).

Definition at line 449 of file refinementSurfaces.C.

Referenced by autoSnapDriver::repatchToSurface().

Here is the caller graph for this function:

Foam::labelList getClosedNamedSurfaces (  )  const

Get indices of closed named surfaces.

Definition at line 468 of file refinementSurfaces.C.

const labelList& regionOffset (  )  const [inline]

From local region number to global region number.

Definition at line 162 of file refinementSurfaces.H.

const labelList& minLevel (  )  const [inline]

From global region number to refinement level.

Definition at line 168 of file refinementSurfaces.H.

Referenced by meshRefinement::refineCandidates().

Here is the caller graph for this function:

const labelList& maxLevel (  )  const [inline]

From global region number to refinement level.

Definition at line 174 of file refinementSurfaces.H.

Referenced by meshRefinement::refineCandidates().

Here is the caller graph for this function:

const scalarField& perpendicularAngle (  )  const [inline]

From global region number to perpendicular angle.

Definition at line 180 of file refinementSurfaces.H.

label globalRegion ( const label  surfI,
const label  regionI 
) const [inline]

From surface and region on surface to global region.

Definition at line 189 of file refinementSurfaces.H.

Referenced by autoHexMeshDriver::autoHexMeshDriver(), refinementSurfaces::nRegions(), and autoSnapDriver::repatchToSurface().

Here is the caller graph for this function:

label minLevel ( const label  surfI,
const label  regionI 
) const [inline]

Min level for surface and region on surface.

Definition at line 195 of file refinementSurfaces.H.

label maxLevel ( const label  surfI,
const label  regionI 
) const [inline]

Max level for surface and region on surface.

Definition at line 201 of file refinementSurfaces.H.

label nRegions (  )  const [inline]

Definition at line 206 of file refinementSurfaces.H.

References refinementSurfaces::globalRegion().

Referenced by refinementSurfaces::refinementSurfaces().

Here is the call graph for this function:

Here is the caller graph for this function:

void setMinLevelFields ( const shellSurfaces shells  ) 

Calculate minLevelFields.

Definition at line 508 of file refinementSurfaces.C.

Foam::labelList countRegions ( const triSurface s  )  [static]

Helper: count number of triangles per region.

Definition at line 491 of file refinementSurfaces.C.

void findHigherIntersection ( const pointField start,
const pointField end,
const labelList currentLevel,
labelList surfaces,
labelList surfaceLevel 
) const

Find intersection of edge. Return -1 or first surface.

with higher (than currentLevel) minlevel. Return surface number and level.

Definition at line 576 of file refinementSurfaces.C.

void findAllHigherIntersections ( const pointField start,
const pointField end,
const labelList currentLevel,
List< vectorList > &  surfaceNormal,
labelListList surfaceLevel 
) const

Find all intersections of edge. Unsorted order.

Definition at line 677 of file refinementSurfaces.C.

void findNearestIntersection ( const labelList surfacesToTest,
const pointField start,
const pointField end,
labelList surface1,
List< pointIndexHit > &  hit1,
labelList region1,
labelList surface2,
List< pointIndexHit > &  hit2,
labelList region2 
) const

Find intersection nearest to the endpoints. surface1,2 are.

not indices into surfacesToTest but refinement surface indices. Returns surface, region on surface (so not global surface) and position on surface.

Definition at line 761 of file refinementSurfaces.C.

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

Used for debugging only: find intersection of edge.

Definition at line 887 of file refinementSurfaces.C.

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

Find nearest point on surfaces.

Definition at line 908 of file refinementSurfaces.C.

void findNearestRegion ( const labelList surfacesToTest,
const pointField samples,
const scalarField nearestDistSqr,
labelList hitSurface,
labelList hitRegion 
) const

Find nearest point on surfaces. Return surface and region on.

surface (so not global surface)

Definition at line 941 of file refinementSurfaces.C.

Referenced by autoSnapDriver::repatchToSurface().

Here is the caller graph for this function:

void findInside ( const labelList surfacesToTest,
const pointField pt,
labelList insideSurfaces 
) const

Detect if a point is 'inside' (closed) surfaces.

Returns -1 if not, returns first surface it is.

Definition at line 1049 of file refinementSurfaces.C.

References forAll, searchableSurface::INSIDE, and searchableSurface::OUTSIDE.


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