Replies: 1 comment 4 replies
-
@pcarruscag Would appreciate some feedback when you get a chance. Thank you! |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
If I set DV_KIND = HICKS_HENNE, then what exactly does DV_VALUE do? I see that it deforms the mesh, but I am trying to understand how exactly DV_VALUE (a scalar) is related to the vector of design variables defined in DEFINITION_DV?
Thanks for your help and apologies if this is documented elsewhere--I searched for it a bit but could not find a definition.
Edit1:
Just to add some context, I want to write a Python function that implements
f, df = function(x)
, wherex
is the vector of design variables (e.g., Hicks and Henne bump function coefficients). I tried to modify theshape_optimization.py
to implement this, where I essentially ignore the calls to the optimizer (and I useproject.obj_f(x)
andproject.obj_df(x)
for this). However, the time it takes to evaluate the objective function and gradient this way, suggest that it might not be utilizing parallel computing (note that the code is successfully compiled and tested for parallel scale up). On the other hand, runningdiscrete_adjoint.py
for the same config file, computes the forward and adjoint solutions at a fraction of the time. For example, with 36 cores, the first approach takes ~15minutes whereas the second approach takes ~1minute.Therefore when I run
discrete_adjoint.py
, the script reads the mesh file to infer the geometry deformations and runs the forward and adjoint solvers on it. It appears that the way to generate a deformed mesh is to adjustDV_VALUE
in the config file, runSU2_DEF
and then used the deformed mesh. However, I am not sure how the scalar-valuedDV_VALUE
is related to the design vectorx
?Edit2:
It appears that
DV_VALUE
essentially does the deformation atDV_PARAM
.How can I pass an array of
DV_VALUE
at list ofDV_PARAM
tuples? When I just tried passing a comma-separated list, I see that it ignores all inputs but the first one.Beta Was this translation helpful? Give feedback.
All reactions