Automatically updating parameters and simulating?

I am trying to optimize a funnel shape that can maximize wind speed gain.

I am wondering if there is a certain method that I can automatically updating a certain design parameter and run flow simulation, and finally save the results for each run?

like a for loop in matlab.

Thank you and happy new year everyone.

SolidworksFlow Simulation