mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: checkMesh: output AMI weights on mapped. Fixes #2356.
Also output target weights
This commit is contained in:
@ -1157,6 +1157,34 @@ Foam::label Foam::checkGeometry
|
||||
globalFaces,
|
||||
globalPoints
|
||||
);
|
||||
|
||||
if (cpp.sameWorld())
|
||||
{
|
||||
//- Get the patch on the region
|
||||
const polyPatch& nbrPp = cpp.samplePolyPatch();
|
||||
|
||||
// Collect neighbour geometry
|
||||
faceList mergedFaces;
|
||||
pointField mergedPoints;
|
||||
autoPtr<globalIndex> globalFaces;
|
||||
autoPtr<globalIndex> globalPoints;
|
||||
|
||||
collectAndWriteAMIWeights
|
||||
(
|
||||
cpp.sampleMesh(),
|
||||
wr,
|
||||
outputDir / pName + "-tgt_" + tmName,
|
||||
ami.tgtWeightsSum(),
|
||||
nbrPp.localFaces(),
|
||||
nbrPp.meshPoints(),
|
||||
nbrPp.meshPointMap(),
|
||||
|
||||
mergedFaces,
|
||||
mergedPoints,
|
||||
globalFaces,
|
||||
globalPoints
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user