CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > SU2

Restarting an optimization cycle

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By copeland

Reply
 
LinkBack Thread Tools Display Modes
Old   May 9, 2014, 12:36
Default Restarting an optimization cycle
  #1
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 5
shsreekanth is on a distinguished road
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
shsreekanth is offline   Reply With Quote

Old   May 15, 2014, 15:32
Default
  #2
Member
 
Sean R. Copeland
Join Date: Jan 2013
Posts: 40
Rep Power: 5
copeland is on a distinguished road
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
shsreekanth likes this.
copeland is offline   Reply With Quote

Old   May 28, 2014, 04:44
Default
  #3
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 5
shsreekanth is on a distinguished road
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
shsreekanth is offline   Reply With Quote

Old   June 5, 2014, 14:56
Default
  #4
Member
 
Sean R. Copeland
Join Date: Jan 2013
Posts: 40
Rep Power: 5
copeland is on a distinguished road
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
copeland is offline   Reply With Quote

Old   June 5, 2014, 15:10
Default
  #5
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 7
rktchip is on a distinguished road
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
rktchip is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Airfoil Shape Optimization using gradient based methods jaiswal Main CFD Forum 1 April 10, 2014 11:22
Total force optimization or pressure force optimization? robyTKD SU2 Shape Design 1 August 19, 2013 15:54
COMSOL: optimization applied to a laminar flow tdh89 Main CFD Forum 0 April 30, 2012 08: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


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