CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2 > SU2 News & Announcements

SU2 Version 2.0.3 Released Today (Developer Release)

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By economon

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2013, 14:04
Default SU2 Version 2.0.3 Released Today (Developer Release)
  #1
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Dear All,

Just a note that we will be posting another developer release of the code today, version 2.0.3 (su2.stanford.edu). In it, there are some improvements to the solution output routines and the viscous continuous adjoint solver. Some platform dependency issues have also been fixed, among other general bug fixes and improvements. This new release also contains a complete overhaul of the Python scripts used for automating SU2, although their functionality and usage remain essentially the same. One important exception to this is that the specification for shape optimization problems in the config file has changed (more info to come).

Thanks to everyone that is working with SU2 and especially to those posting on the forum: you're helping make the community more vibrant, and your feedback is leading directly to improvements in the code.

Cheers,
Tom
economon is offline   Reply With Quote

Old   April 19, 2013, 08:04
Default
  #2
New Member
 
Greg Power
Join Date: Jan 2013
Posts: 9
Rep Power: 13
grjmpower is on a distinguished road
Thanks for the continued improvements!

I tried running the original oneram6 case from the TestCases using 2.0.3 exactly as before. I get the following error:

Code:
Traceback (most recent call last):
  File "/lustre/scratch/grjmpower/local/bin/parallel_computation.py", line 109, in <module>
    main()
  File "/lustre/scratch/grjmpower/local/bin/parallel_computation.py", line 54, in main
    options.divide_grid  )
  File "/lustre/scratch/grjmpower/local/bin/parallel_computation.py", line 74, in parallel_computation
    state = SU2.io.State()
  File "/lustre/scratch/grjmpower/local/bin/SU2/io/state.py", line 87, in __init__
    super(State,self).__init__(*args,**kwarg)
  File "/lustre/scratch/grjmpower/local/bin/SU2/util/ordered_bunch.py", line 79, in __init__
    super(OrderedBunch,self).__init__(*args,**kwarg)
  File "/sw/xt/python/2.7.1/sles11.1_gnu4.3.2/lib/python2.7/collections.py", line 74, in __init__
    self.update(*args, **kwds)
TypeError: update() takes exactly 2 arguments (1 given)
Are the arguments to parallel_computation.py different?

Thanks,

Greg
grjmpower is offline   Reply With Quote

Old   April 19, 2013, 16:11
Default
  #3
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Dear Greg,

Thanks for your post. We found a small compatibility issue between Python version 2.6 & some early versions of Python 2.7. We made a small tweak to the python scripts to remedy this. Could you please download v2.0.3 again and give it another try?

Tom
dtucker likes this.
economon is offline   Reply With Quote

Old   April 19, 2013, 21:07
Default 2.0.3 optimization setup
  #4
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
Quote:
Originally Posted by economon View Post
Dear All,
One important exception to this is that the specification for shape optimization problems in the config file has changed (more info to come).
Please be sure to translate your optimization setup into the new syntax below. The design variable DEFINITION_DV is the same as before.

- Trent

% --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------%
% Available Objective functions
% DRAG, LIFT, SIDEFORCE, PRESSURE, FORCE_X, FORCE_Y,
% FORCE_Z, MOMENT_X, MOMENT_Y, MOMENT_Z, EFFICIENCY,
% EQUIVALENT_AREA, THRUST, TORQUE

% Optimization objective function with optional scaling factor
% ex= Objective * Scale
OPT_OBJECTIVE= DRAG * 0.001

% Optimization constraint functions with scaling factors, separated by semicolons
% ex= (Objective = Value ) * Scale, use '>','<','='
OPT_CONSTRAINT= ( LIFT > 0.328188 ) * 0.001; ( MOMENT_Z > 0.034068 ) * 0.001
rktchip is offline   Reply With Quote

Old   April 19, 2013, 21:21
Default
  #5
Member
 
Tommy Chen
Join Date: Mar 2011
Location: University of Michigan
Posts: 96
Rep Power: 15
Tommy Chen is on a distinguished road
Quote:
Originally Posted by rktchip View Post
Please be sure to translate your optimization setup into the new syntax below. The design variable DEFINITION_DV is the same as before.

- Trent

% --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------%
% Available Objective functions
% DRAG, LIFT, SIDEFORCE, PRESSURE, FORCE_X, FORCE_Y,
% FORCE_Z, MOMENT_X, MOMENT_Y, MOMENT_Z, EFFICIENCY,
% EQUIVALENT_AREA, THRUST, TORQUE

% Optimization objective function with optional scaling factor
% ex= Objective * Scale
OPT_OBJECTIVE= DRAG * 0.001

% Optimization constraint functions with scaling factors, separated by semicolons
% ex= (Objective = Value ) * Scale, use '>','<','='
OPT_CONSTRAINT= ( LIFT > 0.328188 ) * 0.001; ( MOMENT_Z > 0.034068 ) * 0.001

Hi Trent

Thank you so much !

Could you attach a standard configuration file case in this thread that could cover all the available parameters in this 2.0.3 version? In this version 2.0.3, I noticed that the SU2Py folder with the build_SU2.py which would automatically build the components of SU2 in python environment is gone,actually I thought it to be convinient, why is it not in the new version?

Besides, none of the rans testcases is a viscous adjoint optmization, could you please add a testcase of rans optimization into the testcase folder.

Thanks!

Regards

Tommy
Tommy Chen is offline   Reply With Quote

Old   April 20, 2013, 10:24
Default
  #6
Member
 
Tommy Chen
Join Date: Mar 2011
Location: University of Michigan
Posts: 96
Rep Power: 15
Tommy Chen is on a distinguished road
Quote:
Originally Posted by rktchip View Post
Please be sure to translate your optimization setup into the new syntax below. The design variable DEFINITION_DV is the same as before.

- Trent

% --------------------- OPTIMAL SHAPE DESIGN DEFINITION -----------------------%
% Available Objective functions
% DRAG, LIFT, SIDEFORCE, PRESSURE, FORCE_X, FORCE_Y,
% FORCE_Z, MOMENT_X, MOMENT_Y, MOMENT_Z, EFFICIENCY,
% EQUIVALENT_AREA, THRUST, TORQUE

% Optimization objective function with optional scaling factor
% ex= Objective * Scale
OPT_OBJECTIVE= DRAG * 0.001

% Optimization constraint functions with scaling factors, separated by semicolons
% ex= (Objective = Value ) * Scale, use '>','<','='
OPT_CONSTRAINT= ( LIFT > 0.328188 ) * 0.001; ( MOMENT_Z > 0.034068 ) * 0.001
Hi Trent

I have translated my configuration file into the new syntax as you posted yesterday, however the optmization sill doesn't work well, the error output is attached below. Why is that, what does the error mean , is that due to the link made by the io script??

Thanks and regards

Tommy
Attached Files
File Type: txt error.txt (2.5 KB, 22 views)
Tommy Chen is offline   Reply With Quote

Old   April 20, 2013, 10:26
Default
  #7
Member
 
Tommy Chen
Join Date: Mar 2011
Location: University of Michigan
Posts: 96
Rep Power: 15
Tommy Chen is on a distinguished road
It seems that a link to the mesh file is broken so that the script has not found it........

We have to fix it .
Tommy Chen is offline   Reply With Quote

Old   April 22, 2013, 05:21
Default
  #8
Member
 
Anant Diwakar
Join Date: Jan 2013
Posts: 68
Rep Power: 13
diwakaranant is on a distinguished road
Dear Tommy

I am getting the same error for rotating airfoil case (shape optimization
in euler flow) even after using the modified configuration file.

Did you get any fix for this issue ?

Thanks
Anant
diwakaranant is offline   Reply With Quote

Old   April 22, 2013, 12:00
Default
  #9
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
Hello,

Yup, it looks like it's have trouble making a link. This is used to run the SU2 suite components in individual folders without copying whole meshes.

Would you mind uploading your configuration file?

Best,
-Trent
rktchip is offline   Reply With Quote

Old   April 22, 2013, 12:08
Default
  #10
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
Quote:
Originally Posted by rktchip View Post
Would you mind uploading your configuration file?
ah found a related one in the other thread.
looking at this now...
rktchip is offline   Reply With Quote

Old   April 22, 2013, 12:16
Default build_SU2.py -> automake
  #11
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
Quote:
Originally Posted by Tommy Chen View Post
In this version 2.0.3, I noticed that the SU2Py folder with the build_SU2.py which would automatically build the components of SU2 in python environment is gone,actually I thought it to be convinient, why is it not in the new version?
Tommy
Hey Tommy,

build_SU2.py was indeed convenient, but the automake tools are much more flexible and are an industry standard.

please refer to the three steps shown here to use these tools. hopefully you'll find them just as convenient.
http://adl.stanford.edu/docs/display...on+from+Source
rktchip is offline   Reply With Quote

Old   April 25, 2013, 13:22
Default su2 optimization
  #12
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
hello,

i think i've found the issue, could you please test this for me?

replace trunk/SU2_PY/SU2/io/redirect.py with this file -
redirect.py.txt

sorry for the latency, busy quarter and a paper deadline is approaching...
thanks for helping us debug!

- trent

EDIT - uploaded the wrong file...

Last edited by rktchip; April 28, 2013 at 02:35. Reason: uploaded the wrong file...
rktchip is offline   Reply With Quote

Old   April 25, 2013, 21:42
Default
  #13
Member
 
Tommy Chen
Join Date: Mar 2011
Location: University of Michigan
Posts: 96
Rep Power: 15
Tommy Chen is on a distinguished road
Quote:
Originally Posted by rktchip View Post
hello,

i think i've found the issue, could you please test this for me?

replace trunk/SU2_PY/SU2/io/redirect.py with this file -
Attachment 21147

sorry for the latency, busy quarter and a paper deadline is approaching...
thanks for helping us debug!

- trent

Thanks Trent

I will try your updated redirect script, let's see whether it would work well
Tommy Chen is offline   Reply With Quote

Old   April 25, 2013, 22:13
Default
  #14
Member
 
Tommy Chen
Join Date: Mar 2011
Location: University of Michigan
Posts: 96
Rep Power: 15
Tommy Chen is on a distinguished road
Quote:
Originally Posted by rktchip View Post
hello,

i think i've found the issue, could you please test this for me?

replace trunk/SU2_PY/SU2/io/redirect.py with this file -
Attachment 21147

sorry for the latency, busy quarter and a paper deadline is approaching...
thanks for helping us debug!

- trent

Hi Trent

I have tested the case with the redirect.py script you just oploaded, however it still doesn't work, I recoomend that you have a try in your laptop .

The mesh file in the "DESIGNS/DSN_001" folder is broken, so that the python could not find it.

The error report is in the attachment. I think the error is due to
"File"/home/OPTer/SU2/SU2_v2.0.3_update/TestCases_v2.0.3_Update/RANS_RAE2822_case/test1/SU2/io/redirect.py", line 197, in __enter__make_link(name,new_name)
File"/home/OPTer/SU2/SU2_v2.0.3_update/TestCases_v2.0.3_Update/RANS_RAE2822_case/test1/SU2/io/tools.py", line 666, in make_link assert os.path.exists(src) , 'source file does not exist \n%s' % src"

Thanks
Attached Files
File Type: txt error.txt (2.6 KB, 5 views)
File Type: txt turb_SA_RAE2822.cfg.txt (15.6 KB, 5 views)
Tommy Chen is offline   Reply With Quote

Old   April 28, 2013, 02:38
Default
  #15
Member
 
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15
rktchip is on a distinguished road
oops! i uploaded the wrong file. please try this one. (fixed my original post)

Quote:
Originally Posted by rktchip View Post
replace trunk/SU2_PY/SU2/io/redirect.py with this file -
Attachment 21214
also, please note we haven't tested shape_optimization on the rae test case, so would you please verify it works for the naca0012 case first? we will tackle the rae on a separate thread.

- trent
rktchip is offline   Reply With Quote

Old   May 8, 2013, 07:03
Default
  #16
Member
 
Anant Diwakar
Join Date: Jan 2013
Posts: 68
Rep Power: 13
diwakaranant is on a distinguished road
Dear Trent

I replaced the redirect.py file and tried to run the shape optimization
case for rotating naca0012 with SU2 v 2.0.3. But this case is not converging
even after 80 design cycles (after which I stopped it), whereas this
case used to converge after 17-18 cycles with version 2.0 .

Why is this happening ? Have you checked this testcase with SU2 v 2.0.3 ?

I am attaching the .cfg file with the post.

As mentioned in other post, naca0012 (non rotating) optimization case is working fine with
SU2 v.2.0.3

Thanks
Anant
Attached Files
File Type: txt rot_NACA0012.cfg.txt (13.2 KB, 12 views)
diwakaranant is offline   Reply With Quote

Reply

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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Welcome to the Stanford University Unstructured (SU2) forum! economon SU2 0 January 7, 2013 02:48
Stanford University Unstructured (SU2) Open-Source Code Released Today praveen Main CFD Forum 1 May 21, 2012 20:52
Stuff that is missing in OpenFOAM 1.7 released today... wyldckat OpenFOAM Bugs 5 July 14, 2010 05:47
What is the final release version of Fluent 6.3? Paul FLUENT 2 December 8, 2006 08:57
Debug and Release version LiQiang Main CFD Forum 1 March 30, 2005 14:55


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