Encapsulates queries for volume refinement ('refine all cells within shell'). More...
#include <shellSurfaces.H>
Public Types | |
| enum | refineMode { INSIDE , OUTSIDE , DISTANCE } |
| Volume refinement controls. More... | |
Public Member Functions | |
| shellSurfaces (const searchableSurfaces &allGeometry, const dictionary &shellsDict, const bool dryRun=false) | |
| Construct from geometry and dictionary. | |
| const labelList & | shells () const |
| Indices of surfaces that are shells. | |
| const List< List< FixedList< label, 3 > > > & | extendedGapLevel () const |
| Per shell, per region the small-gap level specification. | |
| const List< List< volumeType > > & | extendedGapMode () const |
| Per shell, per region the small-gap level specification. | |
| const boolListList & | gapSelf () const |
| Per shell, per region whether to test for gap with same surface. | |
| label | maxLevel () const |
| Highest shell level. | |
| labelList | maxGapLevel () const |
| Highest shell gap level. | |
| labelPairList | directionalSelectLevel () const |
| Min and max cell level for directional refinement. | |
| void | findHigherLevel (const pointField &pt, const labelList &ptLevel, labelList &maxLevel) const |
| Find shell level higher than ptLevel. | |
| void | findHigherGapLevel (const pointField &pt, const labelList &ptLevel, labelList &gapShell, List< FixedList< label, 3 > > &gapInfo, List< volumeType > &gapMode) const |
| Find a shell whose minimum gap level is >= ptLevel. | |
| void | findHigherGapLevel (const pointField &pt, const labelList &ptLevel, List< FixedList< label, 3 > > &gapInfo, List< volumeType > &gapMode) const |
| Find a shell whose minimum gap level is >= ptLevel. gapInfo. | |
| void | findLevel (const pointField &pt, const labelList &ptLevel, labelList &shell) const |
| Find first shell (or -1) with level equal or lower than ptLevel. | |
| void | findDirectionalLevel (const pointField &pt, const labelList &ptLevel, const labelList &dirLevel, const direction dir, labelList &shell) const |
| Find any shell (or -1) with higher wanted directional level. | |
| const vectorField & | smoothDirection () const |
| Per shell the smoothing direction. | |
| const labelList & | nSmoothExpansion () const |
| Per shell the directional smoothing iterations. | |
| const labelList & | nSmoothPosition () const |
| Per shell the positional smoothing iterations. | |
Encapsulates queries for volume refinement ('refine all cells within shell').
Definition at line 53 of file shellSurfaces.H.
| enum refineMode |
Volume refinement controls.
| Enumerator | |
|---|---|
| INSIDE | |
| OUTSIDE | |
| DISTANCE | |
Definition at line 62 of file shellSurfaces.H.
| shellSurfaces | ( | const searchableSurfaces & | allGeometry, |
| const dictionary & | shellsDict, | ||
| const bool | dryRun = false ) |
Construct from geometry and dictionary.
Definition at line 597 of file shellSurfaces.C.
|
inline |
Indices of surfaces that are shells.
Definition at line 225 of file shellSurfaces.H.
Per shell, per region the small-gap level specification.
Definition at line 233 of file shellSurfaces.H.
|
inline |
Per shell, per region the small-gap level specification.
Definition at line 241 of file shellSurfaces.H.
|
inline |
Per shell, per region whether to test for gap with same surface.
Definition at line 249 of file shellSurfaces.H.
| Foam::label maxLevel | ( | ) | const |
Highest shell level.
Definition at line 831 of file shellSurfaces.C.
References forAll, and Foam::max().
Referenced by findHigherLevel().


| Foam::labelList maxGapLevel | ( | ) | const |
Highest shell gap level.
Definition at line 842 of file shellSurfaces.C.
References forAll, Foam::max(), and Foam::Zero.

| Foam::labelPairList directionalSelectLevel | ( | ) | const |
Min and max cell level for directional refinement.
Definition at line 858 of file shellSurfaces.C.
References UList< T >::first(), and forAll.

| void findHigherLevel | ( | const pointField & | pt, |
| const labelList & | ptLevel, | ||
| labelList & | maxLevel ) const |
Find shell level higher than ptLevel.
Definition at line 887 of file shellSurfaces.C.
References forAll, and maxLevel().

| void findHigherGapLevel | ( | const pointField & | pt, |
| const labelList & | ptLevel, | ||
| labelList & | gapShell, | ||
| List< FixedList< label, 3 > > & | gapInfo, | ||
| List< volumeType > & | gapMode ) const |
Find a shell whose minimum gap level is >= ptLevel.
Definition at line 904 of file shellSurfaces.C.
References forAll, volumeType::MIXED, List< T >::setSize(), and UList< T >::size().

| void findHigherGapLevel | ( | const pointField & | pt, |
| const labelList & | ptLevel, | ||
| List< FixedList< label, 3 > > & | gapInfo, | ||
| List< volumeType > & | gapMode ) const |
Find a shell whose minimum gap level is >= ptLevel. gapInfo.
is (0 0 0) if no shell found
Definition at line 929 of file shellSurfaces.C.
| void findLevel | ( | const pointField & | pt, |
| const labelList & | ptLevel, | ||
| labelList & | shell ) const |
Find first shell (or -1) with level equal or lower than ptLevel.
Definition at line 942 of file shellSurfaces.C.
References forAll, List< T >::setSize(), and UList< T >::size().

| void findDirectionalLevel | ( | const pointField & | pt, |
| const labelList & | ptLevel, | ||
| const labelList & | dirLevel, | ||
| const direction | dir, | ||
| labelList & | shell ) const |
Find any shell (or -1) with higher wanted directional level.
Definition at line 961 of file shellSurfaces.C.
References DynamicList< T, SizeMin >::append(), DynamicList< T, SizeMin >::clear(), Pair< T >::first(), forAll, INSIDE, volumeType::INSIDE, OUTSIDE, volumeType::OUTSIDE, Pair< T >::second(), List< T >::setSize(), and UList< T >::size().

| const Foam::vectorField & smoothDirection | ( | ) | const |
Per shell the smoothing direction.
Definition at line 875 of file shellSurfaces.C.
| const Foam::labelList & nSmoothExpansion | ( | ) | const |
Per shell the directional smoothing iterations.
Definition at line 869 of file shellSurfaces.C.
| const Foam::labelList & nSmoothPosition | ( | ) | const |
Per shell the positional smoothing iterations.
Definition at line 881 of file shellSurfaces.C.