Shape_Optimization not running
Dear,
I have recently installed SU2 v3.0 64bit (pre-compiled from SU2 download) on a Windows 7 x64 single_threded and installed python2.7.6 (winPython_amd64) also tried python3.3. I have installed SU2 as c:\SU2 (no spaces as in program files installation). When I tried to run the test case of turb_RAE2822 at command prompt: Code:
python "c:\su2\shape_optimization.py" -f turb_rae2822.cfg Traceback (most recent call last): File "shape_optimization.py", line 26, in <module> import_su2 File "_init_.py", line 13, in <module> if 'libedit' in readline._doc_ Type Error: argument of type 'nonetype' is not iterable How can it be solved? What is the appropriate version of python? One more thing that I have found that SU2 is slower than Fluent, i tried naca0012 test case, how can it be sppedy? |
python 2.7 is sufficient for SU2. shape_optimization requires you to set your PYTHONPATH environment variable to include "c:\su2"
try that, if you still get an error could you send the output from this command? python "c:\su2\shape_optimization.py" -f turb_rae2822.cfg > log.out |
hello rktchip
I also have problem in runing shape_optimization(tutorial 7 in su2 website). I install the SU2-3.0.000-32-bit-Single-threaded.exe, python 2.6.6,scipy 0.11.0 and numpy 1.6.2 with windows 7 os. When I tried to run the test case of rotating airfoil at command prompt: python "D:\Program Files\SU2\shape_optimization.py" -f rot_NACA0012.cfg Follwing error displayed: found: mesh_NACA0012_rot.su2 New Project: ./ Warning, removing old designs... now New Design: DESIGNS/DSN_001 ./DESIGNS/DSN_001 ./DESIGNS/DSN_001 NIT FC OBJFUN GNORM ./DESIGNS/DSN_001 Evaluate Objectives Drag... Traceback (most recent call last): File "D:\Program Files\SU2\shape_optimization.py", line 124, in <module> main() File "D:\Program Files\SU2\shape_optimization.py", line 69, in main options.step ) File "D:\Program Files\SU2\shape_optimization.py", line 107, in shape_optimization SU2.opt.SLSQP(project,x0,xb,its) File "D:\Program Files\SU2\SU2\opt\scipy_tools.py", line 102, in scipy_slsqp epsilon = 1.0e-06 ) File "D:\Python26\lib\site-packages\scipy\optimize\slsqp.py", line 196, in fmi n_slsqp constraints=cons, **opts) File "D:\Python26\lib\site-packages\scipy\optimize\slsqp.py", line 351, in _mi nimize_slsqp fx = func(x) File "D:\Python26\lib\site-packages\scipy\optimize\optimize.py", line 268, in function_wrapper return function(x, *args) File "D:\Program Files\SU2\SU2\opt\scipy_tools.py", line 120, in obj_f obj = project.obj_f(x) File "D:\Program Files\SU2\SU2\opt\project.py", line 203, in obj_f return self._eval(konfig, func,dvs) File "D:\Program Files\SU2\SU2\opt\project.py", line 172, in _eval vals = design._eval(func,*args) File "D:\Program Files\SU2\SU2\eval\design.py", line 132, in _eval vals = eval_func(*inputs) File "D:\Program Files\SU2\SU2\eval\design.py", line 230, in obj_f func = su2func(this_obj,config,state) File "D:\Program Files\SU2\SU2\eval\functions.py", line 75, in function aerodynamics( config, state ) File "D:\Program Files\SU2\SU2\eval\functions.py", line 200, in aerodynamics info = su2run.direct(config) File "D:\Program Files\SU2\SU2\run\direct.py", line 75, in direct SU2_CFD(konfig) File "D:\Program Files\SU2\SU2\run\interface.py", line 92, in CFD the_Command = build_command( the_Command , processes ) File "D:\Program Files\SU2\SU2\run\interface.py", line 255, in build_command raise RuntimeError , 'could not find an mpi interface' RuntimeError: could not find an mpi interface E:\su2\case\naca0012> /////////////////////////////////////////////////////////////////////////////// if I use following command python "D:\Program Files\SU2\shape_optimization.py" f rot_NACA0012.cfg Follwing error displayed: Traceback (most recent call last): File "D:\Program Files\SU2\shape_optimization.py", line 124, in <module> main() File "D:\Program Files\SU2\shape_optimization.py", line 69, in main options.step ) File "D:\Program Files\SU2\shape_optimization.py", line 85, in shape_optimization config = SU2.io.Config(filename) File "D:\Program Files\SU2\SU2\io\config.py", line 84, in __init__ super(Config,self).__init__(*args,**kwarg) File "D:\Program Files\SU2\SU2\util\ordered_bunch.py", line 83, in __init__ super(OrderedBunch,self).__init__(*args,**kwarg) File "D:\Program Files\SU2\SU2\util\ordered_dict.py", line 44, in __init__ self.__update(*args, **kwds) File "D:\Program Files\SU2\SU2\util\ordered_dict.py", line 170, in update for key, value in other: TypeError: 'NoneType' object is not iterable I have set PYTHONPATH enviroment variable including "D:\Program Files\SU2"; can you give me some help? Best wish |
thread moved to - http://www.cfd-online.com/Forums/su2...tml#post475239
|
I run the tutorial 7 of su2, optimization of the naca airfoil , same error
the error is something like this
OS is windows 64 bit tutorial: http://adl-public.stanford.edu/docs/...tating+Airfoil error: C:\work\su2\naca0012>shape_optimization.py f rot_NACA0012.cfg Traceback (most recent call last): File "D:\SU2\shape_optimization.py", line 26, in <module> import SU2 File "D:\SU2\SU2\__init__.py", line 13, in <module> if 'libedit' in readline.__doc__: TypeError: argument of type 'NoneType' is not iterable I think this something related the readline in the python script If I commment these if 'libedit'..... then some python script report 'NoneType' error too Quote:
|
All times are GMT -4. The time now is 03:20. |