BWB error

153 views
Skip to first unread message

Дмитрий Тарабащук

unread,
Aug 14, 2022, 2:25:51 PM8/14/22
to SUAVE FORUM
Dear SUAVE team,
I learn how to use BWB tutorial. I have Installed all necessary programs:
1) OpenVSP
2)GMSH
3)SU2
But when I run tutorial I always face with errors. I know that this problem was raised earlier in discussion, but for me it is still unclear:
At first I faced with this error:
(base) C:\Users\Dmitry\Desktop\tutorial>python BWB.py
Reseting OpenVSP Model in Memory
Writing main_wing to OpenVSP Model
Writing nacelle to OpenVSP Model
Writing nacelle_2 to OpenVSP Model
Writing nacelle_3 to OpenVSP Model
Saving OpenVSP File at C:\Users\Dmitry\Desktop\tutorial/base.vsp3
Starting mesh for base (This may take several minutes)
VSP meshing for base completed in 64.80744552612305 s
Traceback (most recent call last):
  File "C:\Users\Dmitry\Desktop\tutorial\BWB.py", line 801, in <module>
    main()
  File "C:\Users\Dmitry\Desktop\tutorial\BWB.py", line 41, in main
    analyses.finalize()
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Aerodynamics\SU2_Euler.py", line 142, in initialize
    write_geo_file(tag)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Input_Output\GMSH\write_geo_file.py", line 34, in write_geo_file
    vehicle_nums, farfield_num, symmetry_num = read_keys(tag)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.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'

So, okey after I launched BWB.py I got following files:
1.png
And decided rename base_premesh_NASCART.key to base.key
After that I faced with next error:
(base) C:\Users\Dmitry\Desktop\tutorial>python BWB.py
Reseting OpenVSP Model in Memory
Writing main_wing to OpenVSP Model
Writing nacelle to OpenVSP Model
Writing nacelle_2 to OpenVSP Model
Writing nacelle_3 to OpenVSP Model
Saving OpenVSP File at C:\Users\Dmitry\Desktop\tutorial/base.vsp3
Starting mesh for base (This may take several minutes)
VSP meshing for base completed in 59.489678621292114 s
Info    : Running 'gmsh base.geo -3 -o base.su2 -format su2 -saveall' [Gmsh 4.10.5, 1 node, max. 1 thread]
Info    : Started on Sun Aug 14 20:21:50 2022
Info    : Reading 'base.geo'...
Error   : Unable to open file 'base.stl'
Error   : Unknown surface 6 in GEO volume 12
Error   : 'base.geo', line 9: Could not add volume
Warning : Skipping unknown surface 1 in physical surface 1
Warning : Skipping unknown surface 2 in physical surface 1
Warning : Skipping unknown surface 3 in physical surface 1
Warning : Skipping unknown surface 4 in physical surface 1
Warning : Skipping unknown surface 5 in physical surface 1
Warning : Skipping unknown surface 6 in physical surface 2
Info    : Done reading 'base.geo'
Info    : Meshing 1D...
Info    : Done meshing 1D (Wall 0s, CPU 0s)
Info    : Meshing 2D...
Info    : Done meshing 2D (Wall 0s, CPU 0s)
Info    : Meshing 3D...
Info    : 3D Meshing 1 volume with 1 connected component
Info    : Tetrahedrizing 0 nodes...
Info    : Done tetrahedrizing 8 nodes (Wall 0s, CPU 0s)
Info    : Reconstructing mesh...
Info    :  - Creating surface mesh
Info    :  - Identifying boundary edges
Info    :  - Recovering boundary
Info    : Done reconstructing mesh (Wall 0.0059998s, CPU 0s)
Warning : No tetrahedra in region 12
Info    : 3D refinement terminated (0 nodes total):
Info    :  - 0 Delaunay cavities modified for star shapeness
Info    :  - 0 nodes could not be inserted
Info    :  - 0 tetrahedra created in 0.000997305 sec. (0 tets/s)
Error   : No elements in volume 12
Info    : Done meshing 3D (Wall 0.0209999s, CPU 0s)
Info    : 0 nodes 0 elements
Error   : ------------------------------
Error   : Mesh generation error summary
Error   :     1 warning
Error   :     1 error
Error   : Check the full log for details
Error   : ------------------------------
Info    : Writing 'base.su2'...
Info    : Writing 0 elements and 0 nodes
Info    : Done writing 'base.su2'
Info    : Stopped on Sun Aug 14 20:21:51 2022 (From start: Wall 0.0493679s, CPU 0s)
Traceback (most recent call last):
  File "C:\Users\Dmitry\Desktop\tutorial\BWB.py", line 801, in <module>
    main()
  File "C:\Users\Dmitry\Desktop\tutorial\BWB.py", line 41, in main
    analyses.finalize()
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Analysis.py", line 271, in finalize
    analysis.finalize(*args,**kwarg)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Aerodynamics\SU2_Euler.py", line 146, in initialize
    self.process.compute.lift.inviscid.initialize()
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Aerodynamics\SU2_inviscid.py", line 102, in initialize
    self.sample_training()
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Aerodynamics\SU2_inviscid.py", line 218, in sample_training
    CL[count],CD[count] = call_SU2(konditions, settings, geometry)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Analyses\Aerodynamics\SU2_inviscid.py", line 383, in call_SU2
    CL, CD = call_SU2_CFD(tag,parallel,processors)
  File "C:\Users\Dmitry\AppData\Roaming\Python\Python39\site-packages\suave-2.5.2-py3.9.egg\SUAVE\Input_Output\SU2\call_SU2_CFD.py", line 37, in call_SU2_CFD
    sys.path.append(os.environ['SU2_HOME'])
  File "C:\Users\Dmitry\anaconda3\lib\os.py", line 679, in __getitem__
    raise KeyError(key) from None
KeyError: 'SU2_HOME'

With geometry in OpenVSP everything good2.png
Thank you in advance

Emilio

unread,
Aug 15, 2022, 4:52:55 PM8/15/22
to SUAVE FORUM
Hi,
That final error is something to do with SUAVE not finding SU2. SU2_Home is not in your environment.

-Emilio

Дмитрий Тарабащук

unread,
Aug 16, 2022, 5:42:38 AM8/16/22
to SUAVE FORUM
Hi Emilio,

Thank you for advice, but I ran SU2 tutorial and SU2 works well as standalone program.

12.png
I think the issue in base.key file. 
I am not sure that trick with renaming file from base_premesh_NASCART.key to base.key will work, because as it shown in error above no mesh were created : ''Error   : Mesh generation error summary''.
1)Do you have any other assumption how it can be solved?
And  could you show/attach how should looks like file" base.key"? 

Thank you for your efforts and help!

kind regards,
Dmitrii
понедельник, 15 августа 2022 г. в 22:52:55 UTC+2, Emilio:

Emilio

unread,
Aug 16, 2022, 10:44:10 PM8/16/22
to SUAVE FORUM
Hey,
Yeah the mesh is not correctly made. Hence why no .key exists. One thing to try would be to go back to the version of OpenVSP the tutorials was tested on, that version is 3.26.1. Let me know how that one works.

-Emilio

Vanessa Chung

unread,
Apr 24, 2024, 2:14:39 PM (12 days ago) Apr 24
to SUAVE FORUM
Hi,

I am also seeing the same error. Were you able to resolve the issue?

Please let me know!

Thank you!!

-Vanessa

Reply all
Reply to author
Forward
0 new messages