mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: polyMesh,meshSearch: default value on findCell, pointInCell
This commit is contained in:
@ -267,7 +267,7 @@ void Foam::meshToMesh::cellAddresses
|
||||
cellAddressing_[toI] = -1;
|
||||
|
||||
// Check point is actually in the nearest cell
|
||||
if (fromMesh.pointInCell(p, curCell, polyMesh::FACEDIAGTETS))
|
||||
if (fromMesh.pointInCell(p, curCell))
|
||||
{
|
||||
cellAddressing_[toI] = curCell;
|
||||
}
|
||||
@ -292,15 +292,7 @@ void Foam::meshToMesh::cellAddresses
|
||||
{
|
||||
// search through all the neighbours.
|
||||
// If point is in neighbour reset current cell
|
||||
if
|
||||
(
|
||||
fromMesh.pointInCell
|
||||
(
|
||||
p,
|
||||
neighbours[nI],
|
||||
polyMesh::FACEDIAGTETS
|
||||
)
|
||||
)
|
||||
if (fromMesh.pointInCell(p, neighbours[nI]))
|
||||
{
|
||||
cellAddressing_[toI] = neighbours[nI];
|
||||
found = true;
|
||||
@ -324,15 +316,7 @@ void Foam::meshToMesh::cellAddresses
|
||||
{
|
||||
// search through all the neighbours.
|
||||
// If point is in neighbour reset current cell
|
||||
if
|
||||
(
|
||||
fromMesh.pointInCell
|
||||
(
|
||||
p,
|
||||
nn[nI],
|
||||
polyMesh::FACEDIAGTETS
|
||||
)
|
||||
)
|
||||
if (fromMesh.pointInCell(p, nn[nI]))
|
||||
{
|
||||
cellAddressing_[toI] = nn[nI];
|
||||
found = true;
|
||||
|
||||
@ -45,7 +45,7 @@ void Foam::probes::findElements(const fvMesh& mesh)
|
||||
{
|
||||
const vector& location = operator[](probeI);
|
||||
|
||||
elementList_[probeI] = mesh.findCell(location, polyMesh::FACEDIAGTETS);
|
||||
elementList_[probeI] = mesh.findCell(location);
|
||||
|
||||
if (debug && elementList_[probeI] != -1)
|
||||
{
|
||||
|
||||
@ -138,7 +138,7 @@ Foam::sampledSets::sampledSets
|
||||
mesh_(refCast<const fvMesh>(obr)),
|
||||
loadFromFiles_(loadFromFiles),
|
||||
outputPath_(fileName::null),
|
||||
searchEngine_(mesh_, polyMesh::FACEDIAGTETS),
|
||||
searchEngine_(mesh_),
|
||||
interpolationScheme_(word::null),
|
||||
writeFormat_(word::null)
|
||||
{
|
||||
|
||||
@ -53,11 +53,7 @@ void Foam::triSurfaceMeshPointSet::calcSamples
|
||||
{
|
||||
forAll(sampleCoords_, sampleI)
|
||||
{
|
||||
label cellI = searchEngine().findCell
|
||||
(
|
||||
sampleCoords_[sampleI],
|
||||
polyMesh::FACEDIAGTETS
|
||||
);
|
||||
label cellI = searchEngine().findCell(sampleCoords_[sampleI]);
|
||||
|
||||
if (cellI != -1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user