This is a simple rotor test case.

1) Two step adjoint run

Run the TestiT script

./Testit

this will run vpsaero, and vpsaero_adjoint with the ouput of prop.gradient



2) Adjoint API

Run the vspaero_opt executable for test case 4...

../../bin/vspaero_opt 4 prop

this will run vspaero_opt with the output of prop.opt.gradient



3) Complex Step ( Note, this will take a while to run... )

Run the vspaero_complex solver

../../bin/vspaero_complex -omp 4 -unsteady -opt -optfunction 3001 -complextest prop

this will run vspaero_complex with output prop.complex.gradient



4) Create some plots

gnuplot compare.complex.gnuplot

this creates compare.complex.pdf and compares the complex step, 2 step adjoint, and adjoint API results.


