From 2a147a6342496981c6be8d5a1bd8e7c8517bb4e4 Mon Sep 17 00:00:00 2001 From: Ping He Date: Mon, 19 Aug 2024 21:43:57 -0500 Subject: [PATCH] Fixed a bug for sensMap for handling multiple wall surfaces --- dafoam/pyDAFoam.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dafoam/pyDAFoam.py b/dafoam/pyDAFoam.py index 84b337f0..a712a75b 100755 --- a/dafoam/pyDAFoam.py +++ b/dafoam/pyDAFoam.py @@ -2071,7 +2071,7 @@ def calcTotalDerivsFFD(self, objFuncName, designVarName, dFScaling=1.0, accumula if designVarName in self.getOption("writeSensMap"): dFdXs = self.mesh.getdXs() dFdXs = self.mapVector(dFdXs, self.allWallsGroup, self.designSurfacesGroup) - Xs = self.getSurfaceCoordinates(self.allWallsGroup) + Xs = self.getSurfaceCoordinates(self.designSurfacesGroup) dFdXsFlatten = dFdXs.flatten() XsFlatten = Xs.flatten() size = len(dFdXsFlatten)