Replies: 3 comments 4 replies
-
Hi, This issue is occuring because the To understand why, consider:
To solve this, you should either: Separately, it's best practice to keep airfoils scaled in normalized coordinates, rather than rescaling them into physical coordinates (as the code snippet above does). Ultimately, this is the real root cause of this issue, presuming that |
Beta Was this translation helpful? Give feedback.
-
Hi Peter, thanks for your quick reply. Now I understand the problem. John |
Beta Was this translation helpful? Give feedback.
-
Hi, The np.argmin function is causing the issue. Like Peter said, argmin is not something that is compatible in an automatic-differentiation context. If you are optimizing a section with a given topology the LE_index shouldn't change. So you can override the function with an integer value you should know in advance. I already had similar issue in the past and solved it that way Bests |
Beta Was this translation helpful? Give feedback.
-
Hi Peter and ASB Users,
I'm trying to scale a Fuselage during optimization and got an error "Implicit conversion of symbolic CasADi type to numeric matrix not supported".
Here is the code segment:
and here is the related error message:
I tried the direct scale method of the Airfoil Class but that failed also.
Is there mistake in my approach or is there a workaround for this problem?
Thanks for any help.
John
Beta Was this translation helpful? Give feedback.
All reactions