Dear SUAVE Team,
I have a problem with the BWB_CFD.py case. I am running SUAVE on Linux and successfully compiled OpenVSP there. I am able to create a wing by myself using simple python commands, so the Python API works well. Hosever, when I am trying to run the BWB case, the generated geometry looks wrong.
One question I had regarding this is:
In vsp_write.py case, you work with Sect_0 which should be invalid for OpenVSP as it is a hiddent one (as Rob McDonald said). If I try to play with the Sect_0, I generate something similar to my SUAVE geometry result. But if I use Sect_1 as the root, my script works.
Please, let me know if there are any tricks with the VSP link and if you hade this problem before?
I have attached the BWB base vsp geometry and my own .py script with which I played with the sections. I have also attached my results.
Script:
import vsp as vsp
span = 7
root_chord = 5
tip_chord = 2
sweep = -10
dihedral = -5
wing_id = vsp.AddGeom( "WING","" )
vsp.SetGeomName(wing_id, 'test_wing')
vsp.InsertXSec(wing_id,1,2)
vsp.SetDriverGroup( wing_id, 1, vsp.SPAN_WSECT_DRIVER, vsp.ROOTC_WSECT_DRIVER, vsp.TIPC_WSECT_DRIVER )
vsp.SetParmVal(wing_id, "X_Rel_Location", "XForm", 0)
vsp.SetParmVal(wing_id, "Y_Rel_Location", "XForm", 0)
vsp.SetParmVal(wing_id, "Z_Rel_Location", "XForm", 0)
vsp.SetParmVal( wing_id,'Root_Chord','XSec_1',root_chord)
vsp.SetParmVal( wing_id,'Tip_Chord','XSec_1',tip_chord)
vsp.SetParmVal( wing_id,'Span','XSec_1',span)
vsp.SetParmVal( wing_id,'Sweep','XSec_1',sweep)
vsp.Update()
vsp.SetParmVal( wing_id,'Tip_Chord','XSec_2',1)
vsp.SetParmVal( wing_id,'Span','XSec_2',2)
vsp.SetParmVal( wing_id,'Sweep','XSec_2',0)
vsp.Update()
vsp.WriteVSPFile("testtestwing.vsp3")
print('done')
SUAVE + VSP Results:

My Results

Thank you,
Stan