Public Member Functions | List of all members
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...

Public Member Functions

 refinementSurfaces (const searchableSurfaces &allGeometry, const dictionary &, const label gapLevelIncrement, const bool dryRun)
 
 refinementSurfaces (const searchableSurfaces &allGeometry, const labelList &surfaces, const wordList &names, const PtrList< surfaceZonesInfo > &surfZones, const labelList &regionOffset, const labelList &minLevel, const labelList &maxLevel, const labelList &gapLevel, const scalarField &perpendicularAngle, PtrList< dictionary > &patchInfo, const bool dryRun)
 
const searchableSurfacesgeometry () const
 
const labelListsurfaces () const
 
const wordListnames () const
 
const PtrList< surfaceZonesInfo > & surfZones () const
 
const labelListregionOffset () const
 
const labelListminLevel () const
 
const labelListmaxLevel () const
 
const labelListgapLevel () const
 
const labelListblockLevel () const
 
const List< FixedList< label, 3 > > & extendedGapLevel () const
 
const List< volumeType > & extendedGapMode () const
 
const boolListgapSelf () const
 
const scalarFieldperpendicularAngle () const
 
const PtrList< dictionary > & patchInfo () const
 
label globalRegion (const label surfI, const label regionI) const
 
labelPair whichSurface (const label globalRegionI) const
 
label minLevel (const label surfI, const label regionI) const
 
label maxLevel (const label surfI, const label regionI) const
 
label nRegions () const
 
labelList maxGapLevel () const
 
void setMinLevelFields (const shellSurfaces &shells)
 
void findHigherIntersection (const shellSurfaces &shells, const pointField &start, const pointField &end, const labelList &currentLevel, labelList &surfaces, labelList &surfaceLevel) const
 
void findAllIntersections (const pointField &start, const pointField &end, const labelList &currentLevel, const labelList &globalMinLevel, const labelList &globalMaxLevel, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const
 
void findAllIntersections (const pointField &start, const pointField &end, const labelList &currentLevel, const labelList &globalMinLevel, const labelList &globalMaxLevel, List< pointList > &surfaceLocation, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const
 
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
 
void findNearestIntersection (const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList &region1, vectorField &normal1, labelList &surface2, List< pointIndexHit > &hit2, labelList &region2, vectorField &normal2) const
 
void findNearestIntersection (const pointField &start, const pointField &end, labelList &surfaces, vectorField &normal) const
 
void findNearestIntersection (const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &, vectorField &normal) const
 
void findAnyIntersection (const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const
 
void findNearest (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const
 
void findNearestRegion (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, labelList &hitRegion) const
 
void findNearestRegion (const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, List< pointIndexHit > &hitInfo, labelList &hitRegion, vectorField &hitNormal) const
 
void findInside (const labelList &surfacesToTest, const pointField &pt, labelList &insideSurfaces) const
 
void findNearest (const labelList &surfacesToTest, const labelListList &regions, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, List< pointIndexHit > &hitInfo) const
 
void findNearestRegion (const labelList &surfacesToTest, const labelListList &regions, const pointField &samples, const scalarField &nearestDistSqr, labelList &hitSurface, List< pointIndexHit > &hitInfo, labelList &hitRegion, vectorField &hitNormal) const
 

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 59 of file refinementSurfaces.H.

Constructor & Destructor Documentation

◆ refinementSurfaces() [1/2]

refinementSurfaces ( const searchableSurfaces allGeometry,
const dictionary surfacesDict,
const label  gapLevelIncrement,
const bool  dryRun 
)

◆ refinementSurfaces() [2/2]

refinementSurfaces ( const searchableSurfaces allGeometry,
const labelList surfaces,
const wordList names,
const PtrList< surfaceZonesInfo > &  surfZones,
const labelList regionOffset,
const labelList minLevel,
const labelList maxLevel,
const labelList gapLevel,
const scalarField perpendicularAngle,
PtrList< dictionary > &  patchInfo,
const bool  dryRun 
)

Definition at line 574 of file refinementSurfaces.C.

References forAll, and PtrList::set().

Here is the call graph for this function:

Member Function Documentation

◆ geometry()

const searchableSurfaces& geometry ( ) const
inline

Definition at line 174 of file refinementSurfaces.H.

Referenced by snappySnapDriver::calcNearestSurface().

Here is the caller graph for this function:

◆ surfaces()

const labelList& surfaces ( ) const
inline

Definition at line 179 of file refinementSurfaces.H.

Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), and snappySnapDriver::repatchToSurface().

Here is the caller graph for this function:

◆ names()

const wordList& names ( ) const
inline

Definition at line 185 of file refinementSurfaces.H.

◆ surfZones()

const PtrList<surfaceZonesInfo>& surfZones ( ) const
inline

Definition at line 190 of file refinementSurfaces.H.

Referenced by snappySnapDriver::calcNearestSurface(), snappySnapDriver::detectNearSurfaces(), and snappySnapDriver::repatchToSurface().

Here is the caller graph for this function:

◆ regionOffset()

const labelList& regionOffset ( ) const
inline

Definition at line 196 of file refinementSurfaces.H.

◆ minLevel() [1/2]

const labelList& minLevel ( ) const
inline

Definition at line 202 of file refinementSurfaces.H.

◆ maxLevel() [1/2]

const labelList& maxLevel ( ) const
inline

Definition at line 208 of file refinementSurfaces.H.

◆ gapLevel()

const labelList& gapLevel ( ) const
inline

Definition at line 214 of file refinementSurfaces.H.

◆ blockLevel()

const labelList& blockLevel ( ) const
inline

Definition at line 221 of file refinementSurfaces.H.

◆ extendedGapLevel()

const List<FixedList<label, 3> >& extendedGapLevel ( ) const
inline

Definition at line 232 of file refinementSurfaces.H.

◆ extendedGapMode()

const List<volumeType>& extendedGapMode ( ) const
inline

Definition at line 238 of file refinementSurfaces.H.

◆ gapSelf()

const boolList& gapSelf ( ) const
inline

Definition at line 245 of file refinementSurfaces.H.

◆ perpendicularAngle()

const scalarField& perpendicularAngle ( ) const
inline

Definition at line 251 of file refinementSurfaces.H.

◆ patchInfo()

const PtrList<dictionary>& patchInfo ( ) const
inline

Definition at line 257 of file refinementSurfaces.H.

◆ globalRegion()

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

◆ whichSurface()

Foam::labelPair whichSurface ( const label  globalRegionI) const

Definition at line 614 of file refinementSurfaces.C.

◆ minLevel() [2/2]

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

Definition at line 275 of file refinementSurfaces.H.

References refinementSurfaces::globalRegion().

Here is the call graph for this function:

◆ maxLevel() [2/2]

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

Definition at line 281 of file refinementSurfaces.H.

References refinementSurfaces::globalRegion().

Here is the call graph for this function:

◆ nRegions()

label nRegions ( ) const
inline

Definition at line 286 of file refinementSurfaces.H.

◆ maxGapLevel()

Foam::labelList maxGapLevel ( ) const

Definition at line 679 of file refinementSurfaces.C.

References forAll, Foam::max(), regionNames, and Foam::Zero.

Here is the call graph for this function:

◆ setMinLevelFields()

void setMinLevelFields ( const shellSurfaces shells)

◆ findHigherIntersection()

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

◆ findAllIntersections() [1/2]

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

◆ findAllIntersections() [2/2]

void findAllIntersections ( const pointField start,
const pointField end,
const labelList currentLevel,
const labelList globalMinLevel,
const labelList globalMaxLevel,
List< pointList > &  surfaceLocation,
List< vectorList > &  surfaceNormal,
labelListList surfaceLevel 
) const

Definition at line 1088 of file refinementSurfaces.C.

References stdFoam::end(), searchableSurface::findLineAll(), forAll, searchableSurface::getNormal(), searchableSurface::getRegion(), n, and List::setSize().

Here is the call graph for this function:

◆ findNearestIntersection() [1/4]

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

Definition at line 1185 of file refinementSurfaces.C.

References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getRegion(), and List::setSize().

Referenced by snappySnapDriver::detectNearSurfaces().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findNearestIntersection() [2/4]

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

◆ findNearestIntersection() [3/4]

void findNearestIntersection ( const pointField start,
const pointField end,
labelList surfaces,
vectorField normal 
) const

Definition at line 1438 of file refinementSurfaces.C.

References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getNormal(), List::setSize(), and Foam::Zero.

Here is the call graph for this function:

◆ findNearestIntersection() [4/4]

void findNearestIntersection ( const pointField start,
const pointField end,
labelList surfaces,
List< pointIndexHit > &  hitInfo1,
vectorField normal 
) const

Definition at line 1481 of file refinementSurfaces.C.

References stdFoam::end(), searchableSurface::findLine(), forAll, searchableSurface::getNormal(), List::setSize(), and Foam::Zero.

Here is the call graph for this function:

◆ findAnyIntersection()

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

Definition at line 1531 of file refinementSurfaces.C.

References stdFoam::end(), and searchableSurfacesQueries::findAnyIntersection().

Here is the call graph for this function:

◆ findNearest() [1/2]

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

Definition at line 1552 of file refinementSurfaces.C.

References searchableSurfacesQueries::findNearest(), forAll, and samples().

Referenced by snappySnapDriver::calcNearestSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findNearestRegion() [1/3]

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

Definition at line 1585 of file refinementSurfaces.C.

References Foam::findIndices(), searchableSurfacesQueries::findNearest(), forAll, samples(), and List::setSize().

Referenced by snappySnapDriver::calcNearestSurface(), and snappySnapDriver::repatchToSurface().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ findNearestRegion() [2/3]

void findNearestRegion ( const labelList surfacesToTest,
const pointField samples,
const scalarField nearestDistSqr,
labelList hitSurface,
List< pointIndexHit > &  hitInfo,
labelList hitRegion,
vectorField hitNormal 
) const

Definition at line 1648 of file refinementSurfaces.C.

References Foam::findIndices(), searchableSurfacesQueries::findNearest(), forAll, samples(), List::setSize(), and Foam::Zero.

Here is the call graph for this function:

◆ findInside()

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

◆ findNearest() [2/2]

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

Definition at line 1832 of file refinementSurfaces.C.

References searchableSurfacesQueries::findNearest(), forAll, and samples().

Here is the call graph for this function:

◆ findNearestRegion() [3/3]

void findNearestRegion ( const labelList surfacesToTest,
const labelListList regions,
const pointField samples,
const scalarField nearestDistSqr,
labelList hitSurface,
List< pointIndexHit > &  hitInfo,
labelList hitRegion,
vectorField hitNormal 
) const

Definition at line 1869 of file refinementSurfaces.C.

References Foam::findIndices(), searchableSurfacesQueries::findNearest(), forAll, samples(), List::setSize(), and Foam::Zero.

Here is the call graph for this function:

The documentation for this class was generated from the following files: