CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Adjoint optimization (https://www.cfd-online.com/Forums/openfoam-solving/157301-adjoint-optimization.html)

Odranoel July 25, 2015 11:32

Adjoint optimization
 
Hi Foamers,

in my MS project I'm running an adjoint shape optimization using OF. For now I'm working on NACA 0012 and at the end of adjoint calculation I need to modify the shape accordingly to the Sensitivity. I'm trying to do it with deformedGeom, using as vector field the Sensitivity multiplied by the patch normals.

The point is: I need to smooth Sensitivity to avoid a bad deformation, but I can't do it with an external python because the Sensitivity (like U or p in a simple RANS simulation) at the final time is a list of values not ordered along the points of my geometry (in this case a NACA 0012).
I don't know how to sort them and make the smoothing with a python and I don't know how to smooth the Sens directly in OF. I can extract the Sens with sample but it is useless for deformedGeom.
Please help me, I'm totally desperate.

Thank you in advance.


All times are GMT -4. The time now is 13:13.