Post · 2 min read· pp. 149–151

vspaero_opt

Recent versions of VSPAERO include an adjoint driven optimization capability. To try this example, you should be using VSPAERO bundled with OpenVSP 3.47.0.

This capability is still in a rapid state of change. It is not yet possible to use the OpenVSP GUI to set up or execute an optimization problem. This capability is not yet fully documented. If you want to experiment with this feature, you will need to roll up your sleeves and get dirty.

The best source of information on the optimization capability is the presentations made by Dave Kinney at the 2025 OpenVSP Workshop. Videos of the presentations are available VSPAERO Theory & Updates and VSPAERO Examples.

The example requires the input files available in opt_example.zip. This file contains:

text
Wing.des
Wing.vsp3
Wing.vspaero
optimize.gnuplot

To run an optimization case, run:

text
vspaero_opt -omp 4 Wing

This will create a bunch of output files. Once it has finished, you can run:

text
gnuplot optimize.gnuplot

To generate optimize.pdf that displays the aerodynamic coefficient history through the run.

For this problem, C_DC\_D is minimized while driving C_LC\_L to 0.55 and C_MC\_M to 0.0.

The history of the optimization process is written to Wing.opt.history. If you don't have Gnuplot installed, you can use any other plotting package to investigate the optimization history recorded in this file.

You can also use the VSPAERO Viewer to visualize the progression of the optimization run.

text
vspviewer Wing

Adjust the viewer settings to your liking and then use File… SaveAs… Movie File… to save an animation of the optimization process.

The input files are:

  • Wing.vsp3 Contains the baseline OpenVSP geometry.
  • Wing.des Identifies the design variables to be manipulated by the optimizer.
  • Wing.vspaero Specifies the flow and optimization problem setup.