|
[Sponsors] |
![]() |
![]() |
#1 |
Senior Member
Ali
Join Date: Jan 2012
Location: Pakistan
Posts: 134
Rep Power: 16 ![]() |
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?
__________________
Best Regards Ali ![]() Last edited by Hybrid; January 24, 2014 at 07:35. Reason: addition |
|
![]() |
![]() |
![]() |
![]() |
#2 |
Member
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#3 |
New Member
Yibin Dou
Join Date: Dec 2009
Posts: 13
Rep Power: 16 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Member
Trent Lukaczyk
Join Date: Feb 2011
Location: Stanford, CA
Posts: 75
Rep Power: 15 ![]() |
thread moved to - http://www.cfd-online.com/Forums/su2...tml#post475239
Last edited by rktchip; February 17, 2014 at 23:07. |
|
![]() |
![]() |
![]() |
![]() |
#5 | |
New Member
WangJianliang
Join Date: Aug 2010
Posts: 4
Rep Power: 16 ![]() |
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:
|
||
![]() |
![]() |
![]() |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to run the propeller Tutrial | immortality | OpenFOAM Running, Solving & CFD | 10 | February 22, 2014 09:33 |
Something weird encountered when running OpenFOAM in parallel on multiple nodes | xpqiu | OpenFOAM Running, Solving & CFD | 2 | May 2, 2013 04:59 |
What do you CFD guys do during a long simulation running? | bearcat | Main CFD Forum | 5 | July 23, 2009 08:08 |
Kubuntu uses dash breaks All scripts in tutorials | platopus | OpenFOAM Bugs | 8 | April 15, 2008 07:52 |
star is not running the simulation in windows | Arnab | Siemens | 1 | August 2, 2004 02:40 |