|
[Sponsors] |
RANS shape optimization all gradients are zero |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 24, 2024, 10:52 |
RANS shape optimization all gradients are zero
|
#1 |
New Member
Join Date: Dec 2023
Posts: 14
Rep Power: 2 |
Hi everyone,
I am trying to minimize drag on a winglet using shape optimization. The flow conditions I am interested in are low subsonic (Mach 0.2). For this, I was using an RANS solver with a mesh including prism layers. However, when I run the optimization, it calculates the adjoint solution first, and when it calculates the gradients, they all result in zero for every control point.I have tried using Euler, and this works fine. However, the solution oscillates a lot, and since it is inviscid, I would prefer to use RANS. Does anyone have any idea why this is happening with RANS? And why does Euler oscillate so much (lift coefficient in a range of 0.1 and drag coefficient in a range of 0.01)? I have attached both configuration files.RANS-shapeOptimisation.txt EULER-shapeOptimisation.txt Thanks for the help!! This is the output I get for RANS: Code:
----------------- FFD technique (parametric -> cartesian) --------------- Checking FFD box dimension. Checking FFD box intersections with the solid surfaces. The FFD planes j=0, j=2, intersect solid surfaces. SU2 is fixing the planes to maintain a continuous 2nd order derivative. Update cartesian coord | FFD box: WING. Max Diff: 7.5341e-14. Design variable (FFD_CONTROL_POINT) number 0. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 1. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 2. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 3. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 4. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 5. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 6. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 7. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 8. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 9. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 10. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 11. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 12. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 13. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 14. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 15. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 16. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 17. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 18. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 19. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 20. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 21. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 22. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 23. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 24. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 25. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 26. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 27. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 28. DRAG gradient : 0 ------------------------------------------------------------------------- Design variable (FFD_CONTROL_POINT) number 29. DRAG gradient : 0 ------------------------------------------------------------------------- ------------------------- Finalize Solver ------------------------- Deleted CNumerics container. Deleted CSolver container. Deleted CGeometry container. Deleted CSurfaceMovement class. Deleted CVolumetricMovement class. Deleted CConfig container. Deleted COutput class. Code:
Found: mesh.su2 New Project: ./ Sequential Least SQuares Programming (SLSQP) parameters: Number of design variables: 30 ( 30 ) Objective function scaling factor: [1.0] Maximum number of iterations: 100 Requested accuracy: 1e-15 Initial guess for the independent variable(s): [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] Lower and upper bound for each independent variable: [(-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0), (-10000.0, 10000.0)] NIT FC OBJFUN GNORM 5 1 1.195152E-07 0.000000E+00 Positive directional derivative for linesearch (Exit mode 8) Current function value: 1.1951518530000002e-07 Iterations: 5 Function evaluations: 1 Gradient evaluations: 1 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
SU2 Adjoint shape optimization | cfd-jg | SU2 | 3 | December 11, 2023 14:04 |
shape optimization problem | yugang881 | SU2 Shape Design | 3 | December 14, 2017 06:26 |
Mesh not modified while shape optimization | dolfyn | SU2 Shape Design | 0 | May 3, 2017 22:20 |
Problem with FFD-based shape optimization: all gradients are zero | praveen | SU2 Shape Design | 10 | October 7, 2013 22:21 |
Testcase for shape optimization using RANS simualtion | diwakaranant | SU2 Shape Design | 1 | April 18, 2013 14:27 |