59ce769108c9861bb7afdd544c0e8a1dd2c8b107,trunk/SUAVE/Input_Output/OpenVSP/vsp_write.py,,write_vsp_turbofan,#,423
Before Change
vsp.Update()
vsp.SetParmVal(nac_id, "Ellipse_Width", "XSecCurve_0", width-.2)
vsp.SetParmVal(nac_id, "Ellipse_Width", "XSecCurve_1", width)
vsp.SetParmVal(nac_id, "Ellipse_Width", "XSecCurve_2", width)
vsp.SetParmVal(nac_id, "Ellipse_Width", "XSecCurve_3", width)
vsp.SetParmVal(nac_id, "Ellipse_Height", "XSecCurve_0", width-.2)
vsp.SetParmVal(nac_id, "Ellipse_Height", "XSecCurve_1", width)
vsp.SetParmVal(nac_id, "Ellipse_Height", "XSecCurve_2", width)
vsp.SetParmVal(nac_id, "Ellipse_Height", "XSecCurve_3", width)
else:
stack_id = vsp.AddGeom("STACK")
After Change
z = origin[2]
if ft_flag == True:
nac_id = vsp.AddGeom( "BODYOFREVOLUTION")
vsp.SetGeomName(nac_id, tf_tag+"_"+str(ii+1))
// Origin
vsp.SetParmVal(nac_id,"X_Location","XForm",x)
vsp.SetParmVal(nac_id,"Y_Location","XForm",y)
vsp.SetParmVal(nac_id,"Z_Location","XForm",z)
vsp.SetParmVal(nac_id,"Abs_Or_Relitive_flag","XForm",vsp.ABS) // misspelling from OpenVSP
// Length and overall diameter
vsp.SetParmVal(nac_id,"Diameter","Design",inlet_width)
vsp.ChangeBORXSecShape(nac_id ,vsp.XS_SUPER_ELLIPSE)
vsp.Update()
vsp.SetParmVal(nac_id, "Super_Height", "XSecCurve", (width-inlet_width)/2)
vsp.SetParmVal(nac_id, "Super_Width", "XSecCurve", length)
vsp.SetParmVal(nac_id, "Super_MaxWidthLoc", "XSecCurve", -1.)
vsp.SetParmVal(nac_id, "Super_M", "XSecCurve", 2.)
vsp.SetParmVal(nac_id, "Super_N", "XSecCurve", 1.)
else:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: suavecode/SUAVE
Commit Name: 59ce769108c9861bb7afdd544c0e8a1dd2c8b107
Time: 2021-02-10
Author: timdmacdo@gmail.com
File Name: trunk/SUAVE/Input_Output/OpenVSP/vsp_write.py
Class Name:
Method Name: write_vsp_turbofan
Project Name: suavecode/SUAVE
Commit Name: 59ce769108c9861bb7afdd544c0e8a1dd2c8b107
Time: 2021-02-10
Author: timdmacdo@gmail.com
File Name: trunk/SUAVE/Input_Output/OpenVSP/vsp_write.py
Class Name:
Method Name: write_vsp_turbofan