mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: foamyHexMesh: Check for hit
This commit is contained in:
@ -429,18 +429,21 @@ void Foam::searchableSurfaceControl::initialVertices
|
|||||||
|
|
||||||
pointAlignment.set(new triad(normals[0]));
|
pointAlignment.set(new triad(normals[0]));
|
||||||
|
|
||||||
// Limit cell size
|
if (infoList[0].hit())
|
||||||
const vector vN =
|
{
|
||||||
infoList[0].hitPoint()
|
// Limit cell size
|
||||||
- 2.0*normals[0]*defaultCellSize_;
|
const vector vN =
|
||||||
|
infoList[0].hitPoint()
|
||||||
|
- 2.0*normals[0]*defaultCellSize_;
|
||||||
|
|
||||||
List<pointIndexHit> intersectionList;
|
List<pointIndexHit> intersectionList;
|
||||||
searchableSurface_.findLineAny
|
searchableSurface_.findLineAny
|
||||||
(
|
(
|
||||||
ptField,
|
ptField,
|
||||||
pointField(1, vN),
|
pointField(1, vN),
|
||||||
intersectionList
|
intersectionList
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
// if (intersectionList[0].hit())
|
// if (intersectionList[0].hit())
|
||||||
// {
|
// {
|
||||||
@ -455,12 +458,13 @@ void Foam::searchableSurfaceControl::initialVertices
|
|||||||
label priority = -1;
|
label priority = -1;
|
||||||
if (!cellSize(pts[pI], sizes[pI], priority))
|
if (!cellSize(pts[pI], sizes[pI], priority))
|
||||||
{
|
{
|
||||||
FatalErrorIn
|
sizes[pI] = defaultCellSize_;
|
||||||
(
|
// FatalErrorIn
|
||||||
"Foam::searchableSurfaceControl::initialVertices"
|
// (
|
||||||
"(pointField&, scalarField&, tensorField&)"
|
// "Foam::searchableSurfaceControl::initialVertices"
|
||||||
) << "Could not calculate cell size"
|
// "(pointField&, scalarField&, tensorField&)"
|
||||||
<< abort(FatalError);
|
// ) << "Could not calculate cell size"
|
||||||
|
// << abort(FatalError);
|
||||||
}
|
}
|
||||||
|
|
||||||
sizes[pI] = min(limitedCellSize, sizes[pI]);
|
sizes[pI] = min(limitedCellSize, sizes[pI]);
|
||||||
|
|||||||
Reference in New Issue
Block a user