mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: add findCell for PDRblockMesh
This commit is contained in:
committed by
Andrew Heather
parent
ace1491df3
commit
4995fc5997
@ -157,6 +157,28 @@ int main(int argc, char *argv[])
|
||||
<< " length = " << mesh.width(mid) << nl;
|
||||
}
|
||||
|
||||
// Test findCell
|
||||
{
|
||||
Info<< nl << "findCell:" << nl;
|
||||
|
||||
for
|
||||
(
|
||||
const point& pt
|
||||
: {
|
||||
mesh.bounds().centre(),
|
||||
mesh.bounds().min() - 0.1 * mesh.bounds().span(),
|
||||
mesh.bounds().max() + 0.1 * mesh.bounds().span()
|
||||
}
|
||||
)
|
||||
{
|
||||
labelVector ijk = mesh.findCell(pt);
|
||||
|
||||
Info<< " " << pt << " = " << ijk;
|
||||
if (cmptMin(ijk) < 0) Info<< " [not found]";
|
||||
Info<< nl;
|
||||
}
|
||||
}
|
||||
|
||||
Info<< nl;
|
||||
|
||||
// Fatal with FULLDEBUG
|
||||
|
||||
Reference in New Issue
Block a user