"VSPAEROComputeGeometry" v3.46.0 SetIntAnalysisInput does not translate ThinGeomSet and GeomSet values!

29 views
Skip to first unread message

Omer Kandemir

unread,
Nov 18, 2025, 11:03:26 AM (9 days ago) Nov 18
to OpenVSP
Hi everyone,

I'm creating a python class to run VSPAero analysis. The class has the following staticmethod to compute VSPAERO geometry:
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""

@staticmethod

    def compute_vsp_aero_geom(thin_components,thick_components,compgeom_name = "VSPAEROComputeGeometry"):

        vsp.SetAnalysisInputDefaults(compgeom_name)

        thin_set_id = vsp.SET_FIRST_USER + 1

        thick_set_id = vsp.SET_FIRST_USER + 2

        vsp.SetSetName(thin_set_id,"Thin")

        vsp.SetSetName(thick_set_id,"Thick")

        for thin_comp in thin_components:

            if thin_comp:

                vsp.SetSetFlag(thin_comp.vspID,thin_set_id,True)

        for thick_comp in thick_components:

            if thick_comp:

                vsp.SetSetFlag(thick_comp.vspID,thick_set_id,True)

        vsp.SetIntAnalysisInput(compgeom_name, "GeomSet", [thick_set_id])

        vsp.SetIntAnalysisInput(compgeom_name, "ThinGeomSet", [thin_set_id])

        vsp.Update()

        compgeom_resid = vsp.ExecAnalysis(compgeom_name)

        return compgeom_resid

"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
In this method, I create two different sets for thin and thin objects. I can see that in the output file, these sets have been created.  However when I try to set "ThinGeomSet" and ""ThinGeomSet" to the new sets, SetIntAnalysisInput method does not transfer the new set values. Then when I run the "vsp.ExecAnalysis(compgeom_name)" line either the kernel dies or I have a mesh geom object that's empty. I have used a similar approach before for ParasiteDrag and it worked. I might be missing a certain commands, would you please help me to find it. 

Note: If I use the following commands I can see that in VSP Aero GUI the sets have been updated. However the kernel still dies. 


"""""

cont_id = vsp.FindContainer("VSPAEROSettings", 0 )

vsp.SetParmVal(cont_id,"ThinGeomSet",'VSPAERO',4)

vsp.SetParmVal(cont_id,"GeomSet",'VSPAERO',5)

""""""

Thank you for your help.

vsp_aero_gui.png
sets.png
Reply all
Reply to author
Forward
0 new messages