|
[Sponsors] |
May 9, 2014, 13:36 |
Restarting an optimization cycle
|
#1 |
Member
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 12 |
Hi,
If I stop an optimization cycle after i get some designs, say, after the third design DSN003, and want to change some parameter like scale , how do I make the solver to start from the last known solution. I gave the restart_sol = yes, but the when SU2 runs, it deletes all the previous designs and starts a fresh cycle. Also, I would like to know, when would the optimization cycle stop? Should I stop it after some particular number of iterations, or would SU2 stop by itself? Regards, Sreekanth |
|
May 15, 2014, 16:32 |
|
#2 |
Member
Sean R. Copeland
Join Date: Jan 2013
Posts: 40
Rep Power: 13 |
Hi Sreekanth,
When you launch a design in SU2, the python scripting creates subdirectories within your current working directory for each of the designs (DSN00X). If you want to restart the design process from a particular design, simply copy the restart file from the desired design directory (DSN00X) back to your top-level working directory and set RESTART_SOL to 'YES'. When you re-run the design script, it will delete the other directories unless you move them to another renamed directory. Hope that helps, good luck -Sean |
|
May 28, 2014, 05:44 |
|
#3 |
Member
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 12 |
Hi,
But what about the mesh file? How do I get the mesh file for the latest design. What I do now is to copy the actual mesh to the DESIGNS/DSN0XX/DECOMP/ directory, run "SU2_MDC config_MDC.cfg " and get a new file. Is this the right way? Also, in one of the presentations it was mentioned that it is possible to export the final design as ".stl" file. How can I do this Regards, Sreekanth |
|
June 5, 2014, 15:56 |
|
#4 |
Member
Sean R. Copeland
Join Date: Jan 2013
Posts: 40
Rep Power: 13 |
Hi Sreekanth,
If you have the value of the design variables at the latest design iteration, you can always start from your baseline mesh and re-run the mesh deformation tools to re-generate the appropriate volumetric mesh from the last design iteration. If you want an .stl file of the final design, just run SU2_MDC with the "VISUALIZE_DEFORMATION=YES" in the configuration file. You can do this without specifying any deformation of the surface as well if you already have a design you like. -Sean |
|
June 5, 2014, 16:10 |
|
#5 |
Member
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15 |
Sreekanth,
There should be a project file that stores the optimizer's progress, called "project.pkl" in the folder you called SU2. use the extra command line option that will read this file to restart -- shape_optimization.py ... -n project.pkl for more info, check the help -- shape_optimization.py -h - Trent |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Airfoil Shape Optimization using gradient based methods | jaiswal | Main CFD Forum | 1 | April 10, 2014 12:22 |
Total force optimization or pressure force optimization? | robyTKD | SU2 Shape Design | 1 | August 19, 2013 16:54 |
COMSOL: optimization applied to a laminar flow | tdh89 | COMSOL | 0 | April 30, 2012 09:57 |
simulation not completed in HPDC (thin wall casting) | flyingming | FLOW-3D | 3 | January 20, 2010 12:24 |
BOOK ON OPTIMIZATION OF FORTRAN CODES | Alberto | Main CFD Forum | 3 | November 10, 2008 07:07 |