40 #ifndef refinementSurfaces_H 41 #define refinementSurfaces_H 56 class searchableSurfaces;
161 const label gapLevelIncrement,
210 return regionOffset_;
253 return extendedGapLevel_;
259 return extendedGapMode_;
266 return selfProximity_;
279 return extendedCurvatureLevel_;
285 return perpendicularAngle_;
298 label
globalRegion(
const label surfI,
const label regionI)
const 300 return regionOffset_[surfI]+regionI;
307 label
minLevel(
const label surfI,
const label regionI)
const 313 label
maxLevel(
const label surfI,
const label regionI)
const 320 return minLevel_.
size();
339 const scalar cosAngle,
340 const scalar level0EdgeLength
void size(const label n)
Older name for setAddressableSize.
labelList maxCurvatureLevel() const
Per surface the maximum curvatureLevel over all its regions.
const labelList & surfaces() const
A list of keyword definitions, which are a keyword followed by a number of values (eg...
scalarField samples(nIntervals, Zero)
void findAnyIntersection(const pointField &start, const pointField &end, labelList &surfaces, List< pointIndexHit > &) const
Used for debugging only: find intersection of edge.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines. WIP.
const labelList & minLevel() const
From global region number to refinement level.
void findNearest(const labelList &surfacesToTest, const pointField &samples, const scalarField &nearestDistSqr, labelList &surfaces, List< pointIndexHit > &) const
Find nearest point on surfaces.
const labelList & leakLevel() const
From global region number to cell level at which leakage detection is applied. labelMax if not set...
Container for data on surfaces used for surface-driven refinement. Contains all the data about the le...
const boolList & gapSelf() const
From global region number to whether to detect gaps to same.
const searchableSurfaces & geometry() const
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.
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.
const labelList & gapLevel() const
From global region number to small gap refinement level.
const labelList & regionOffset() const
From surface to starting global region.
labelPair whichSurface(const label globalRegionI) const
From global region to surface + region.
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.
Container for searchableSurfaces. The collection is specified as a dictionary. For example...
Encapsulates queries for volume refinement ('refine all cells within shell').
const List< volumeType > & extendedGapMode() const
From global region number to side of surface to detect.
const PtrList< surfaceZonesInfo > & surfZones() const
const scalarField & perpendicularAngle() const
From global region number to perpendicular angle.
constexpr auto end(C &c) -> decltype(c.end())
Return iterator to the end of the container c.
void setCurvatureMinLevelFields(const scalar cosAngle, const scalar level0EdgeLength)
Update minLevelFields according to (triSurface-only) curvature.
const labelList & blockLevel() const
From global region number to cell level at which blockage detection is applied.
const wordList & names() const
Names of surfaces.
const List< FixedList< label, 3 > > & extendedGapLevel() const
From global region number to specification of gap and its.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers...
labelList maxGapLevel() const
Per surface the maximum extendedGapLevel over all its regions.
label globalRegion(const label surfI, const label regionI) const
From surface and region on surface to global region.
const PtrList< dictionary > & patchInfo() const
From global region number to patch type.
Contains information about location on a triSurface.
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 setMinLevelFields(const shellSurfaces &shells)
Calculate minLevelFields according to both surface- and.
const labelList & maxLevel() const
From global region number to refinement level.
const List< FixedList< label, 4 > > & extendedCurvatureLevel() const
From global region number to specification of curvature.
void findInside(const labelList &surfacesToTest, const pointField &pt, labelList &insideSurfaces) const
Detect if a point is 'inside' (closed) surfaces.