Go to the documentation of this file.
37 #ifndef refinementSurfaces_H
38 #define refinementSurfaces_H
53 class searchableSurfaces;
130 const label gapLevelIncrement
const searchableSurfaces & allGeometry_
Reference to all geometry.
void findAllHigherIntersections(const pointField &start, const pointField &end, const labelList ¤tLevel, const labelList &globalRegionLevel, List< vectorList > &surfaceNormal, labelListList &surfaceLevel) const
Find all intersections of edge. Unsorted order.
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.
List< volumeType > extendedGapMode_
From global region number to side of surface to detect.
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
wordList names_
Surface name (word)
PtrList< surfaceZonesInfo > surfZones_
List of surface zone (face and cell zone) information.
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.
PtrList< dictionary > patchInfo_
From global region number to patchType.
labelList maxLevel_
From global region number to refinement level.
refinementSurfaces(const refinementSurfaces &)
Disallow default bitwise copy construct.
const searchableSurfaces & geometry() const
const labelList & gapLevel() const
From global region number to small gap refinement level.
void operator=(const refinementSurfaces &)
Disallow default bitwise assignment.
scalarField samples(nIntervals, 0)
labelList findHigherLevel(const searchableSurface &geom, const shellSurfaces &shells, const List< pointIndexHit > &intersectionInfo, const labelList &surfaceLevel) const
Given intersection results with geom detect local shell refinement.
labelList surfaces_
Indices of surfaces that are refinement ones.
const PtrList< surfaceZonesInfo > & surfZones() const
Encapsulates queries for volume refinement ('refine all cells within shell').
const wordList & names() const
Names of surfaces.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
scalarField perpendicularAngle_
From global region number to perpendicular angle.
Base class of (analytical or triangulated) surface. Encapsulates all the search routines....
const labelList & minLevel() const
From global region number to refinement level.
labelList minLevel_
From global region number to refinement level.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
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 any number of values (e....
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.
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.
List< FixedList< label, 3 > > extendedGapLevel_
From global region number to small-gap level specification.
label minLevel(const label surfI, const label regionI) const
Min level for surface and region on surface.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const scalarField & perpendicularAngle() const
From global region number to perpendicular angle.
Container for searchableSurfaces.
const List< volumeType > & extendedGapMode() const
From global region number to side of surface to detect.
const labelList & regionOffset() const
From local region number to global region number.
void setMinLevelFields(const shellSurfaces &shells)
Calculate minLevelFields.
void size(const label)
Override size to be inconsistent with allocated storage.
Container for data on surfaces used for surface-driven refinement. Contains all the data about the le...
labelList gapLevel_
From global region number to small-gap level.
A normal distribution model.
labelList regionOffset_
From local region number to global region number.