|
[Sponsors] |
February 3, 2013, 10:08 |
Another shape optimization tutorial error
|
#1 |
New Member
Greg Power
Join Date: Jan 2013
Posts: 9
Rep Power: 13 |
I have run the Tutorial 9 case on two different Linux systems: my personal 2 core OpenSUSE system (gnu compilers) and a large CRAY HPC system (PGI compilers). I am following the new tutorial instructions, except that I do not copy the files into the SU2Py directory, but rely on the fact that the executables and Python scripts are in my path.
I made sure I had the most recent version of the code and test cases. The SU2_MDC code ran successfully and I made the changes to the input file to point to the new mesh file. I can run shape_optimization.py with -p 1 and the CFD solution part runs successfully. If I run shape_optimization.py with the -p option, then the mesh files do not exist. Apparently the SU2_DDC code is not being called in this case since multiple mesh files do not exist. If I run SU2_DDC first, then the mesh files are there and the first CFD solution is run successfully. I can also run parallel_computation.py to get the initial solution and change the input to RESTART = YES However, when running the shape_optimization.py the following error occurs after successfully running the CFD portion whether running with 1 or multiple processors: ------------------------- Exit Success (SU2_CFD) ------------------------ Application 5022852 resources: utime ~4593s, stime ~82s ------------------------------------------------------------------------- | SU2 Suite (Shape Optimization Script) | ------------------------------------------------------------------------- DRAG objective function with a scale factor of 100.0 Traceback (most recent call last): File "/lustre/scratch/grjmpower/local/bin/shape_optimization.py", line 676, in <module> acc=1e-12, iprint=2, full_output=1, epsilon=1.0e-10) File "/sw/xt/python/2.7.1/sles11.1_gnu4.3.2/lib/python2.7/site-packages/scipy/optimize/slsqp.py", line 237, in fmin_slsqp mieq = len(f_ieqcons(x)) File "/sw/xt/python/2.7.1/sles11.1_gnu4.3.2/lib/python2.7/site-packages/scipy/optimize/optimize.py", line 176, in function_wrapper return function(x, *args) File "/lustre/scratch/grjmpower/local/bin/shape_optimization.py", line 463, in ieqcons logfile = 'SU2_CFD.out' ) File "/lustre/scratch/grjmpower/local/bin/continuous_adjoint.py", line 203, in continuous_adjoint ObjFun_Dict = libSU2.get_ObjFunVals( History_filename_CFD+plotfile_ext , special_cases ) File "/lustre/scratch/grjmpower/local/bin/libSU2.py", line 495, in get_ObjFunVals history_data = read_History(History_filename) File "/lustre/scratch/grjmpower/local/bin/libSU2.py", line 411, in read_History line = line.split("=")[1].strip().split(",") IndexError: list index out of range The Python version is 2.6.8 on both platforms. |
|
Tags |
optimization, testcases |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Building OpenFOAM1.7.0 from source | ata | OpenFOAM Installation | 46 | March 6, 2022 13:21 |
[swak4Foam] GroovyBC the dynamic cousin of funkySetFields that lives on the suburb of the mesh | gschaider | OpenFOAM Community Contributions | 300 | October 29, 2014 18:00 |
UDF: DEFINE_CG_MOTION for vertical jump motion of an electrode! | alban | Fluent UDF and Scheme Programming | 2 | June 8, 2010 18:54 |
user defined function | cfduser | CFX | 0 | April 29, 2006 10:58 |
error while compiling the USER Sub routine | CFD user | CFX | 3 | November 25, 2002 15:16 |