CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   SU2 (http://www.cfd-online.com/Forums/su2/)
-   -   Parallel error when doing M6 optimization in Tutorial 9 (http://www.cfd-online.com/Forums/su2/127708-parallel-error-when-doing-m6-optimization-tutorial-9-a.html)

sxhqjfl December 18, 2013 05:55

Parallel error when doing M6 optimization in Tutorial 9
 
I use Ubuntu system. My conditions are:

1. install python, numpy, scipy, metis, mpich2,such as
sudo apt-get install mpich2

2. I set the SU2_RUN= /home/username/SU2v2.0/trunk/SU2Py

3. I type "python ./build_SU2.py -o redhat", so the executable files (SU2_CFD, SU2_GPC etc.) are generated in SU2Py directory.

4. Move the inv_ONERAM6.cfg and mesh_ONERAM6_inv.su2 into SU2Py directory

5. Type python shape_optimization.py -f inv_ONERAM6.cfg -p 4

At the beginning, the preparing process goes well, I can see the generation of Domain 1, Domain 2,Domain 3,Domain 4, but then I obtain some errors:



SU2 Suite (Domain Decomposition Code) |
-------------------------------------------------------------------------

------------------------ Physical case definition -----------------------
Input mesh file name: mesh_ONERAM6_inv.su2

-------------------------- Output information ---------------------------
Don't visualize the partitions.

------------------- Config file boundary information --------------------
Euler wall boundary marker(s): UPPER_SIDE, LOWER_SIDE, TIP.
Far-field boundary marker(s): XNORMAL_FACES, ZNORMAL_FACES, YNORMAL_FACE.
Symmetry plane boundary marker(s): SYMMETRY_FACE.

---------------------- Read grid file information -----------------------
Three dimensional problem.
582752 interior elements. 108396 points.
7 surface markers.
17284 boundary elements in index 0 (Marker = LOWER_SIDE).
2597 boundary elements in index 1 (Marker = TIP).
16573 boundary elements in index 2 (Marker = UPPER_SIDE).
173 boundary elements in index 3 (Marker = XNORMAL_FACES).
142 boundary elements in index 4 (Marker = ZNORMAL_FACES).
153 boundary elements in index 5 (Marker = YNORMAL_FACE).
1834 boundary elements in index 6 (Marker = SYMMETRY_FACE).

----------------------- Preprocessing computations ----------------------
Identifying vertices.

--------------------------- Read FFD information ------------------------
1 Free Form Deformation (FFD) chunks.
1 Free Form Deformation (FFD) nested levels.
FFD box tag: 0. FFD box level: 0. Degrees: 5, 4, 1.
Number of parent boxes: 0. Number of child boxes: 0.
Corner points: 8. Control points: 0. Surface points: 0.

---------------------- Performing mesh partitioning ---------------------
Finished partitioning using METIS 4.0.3. (8307 edge cuts).

----------------------------- Write mesh files --------------------------
Domain 1: 28156 points (958 ghost points).
Domain 2: 28372 points (1302 ghost points).
Domain 3: 29097 points (1497 ghost points).
Domain 4: 27665 points (1137 ghost points).

------------------------- Exit Success (SU2_DDC) ------------------------

mpiexec_jiafeilin-desktop: cannot connect to local mpd (/tmp/mpd2.console_jiafeilin); possible causes:
1. no mpd is running on this host
2. an mpd is running but was started without a "console" (-n option)
In case 1, you can start an mpd on this host with:
mpd &
and you will be able to run jobs just on this host.
For more details on starting mpds on a set of hosts, see
the MPICH2 Installation Guide.
Merging grid files (.su2)... 0%Traceback (most recent call last):
File "/home/jiafeilin/SU2v2.0/trunk/SU2Py/merge_grid_su2.py", line 53, in <module>
input_file = open("%s_%s.%s" % (mesh_out_filename.split(".")[0], domain+1, mesh_out_filename.split(".")[1]))
IOError: [Errno 2] No such file or directory: 'mesh_opt_MDC_inv_ONERAM6_1.su2'
mpiexec_jiafeilin-desktop: cannot connect to local mpd (/tmp/mpd2.console_jiafeilin); possible causes:
1. no mpd is running on this host
2. an mpd is running but was started without a "console" (-n option)
In case 1, you can start an mpd on this host with:
mpd &
and you will be able to run jobs just on this host.
For more details on starting mpds on a set of hosts, see
the MPICH2 Installation Guide.
Traceback (most recent call last):
File "/home/jiafeilin/SU2v2.0/trunk/SU2Py/merge_solution.py", line 84, in <module>
if math_problem == "DIRECT": input_file = open("%s_%s.plt" % (volume_flow_filename, domain+1))
IOError: [Errno 2] No such file or directory: 'flow_1.plt'
NIT FC OBJFUN GNORM
Traceback (most recent call last):
File "shape_optimization.py", line 676, in <module>
acc=1e-12, iprint=2, full_output=1, epsilon=1.0e-10)
File "/usr/lib/python2.6/dist-packages/scipy/optimize/slsqp.py", line 268, in fmin_slsqp
fx = func(x)
File "/usr/lib/python2.6/dist-packages/scipy/optimize/optimize.py", line 97, in function_wrapper
return function(x, *args)
File "shape_optimization.py", line 255, in f
rename_data()
File "shape_optimization.py", line 610, in rename_data
os.rename(output_names[key][0],output_names[key][1])
OSError: [Errno 2] No such file or directory

fpalacios January 11, 2014 23:18

Could you please try again with the latest version of the code in the GitHub repository ( https://github.com/su2code/SU2 ) ?

Thanks!

Francisco

sxhqjfl January 12, 2014 07:01

Quote:

Originally Posted by fpalacios (Post 469628)
Could you please try again with the latest version of the code in the GitHub repository ( https://github.com/su2code/SU2 ) ?

Thanks!

Francisco

I will try again. Thank you!


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