CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 Shape Design (https://www.cfd-online.com/Forums/su2-shape-design/)
-   -   tutorial 8 (https://www.cfd-online.com/Forums/su2-shape-design/128871-tutorial-8-a.html)

YOBA January 23, 2014 05:52

tutorial 8
 
Hello, I'm trying to test SU2 tutorial 8 but every time i launch it i get the same error. I'm using windows 7, SU2 v3.0 and Python v 2.7 with numpy and scipy. All environment are set up. All launched in serial. And I have to correct the interface.py in processes condition > 1 instead of 0, cuz when i launch script shape_optimization.py -f inv_ONERAM6.cfg without any parameter -p (btw launch with -p 0 worked without any changes in code) it show me error "could not find an mpi interface".

def build_command( the_Command , processes=0 ):
""" builds an mpi command for given number of processes """
the_Command = base_Command % the_Command
if processes > 1:
if not mpi_Command:
raise RuntimeError , 'could not find an mpi interface'
the_Command = mpi_Command % (processes,the_Command)
return the_Command

this list i get in cmd.exe

----------------------- Volumetric grid deformation ---------------------
Performing the deformation of the volumetric grid.
Traceback (most recent call last):
File "C:\SU2\shape_optimization.py", line 124, in <module>
main()
File "C:\SU2\shape_optimization.py", line 69, in main
options.step )
File "C:\SU2\shape_optimization.py", line 107, in shape_optimization
SU2.opt.SLSQP(project,x0,xb,its)
File "C:\SU2\SU2\opt\scipy_tools.py", line 102, in scipy_slsqp
epsilon = 1.0e-06 )
File "C:\Python27\lib\site-packages\scipy\optimize\slsqp.py", line 200, in fmi
n_slsqp
constraints=cons, **opts)
File "C:\Python27\lib\site-packages\scipy\optimize\slsqp.py", line 354, in _mi
nimize_slsqp
fx = func(x)
File "C:\Python27\lib\site-packages\scipy\optimize\optimize.py", line 281, in
function_wrapper
return function(*(wrapper_args + args))
File "C:\SU2\SU2\opt\scipy_tools.py", line 120, in obj_f
obj = project.obj_f(x)
File "C:\SU2\SU2\opt\project.py", line 203, in obj_f
return self._eval(konfig, func,dvs)
File "C:\SU2\SU2\opt\project.py", line 172, in _eval
vals = design._eval(func,*args)
File "C:\SU2\SU2\eval\design.py", line 132, in _eval
vals = eval_func(*inputs)
File "C:\SU2\SU2\eval\design.py", line 230, in obj_f
func = su2func(this_obj,config,state)
File "C:\SU2\SU2\eval\functions.py", line 75, in function
aerodynamics( config, state )
File "C:\SU2\SU2\eval\functions.py", line 148, in aerodynamics
info = update_mesh(config,state)
File "C:\SU2\SU2\eval\functions.py", line 424, in update_mesh
info = su2run.deform(config)
File "C:\SU2\SU2\run\deform.py", line 93, in deform
SU2_MDC(konfig)
File "C:\SU2\SU2\run\interface.py", line 136, in MDC
run_command( the_Command )
File "C:\SU2\SU2\run\interface.py", line 279, in run_command
raise Exception , message
Exception: Path = C:\test\oneram6\DESIGNS\DSN_002\DEFORM\,
Command = C:\SU2\SU2_MDC config_MDC.cfg
SU2 process returned error '3'


Help me please :)

YOBA January 28, 2014 08:45

3 Attachment(s)
I'm trying to use Tutorial 8 for my own wing model and i have some troubles with FFD box deformation. Can anyone give me advise what should i need to change or correct to solve this?

rktchip January 28, 2014 16:53

strange error... can you run SU2_MDC on this config manually?

go to DESIGNS/DSN_001/DEFORM and try the command there.

SU2_MDC config_MDC.cfg

YOBA January 29, 2014 06:40

1 Attachment(s)
I don't have this folder because I'm using previous version of SU2 (2.0) x64. But i have config_opt_MDC_inv_ONERAM6.cfg so i think it's the same config file for MDC that uses in SU2 v 3.0. And it's proceed success.
My wing mesh converted from ICEM CFD .CGNS to .SU2 format using config file options, so maybe problem in this? And i noticed that when i start SU2_CFD manually the
------------------------- Geometry preprocessing -------------
Setting local point and element connectivity.
Checking the numerical grid orientation.
Identifying edges and vertices.
Computing centers of gravity.
Setting the control volume structure.
Volume of the computational grid: 0.49979.
Searching for closest normal neighbor on the surface.
Searching for sharp corners on the geometry.
Setting the multigrid structure.
CVs of the MG level: 6835. Agglom. rate 1/5.78186. MG level: 1
CVs of the MG level: 1495. Agglom. rate 1/4.57191. MG level: 2
CVs of the MG level: 727. Agglom. rate 1/2.0564. MG level: 3.

Volume of the computational grid: 0.49979. is very small.

economon February 12, 2014 14:05

Hi,

Could you please share the output from the portion of the code where the CGNS file is parsed? It should print the number of nodes, elements, boundaries (with marker names), etc. This should help verify whether the conversion process worked. You can also run a single iteration of the solver afterward and view the output solution file to visually verify that the mesh is ok.

Cheers,
Tom


All times are GMT -4. The time now is 07:18.