Skip to content

Commit

Permalink
Fixed a bug for sensMap for handling multiple wall surfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
friedenhe authored Aug 20, 2024
1 parent 21dc6b0 commit 2a147a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dafoam/pyDAFoam.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2a147a6

Please sign in to comment.