Python Based Automation
Use python based automation to quickly setup Virtual Wind Tunnel simulations in batch mode.
Setting up multiple simulations that are variations of a base simulation can be very time consuming. Running Virtual Wind Tunnel in batch mode can speed up this process by setting up the base simulation once manually and coding the variations in a script. This batch-processing feature is now enabled with a combination of template files and a python script. The python script can be programmed to read, modify, and write template files from within Virtual Wind Tunnel without you interacting with the Virtual Wind Tunnel graphical interface.
>> $VWT_PATH/hwVWTuFX/hwx/bin/win64/ExecWinEnvVWTUFX.exe -b -c Inspire -p VWT -pr UFX -v VWT2022 -ef Insp.env -ex ExecMainVWTUFX.exe -l en_US -f $USER_PATH/userScript.py
from hwx import inspire
from hwx.inspire import vwt
# Open Model
inspire.openFile(r"usrPATH/roadster_model.stl")
# Import Template and Export uFX setup
vwt.ReadAndExportTemplateFile("usrPATH/templateIN.xml", "usrPATH/uFX_output")
# Exit