Class CrawlingCellFinder
Defined in File CrawlingCellFinder.H
Inheritance Relationships
Base Type
public CellFinder(Class CellFinder)
Class Documentation
-
class CrawlingCellFinder : public CellFinder
Class for searching for sampling cells by crawling through opposite faces.
Starting from the wall-adjacent cell, the finder repeatedly identifies the face opposite to the incoming face and crosses it to the next cell. This is intended for meshes with reasonably aligned near-wall layers, where following opposite faces approximates the wall-normal direction.
The sampling height \(h\) can be interpreted either as a physical distance from the wall face or as a consecutive off-wall cell index. In distance mode, crawling stops when the next opposing face is farther from the wall face than \(h\), and the current cell is used. In index mode, \(h\) is rounded to the requested layer index.
For multi-cell sampling, every crawled cell is retained up to the requested distance or layer index. If the crawl reaches a boundary patch before the requested target is reached, the last valid cells are retained. The optional
excludeWallAdjacentargument removes the wall-adjacent cell only when at least one further cell remains.Invalid distances or indices fall back to the wall-adjacent cell.
Contributors/Copyright: 2019-2026 Timofey Mukha
- Source files
Public Functions
-
CrawlingCellFinder(const fvPatch&)
Construct from patch.
-
CrawlingCellFinder(const word &CrawlingCellFinderName, const fvPatch&)
Construct from type and patch.
-
CrawlingCellFinder(const CrawlingCellFinder&) = default
Copy constructor.
-
inline virtual ~CrawlingCellFinder()
Destructor.
-
void findCellIndices(labelList &indexList, const scalarField &h, const bool hIsIndex) const
-
void findCellIndices(labelListList &indexList, const scalarField &h, const bool hIsIndex, const bool excludeWallAdjacent) const