Go to the documentation of this file.
40 #ifndef refinementSurfaces_H
41 #define refinementSurfaces_H
56 class searchableSurfaces;
154 const label gapLevelIncrement,
203 return regionOffset_;
239 return extendedGapLevel_;
245 return extendedGapMode_;
252 return selfProximity_;
258 return perpendicularAngle_;
271 label
globalRegion(
const label surfI,
const label regionI)
const
273 return regionOffset_[surfI]+regionI;
280 label
minLevel(
const label surfI,
const label regionI)
const
286 label
maxLevel(
const label surfI,
const label regionI)
const
293 return minLevel_.size();
void findAnyIntersection(const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const
Used for debugging only: find intersection of edge.
const labelList & maxLevel() const
From global region number to refinement level.
labelList maxGapLevel() const
Per surface the maximum extendedGapLevel over all its regions.
void findNearest(const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const
Find nearest point on surfaces.
label maxLevel(const label surfI, const label regionI) const
Max level for surface and region on surface.
const labelList & surfaces() const
const boolList & gapSelf() const
From global region number to whether to detect gaps to same.
Contains information about location on a triSurface.
void findHigherIntersection(const shellSurfaces &shells, const pointField &start, const pointField &end, const labelList ¤tLevel, labelList &surfaces, labelList &surfaceLevel) const
Find intersection of edge. Return -1 or first surface.
const searchableSurfaces & geometry() const
const labelList & gapLevel() const
From global region number to small gap refinement level.
const PtrList< surfaceZonesInfo > & surfZones() const
Encapsulates queries for volume refinement ('refine all cells within shell').
const wordList & names() const
Names of surfaces.
labelPair whichSurface(const label globalRegionI) const
From global region to surface + region.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
const labelList & minLevel() const
From global region number to refinement level.
const labelList & blockLevel() const
scalarField samples(nIntervals, Zero)
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
const List< FixedList< label, 3 > > & extendedGapLevel() const
From global region number to specification of gap and its.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
label globalRegion(const label surfI, const label regionI) const
From surface and region on surface to global region.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
const PtrList< dictionary > & patchInfo() const
From global region number to patch type.
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.
void findNearestIntersection(const labelList &surfacesToTest, const pointField &start, const pointField &end, labelList &surface1, List< pointIndexHit > &hit1, labelList ®ion1, labelList &surface2, List< pointIndexHit > &hit2, labelList ®ion2) const
Find intersection nearest to the endpoints. surface1,2 are.
void findAllIntersections(const pointField &start, const pointField &end, const labelList ¤tLevel, const labelList &globalMinLevel, const labelList &globalMaxLevel, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const
Find all intersections of edge with any surface with applicable.
label minLevel(const label surfI, const label regionI) const
Min level for surface and region on surface.
const scalarField & perpendicularAngle() const
From global region number to perpendicular angle.
Container for searchableSurfaces. The collection is specified as a dictionary. For example,...
const List< volumeType > & extendedGapMode() const
From global region number to side of surface to detect.
const labelList & regionOffset() const
From surface to starting global region.
void setMinLevelFields(const shellSurfaces &shells)
Calculate minLevelFields.
Container for data on surfaces used for surface-driven refinement. Contains all the data about the le...