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

Error in running shape_optimization in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 1, 2014, 02:22
Default Error in running shape_optimization in parallel
  #1
New Member
 
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11
zylanboluo is on a distinguished road
Hello,everyone!
I have some problems in running shape_optimization in parallel.I running SU2 on Ubuntu.
When I enter "python shape_optimization.py -f pitching_ONERAM6.cfg",it runs all right.But when I enter "python shape_optimization.py -f pitching_ONERAM6.cfg -n 4",it shows an error like below,

Traceback (most recent call last):
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/shape_optimization.py", line 130, in <module>
main()
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/shape_optimization.py", line 75, in main
options.step )
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/shape_optimization.py", line 113, in shape_optimization
SU2.opt.SLSQP(project,x0,xb,its)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/scipy_tools.py", line 102, in scipy_slsqp
epsilon = 1.0e-06 )
File "/home/gentai/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scipy/optimize/slsqp.py", line 206, in fmin_slsqp
constraints=cons, **opts)
File "/home/gentai/Enthought/Canopy_64bit/User/lib/python2.7/site-packages/scipy/optimize/slsqp.py", line 308, in _minimize_slsqp
mieq = sum(map(len, [atleast_1d(c['fun'](x, *c['args'])) for c in cons['ineq']]))
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/scipy_tools.py", line 185, in con_cieq
cons = project.con_cieq(x)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/project.py", line 223, in con_cieq
return self._eval(konfig, func,dvs)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/opt/project.py", line 172, in _eval
vals = design._eval(func,*args)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/design.py", line 132, in _eval
vals = eval_func(*inputs)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/design.py", line 422, in con_cieq
func = su2func(this_con,config,state)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/functions.py", line 75, in function
aerodynamics( config, state )
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/functions.py", line 152, in aerodynamics
info = update_mesh(config,state)
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/eval/functions.py", line 548, in update_mesh
push.extend( names )
File "/home/gentai/Workzone/ZhuYing/SU2/SU2/bin/SU2/io/redirect.py", line 234, in __exit__
shutil.move(old_name,new_name)
File "/opt/software/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7/shutil.py", line 301, in move
copy2(src, real_dst)
File "/opt/software/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7/shutil.py", line 130, in copy2
copyfile(src, dst)
File "/opt/software/Canopy/appdata/canopy-1.4.1.1975.rh5-x86_64/lib/python2.7/shutil.py", line 82, in copyfile
with open(src, 'rb') as fsrc:
IOError: [Errno 2] No such file or directory: '/home/gentai/Workzone/ZhuYing/SU2/test_20141126/test_para/DESIGNS/DSN_001/DECOMP/mesh_ONERAM6_inv_1.su2'

Can someone help me?

best wishes!
zylanboluo is offline   Reply With Quote

Old   December 4, 2014, 07:20
Default
  #2
Zen
Member
 
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12
Zen is on a distinguished road
Quote:
IOError: [Errno 2] No such file or directory: '/home/gentai/Workzone/ZhuYing/SU2/test_20141126/test_para/DESIGNS/DSN_001/DECOMP/mesh_ONERAM6_inv_1.su2'
It seems that it doesn't decompose the mesh.

Does the command below work for you?

mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg
Zen is offline   Reply With Quote

Old   December 7, 2014, 21:31
Smile
  #3
New Member
 
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11
zylanboluo is on a distinguished road
Quote:
Originally Posted by Zen View Post
It seems that it doesn't decompose the mesh.

Does the command below work for you?

mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg
Thank you very much, Zen!
I have tried "mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg" ahead and after the commond "python shape_optimization.py -f pitching_ONERAM6.cfg" , it showed the same error!
I also just run "mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg", no new mesh was generated!
zylanboluo is offline   Reply With Quote

Old   December 8, 2014, 18:10
Default
  #4
Zen
Member
 
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12
Zen is on a distinguished road
Quote:
Originally Posted by zylanboluo View Post
I also just run "mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg", no new mesh was generated!
Is openmpi installed on your pc? did you get an error message if you run mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg? or does it simply tun without partitioning the mesh?
Zen is offline   Reply With Quote

Old   December 9, 2014, 04:37
Smile
  #5
New Member
 
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11
zylanboluo is on a distinguished road
Hi, Zen!
I have already installed mpich2.
if I run mpirun -n 4 SU2_PRT pitching_ONERAM6.cfg, it just read the grid without partitioning the mesh.
zylanboluo is offline   Reply With Quote

Old   December 9, 2014, 04:52
Default
  #6
Zen
Member
 
Zeno
Join Date: Sep 2013
Location: Delft, The Netherlands
Posts: 63
Rep Power: 12
Zen is on a distinguished road
mmm, maybe you did not configure SU2 for parallel computations? Other than that, I wouldn't know where else to look.
Zen is offline   Reply With Quote

Old   December 9, 2014, 21:14
Default
  #7
New Member
 
Ying Zhuying
Join Date: Nov 2014
Posts: 8
Rep Power: 11
zylanboluo is on a distinguished road
Thank you very much!
I will try to install SU2 again!
zylanboluo 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
error while running in parallel using openmpi on local mc 6 processors suryawanshi_nitin OpenFOAM 10 February 22, 2017 21:33
Running mapFields with Parallel Source and Parallel Target RDanks OpenFOAM Pre-Processing 4 August 2, 2016 05:24
running OpenFoam in parallel vishwa OpenFOAM Running, Solving & CFD 22 August 2, 2015 08:53
problem in running parallel: ./Allrun: 62: shift: can't shift that many adambarfi OpenFOAM Running, Solving & CFD 10 May 11, 2015 09:31
Problems running in parallel - missing controlDict Argen OpenFOAM Running, Solving & CFD 4 June 7, 2012 03:50


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