From 1f7fb08060f2fc3de05391e8b84c2ff73516701b Mon Sep 17 00:00:00 2001 From: Vaggelis Papoutsis Date: Thu, 23 Nov 2023 14:55:58 +0200 Subject: [PATCH] BUG: wrong numbering when determining the zoneIDs of the STL written by topology optimisation. BUG: when determining which mesh faces are cut by iso-surface faces, only append the latter if it contains more than two points --- .../topOVariablesBase/topOVariablesBase.C | 49 ++++++++++--------- .../topOVariablesBase/topOVariablesBase.H | 10 ++-- 2 files changed, 30 insertions(+), 29 deletions(-) diff --git a/src/optimisation/adjointOptimisation/adjoint/optimisation/designVariables/topODesignVariables/topOVariablesBase/topOVariablesBase.C b/src/optimisation/adjointOptimisation/adjoint/optimisation/designVariables/topODesignVariables/topOVariablesBase/topOVariablesBase.C index d620cb7061..0299e96951 100644 --- a/src/optimisation/adjointOptimisation/adjoint/optimisation/designVariables/topODesignVariables/topOVariablesBase/topOVariablesBase.C +++ b/src/optimisation/adjointOptimisation/adjoint/optimisation/designVariables/topODesignVariables/topOVariablesBase/topOVariablesBase.C @@ -141,8 +141,7 @@ bool Foam::topOVariablesBase::addCuttingFaceToIsoline { // Check whether any of points of the new iso-surface face are already // present in the surface. To reduce the number of comparisons, only - // points on iso-surface faces belonging to neighbouring cells are - // checked + // points on iso-surface faces cutting the current cell are checked labelList uniquePointIDs(facePoints.size(), -1); DynamicList uniqueFacePoints(facePoints.size()); DynamicList