mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
REVERT: foamyHexMesh: do not check inside/outside for surface points
This commit is contained in:
@ -225,18 +225,19 @@ inline void Foam::conformalVoronoiMesh::createPointPair
|
|||||||
const scalar ppDist,
|
const scalar ppDist,
|
||||||
const Foam::point& surfPt,
|
const Foam::point& surfPt,
|
||||||
const vector& n,
|
const vector& n,
|
||||||
|
const bool ptPair,
|
||||||
DynamicList<Vb>& pts
|
DynamicList<Vb>& pts
|
||||||
) const
|
) const
|
||||||
{
|
{
|
||||||
vector ppDistn = ppDist*n;
|
vector ppDistn = ppDist*n;
|
||||||
|
|
||||||
const Foam::point internalPt = surfPt - ppDistn;
|
// const Foam::point internalPt = surfPt - ppDistn;
|
||||||
const Foam::point externalPt = surfPt + ppDistn;
|
// const Foam::point externalPt = surfPt + ppDistn;
|
||||||
|
|
||||||
bool internalInside = geometryToConformTo_.inside(internalPt);
|
// bool internalInside = geometryToConformTo_.inside(internalPt);
|
||||||
bool externalOutside = geometryToConformTo_.outside(externalPt);
|
// bool externalOutside = geometryToConformTo_.outside(externalPt);
|
||||||
|
|
||||||
if (internalInside && externalOutside)
|
// if (internalInside && externalOutside)
|
||||||
{
|
{
|
||||||
pts.append
|
pts.append
|
||||||
(
|
(
|
||||||
@ -259,15 +260,24 @@ inline void Foam::conformalVoronoiMesh::createPointPair
|
|||||||
Pstream::myProcNo()
|
Pstream::myProcNo()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (ptPair)
|
||||||
|
{
|
||||||
|
ptPairs_.addPointPair
|
||||||
|
(
|
||||||
|
pts[pts.size() - 2].index(),
|
||||||
|
pts[pts.size() - 1].index() // external 0 -> slave
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Info<< "Warning: point pair not inside/outside" << nl
|
// Info<< "Warning: point pair not inside/outside" << nl
|
||||||
<< " surfPt = " << surfPt << nl
|
// << " surfPt = " << surfPt << nl
|
||||||
<< " internal = " << internalPt << " " << internalInside << nl
|
// << " internal = " << internalPt << " " << internalInside << nl
|
||||||
<< " external = " << externalPt << " " << externalOutside
|
// << " external = " << externalPt << " " << externalOutside
|
||||||
<< endl;
|
// << endl;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user