mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
no meshed surfaces
This commit is contained in:
@ -1004,14 +1004,17 @@ Foam::vectorField Foam::autoSnapDriver::calcNearestSurface
|
|||||||
const refinementSurfaces& surfaces = meshRefiner_.surfaces();
|
const refinementSurfaces& surfaces = meshRefiner_.surfaces();
|
||||||
const fvMesh& mesh = meshRefiner_.mesh();
|
const fvMesh& mesh = meshRefiner_.mesh();
|
||||||
|
|
||||||
|
// Displacement per patch point
|
||||||
|
vectorField patchDisp(localPoints.size(), vector::zero);
|
||||||
|
|
||||||
|
|
||||||
|
if (returnReduce(localPoints.size(), sumOp<label>()) > 0)
|
||||||
|
{
|
||||||
// Divide surfaces into zoned and unzoned
|
// Divide surfaces into zoned and unzoned
|
||||||
labelList zonedSurfaces;
|
labelList zonedSurfaces;
|
||||||
labelList unzonedSurfaces;
|
labelList unzonedSurfaces;
|
||||||
getZonedSurfaces(zonedSurfaces, unzonedSurfaces);
|
getZonedSurfaces(zonedSurfaces, unzonedSurfaces);
|
||||||
|
|
||||||
// Displacement per patch point
|
|
||||||
vectorField patchDisp(localPoints.size(), vector::zero);
|
|
||||||
|
|
||||||
|
|
||||||
// 1. All points to non-interface surfaces
|
// 1. All points to non-interface surfaces
|
||||||
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
@ -1119,6 +1122,7 @@ Foam::vectorField Foam::autoSnapDriver::calcNearestSurface
|
|||||||
<< " min:" << gMin(magDisp)
|
<< " min:" << gMin(magDisp)
|
||||||
<< " max:" << gMax(magDisp) << endl;
|
<< " max:" << gMax(magDisp) << endl;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
Info<< "Calculated surface displacement in = "
|
Info<< "Calculated surface displacement in = "
|
||||||
<< mesh.time().cpuTimeIncrement() << " s\n" << nl << endl;
|
<< mesh.time().cpuTimeIncrement() << " s\n" << nl << endl;
|
||||||
|
|||||||
Reference in New Issue
Block a user