Unable to set PANEL METHOD with *.vspscript

165 views
Skip to first unread message

jose angel calero tornero

unread,
Apr 24, 2023, 1:15:08 PM4/24/23
to OpenVSP
Good morning.

I am trying to optimize an airfoil with the panel method, but the following error appears:

Could not load base_case_VSPGeom VSP Degen Geometry, CART3D Tri, or VSPGEOM Tri file...


The code (changing the  SetComputationFileName  and  ComputeDegenGeom inputs obviously) works perfectly for VLM. What can I do?

My code is the following:

  ReadVSPFile("base_case.vsp3");
  ReadApplyDESFile("aoas_rot.des");
 
  Update();

  //==== Set File Name ====//
  SetComputationFileName(VSPAERO_PANEL_TRI_TYPE, "TestDegenScript.vspgeom");

  //==== Run Degen Geom ====//
  ComputeDegenGeom(SET_ALL, VSPAERO_PANEL_TRI_TYPE);

  // Run CompGeom to generate geometry
  string compGeom = "VSPAEROComputeGeometry";
  SetAnalysisInputDefaults(compGeom);
  string compGeom_results = ExecAnalysis(compGeom);

  // Alpha Sweep analysis using VSPAero
  string myAnalysis = "VSPAEROSweep";
  SetAnalysisInputDefaults(myAnalysis);

  // List inputs, type, and current values
  // PrintAnalysisInputs(myAnalysis);

  // Set inputs for VSPAero
  array<int> analysis_method(1, PANEL);
  SetIntAnalysisInput(myAnalysis, "AnalysisMethod", analysis_method);

Thanks for the help :))


George Efrem

unread,
Oct 13, 2023, 5:04:00 AM10/13/23
to OpenVSP
Hello Jose,

It seems that I am having the same issue. I am trying to run a panel method wing aerodynamic analysis through the Python API and I am getting the same error:

Could not load C:/Users/User/OneDrive/Documents/VScode Projects/BWB/VSP3_files/openVSP_BWB_V2/BWB_V2_VSPGeom VSP Degen Geometry, CART3D Tri, or VSPGEOM Tri file...

This is my code for computing the Degenerate Geometry:

directory = "C:/Users/User/OneDrive/Documents/VScode Projects/BWB/VSP3_files/openVSP_BWB_V2/BWB_V2_VSPGeom"
vsp.SetComputationFileName(vsp.VSPAERO_VSPGEOM_TYPE, directory)
vsp.ComputeDegenGeom(vsp.SET_ALL, vsp.VSPAERO_VSPGEOM_TYPE)

I have also tried to set the file type to vsp.VSPAERO_PANEL_TRI_TYPE and vsp.VSPAERO_PANEL_TRI_TYPE but I am getting the same error.
Could you let me know if you managed to solve this and how?

GE
Reply all
Reply to author
Forward
0 new messages