SUAVE BWB running error with latest packages

185 views
Skip to first unread message

russell quadros

unread,
Nov 5, 2021, 4:45:43 PM11/5/21
to SUAVE FORUM
Hi,
Could someone please suggest a fix to this problem associated with running the BWB SUAVE tutorial:

  File "/home/russell/anaconda3/lib/python3.8/site-packages/SUAVE-2.4.0-py3.8.egg/SUAVE/Input_Output/GMSH/write_geo_file.py", line 100, in read_keys
    f = open(filename)
FileNotFoundError: [Errno 2] No such file or directory: 'base.key'

The complete error message is attached. I have run the tutorial off the shelf after installing OpenVSP, GMSH and SU2 as suggested in the tutorial webpage and commenting out the following line in BWB.py:
#aerodynamics.process.compute.lift.inviscid.training_file = 'base_data_1500.txt'
 

The versions are as follows:
OpenVSP: 3.25.0
SU2: 7.2.1 "Blackbird"
GMSH: 4.9.0

Many thanks,
Russell
suave_error.png

ebot...@gmail.com

unread,
Nov 8, 2021, 12:54:33 PM11/8/21
to SUAVE FORUM
Hi,
I've been trying to reproduce this error. But I have been unable to do so.

It's missing the .key file which tells GMSH which surfaces are which for meshing. That .key file is provided by OpenVSP. Can you check the folder and make sure the other OpenVSP files are created? If they are, open them up and check if the vehicle looks okay.

-Emilio

233obiwan

unread,
Mar 24, 2022, 11:38:14 AM3/24/22
to SUAVE FORUM
Hi everyone,

I'm facing the same problem with 
OpenVSP 3.26.1
SU2 7.3.0
GMSH 4.9.5
SUAVE 2.5.0.2

Attached you can find an image of the complete cmd with the error message and another image with the files created by the run in the BW CFD folder.
It seems that it creates a ".key" file but instead of naming it simply "base.key", it names it "base_premesh_NASCART.key".


BWBerror1.PNG

BWBFolder1.PNG
I then tried to "cheat", hoping it would be that simple,  renamed the .key file into "base.key" and launched the script again.
This time it runs untill a new error message appears :

Traceback (most recent call last):
  File "C:\Users\----\Desktop\SUAVE Tutorials-2.5.0.2\Tutorials-2.5.0.2\BWB_CFD\NewRun\BWB.py", line 801, in <module>
    main()
  File "C:\Users\----i\Desktop\SUAVE Tutorials-2.5.0.2\Tutorials-2.5.0.2\BWB_CFD\NewRun\BWB.py", line 41, in main
    analyses.finalize()
  File "C:\ProgramData\Miniconda3\lib\site-packages\suave-develop-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\ProgramData\Miniconda3\lib\site-packages\suave-develop-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\ProgramData\Miniconda3\lib\site-packages\suave-develop-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\ProgramData\Miniconda3\lib\site-packages\suave-develop-py3.9.egg\SUAVE\Analyses\Aerodynamics\SU2_Euler.py", line 143, in initialize
    mesh_geo_file(tag)
  File "C:\ProgramData\Miniconda3\lib\site-packages\suave-develop-py3.9.egg\SUAVE\Input_Output\GMSH\mesh_geo_file.py", line 35, in mesh_geo_file
    subprocess.call(['gmsh',tag+'.geo','-3','-o',tag+'.su2','-format','su2','-saveall'])
  File "C:\ProgramData\Miniconda3\lib\subprocess.py", line 349, in call
    with Popen(*popenargs, **kwargs) as p:
  File "C:\ProgramData\Miniconda3\lib\subprocess.py", line 951, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\ProgramData\Miniconda3\lib\subprocess.py", line 1420, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
FileNotFoundError: [WinError 2] specified file not found

Probably I was wrong in the first place renaming the file, but i had to try!

Hope what I have provided is useful to solve the problem also for other users

Thank you in advance!

Gustavo Cirelli

unread,
Feb 23, 2025, 4:26:07 PMFeb 23
to SUAVE FORUM
Hi everyone

Was this issue fixed? I`m having the same problem.

Thanks
Reply all
Reply to author
Forward
0 new messages