Encapsulates queries for volume refinement ('refine all cells within shell'). More...
Public Types | |
enum class | refineMode { inside , outside , distance , insideSpan , outsideSpan } |
Volume refinement controls. More... | |
Public Member Functions | |
refinementRegions (const searchableSurfaces &allGeometry, const dictionary &shellsDict) | |
Construct from geometry and dictionary. More... | |
label | maxLevel () const |
Highest shell level. More... | |
void | findHigherLevel (const pointField &pt, const labelList &ptLevel, const scalar level0EdgeLength, labelList &maxLevel) const |
Find shell level higher than ptLevel. More... | |
Encapsulates queries for volume refinement ('refine all cells within shell').
Definition at line 53 of file refinementRegions.H.
|
strong |
Volume refinement controls.
Enumerator | |
---|---|
inside | |
outside | |
distance | |
insideSpan | |
outsideSpan |
Definition at line 60 of file refinementRegions.H.
refinementRegions | ( | const searchableSurfaces & | allGeometry, |
const dictionary & | shellsDict | ||
) |
Construct from geometry and dictionary.
Definition at line 517 of file refinementRegions.C.
References dict, entry::dict(), Foam::endl(), HashTable< T, Key, Hash >::erase(), Foam::exit(), Foam::FatalIOError, FatalIOErrorInFunction, forAll, dictionary::found(), searchableSurface::geometryDir(), refinementRegions::insideSpan, IOWarningInFunction, entry::keyword(), dictionary::lookupEntryPtr(), IOobject::MUST_READ, IOobject::name(), searchableSurfaces::names(), refinementRegions::outsideSpan, NamedEnum< Enum, nEnum >::read(), List< T >::setSize(), HashTable< T, Key, Hash >::size(), HashTable< T, Key, Hash >::sortedToc(), and dictionary::toc().
Foam::label maxLevel | ( | ) | const |
Highest shell level.
Definition at line 645 of file refinementRegions.C.
References forAll, and Foam::max().
void findHigherLevel | ( | const pointField & | pt, |
const labelList & | ptLevel, | ||
const scalar | level0EdgeLength, | ||
labelList & | maxLevel | ||
) | const |
Find shell level higher than ptLevel.
Definition at line 658 of file refinementRegions.C.
References forAll.