ENH: foamyHexMesh: cell/face zone in parallel

This commit is contained in:
laurence
2013-09-06 16:30:17 +01:00
parent 0b0e0e69f4
commit 0df0edf359
6 changed files with 395 additions and 109 deletions

View File

@ -847,7 +847,9 @@ Foam::label Foam::globalMeshData::findTransform
{
FatalErrorIn("globalMeshData::findTransform(..)")
<< "Problem. Cannot find " << remotePoint
<< " or " << localPoint << " in " << info
<< " or " << localPoint << " "
<< coupledPatch().localPoints()[localPoint]
<< " in " << info
<< endl
<< "remoteTransformI:" << remoteTransformI << endl
<< "localTransformI:" << localTransformI

View File

@ -182,7 +182,6 @@ Foam::surfaceZonesInfo::surfaceZonesInfo(const surfaceZonesInfo& surfZone)
{}
// Get indices of unnamed surfaces (surfaces without faceZoneName)
Foam::labelList Foam::surfaceZonesInfo::getUnnamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList
@ -204,7 +203,6 @@ Foam::labelList Foam::surfaceZonesInfo::getUnnamedSurfaces
}
// Get indices of named surfaces (surfaces with faceZoneName)
Foam::labelList Foam::surfaceZonesInfo::getNamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList
@ -230,7 +228,6 @@ Foam::labelList Foam::surfaceZonesInfo::getNamedSurfaces
}
// Get indices of closed named surfaces
Foam::labelList Foam::surfaceZonesInfo::getClosedNamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList,
@ -263,7 +260,33 @@ Foam::labelList Foam::surfaceZonesInfo::getClosedNamedSurfaces
}
// Get indices of closed named surfaces
Foam::labelList Foam::surfaceZonesInfo::getUnclosedNamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList,
const searchableSurfaces& allGeometry,
const labelList& surfaces
)
{
labelList unclosed(surfList.size());
label unclosedI = 0;
forAll(surfList, surfI)
{
if
(
surfList.set(surfI)
&& !allGeometry[surfaces[surfI]].hasVolumeType()
)
{
unclosed[unclosedI++] = surfI;
}
}
unclosed.setSize(unclosedI);
return unclosed;
}
Foam::labelList Foam::surfaceZonesInfo::getAllClosedNamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList,
@ -292,7 +315,6 @@ Foam::labelList Foam::surfaceZonesInfo::getAllClosedNamedSurfaces
}
// Get indices of named surfaces with a
Foam::labelList Foam::surfaceZonesInfo::getInsidePointNamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList

View File

@ -199,6 +199,14 @@ public:
const labelList& surfaces
);
//- Get indices of surfaces with a cellZone that are unclosed
static labelList getUnclosedNamedSurfaces
(
const PtrList<surfaceZonesInfo>& surfList,
const searchableSurfaces& allGeometry,
const labelList& surfaces
);
//- Get indices of surfaces with a cellZone that are closed.
static labelList getAllClosedNamedSurfaces
(