Wave Drag analysis through Scripting

214 views
Skip to first unread message

Sai Tejesh

unread,
Jul 7, 2022, 10:35:55 AM7/7/22
to OpenVSP
Good Morning Rob and Brandon,
First of all thank you so much for replying for the questions.
I have been working on developing an optimisation algorithm using OpenVSP scripting with Matlab. I just figured out that the VSPAero analysis does not include the wave drag coefficient while calculating the L/D ratios or CD coefficient for supersonic flow.
I have tried looking at the various script files like the TestAnalysis.vspscript etc. for any hints on running a wave drag analysis and obtaining the wave drag coefficient through scripting. But unfortunately, I could not find any commands on script files for wave drag analysis. Can you please let me know how to carry out wave drag analysis through scripting?

Thanking You,
Sai Tejesh

Rob McDonald

unread,
Jul 7, 2022, 1:57:19 PM7/7/22
to ope...@googlegroups.com
The Wave drag calculation is accessed through the Analysis Manager -- like all other analyses.  The results are available through the ResultsManager API.

You should study TestAnalysis.vspscript to see some examples of working with the AnalysisMgr API.

Rob


--
You received this message because you are subscribed to the Google Groups "OpenVSP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openvsp+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openvsp/4fd86e64-69df-43fc-8503-b08f04752bfbn%40googlegroups.com.

Sai Tejesh

unread,
Jul 8, 2022, 3:49:59 AM7/8/22
to OpenVSP
Hello Rob, I have checked the TestAnalysis.vspscript file and could not find any functions required to give the inputs and run the Wave drag analysis like how I have found for the slicer or VSPAero solveretc. The only lines relevant to wave drag analysis was this one in the TestAnalysis.vspscript, 
  // WaveDrag
    string ridwd = ExecAnalysis( "WaveDrag" );
    PrintResultsExample( ridwd );
    DeleteGeomVec( GetStringResults( ridwd, "Mesh_GeomID" ) );

So, can you please let me know how to provide the input conditions and run the wave drag analysis through scripting? (so that I can run from MATLAB).

Thanking You

Rob McDonald

unread,
Jul 8, 2022, 10:18:58 AM7/8/22
to ope...@googlegroups.com
PrintAnalysisInputExample("WaveDrag");

Rob

Sai Tejesh

unread,
Jul 12, 2022, 2:18:17 PM7/12/22
to OpenVSP
Hello Rob, 
I have been trying to put the wave drag analysis code lines in the script file and tried to run it, but it was not able to produce any wavedrag text file as there must be something missing. I did not get to enter the input values like Mach No etc for wave drag analysis as well. 
Can you please help me in this?
Thank you.
12thJulytest.vspscript
Reply all
Reply to author
Forward
Message has been deleted
0 new messages