I'm trying to set-up up an analysis, run it, and then extract results. It's my understanding that Qt can be used to create the set-up portion, whereas Python is typically used to extract results/change parameters once an analysis has been set-up.
The documentation for the API is very sparse. Does anyone here have any in depth knowledge of Qt or Python that has run a designstudy before in auto mode using the aforementioned programming languages? And is there more in-depth documentation for doing so? Do I need to download a Qt editor to do the set-up and then run a Python script? Any help would be great. Thanks.
Depends on what you want to automate really. I have done small scripts to first run the simulation using k-eps and then RNG for stability. I could find one:
# Script for just the active scenario#
from CFD import Setup
#setup the scenario
study = Setup.DesignStudy.Create()
scenario = study.getActiveScenario()
#setup the basic model
scenario.setProperty("solverComputer", "Cluster (16 cores)")
scenario.setProperty("analysisMode", "Steady State")
#run with k-epsilon/ADV1
scenario.setProperty("advectionScheme", "ADV 1")
#run with RNG/ADV5
scenario.setProperty("advectionScheme", "ADV 5")
There was a script which I could get done with Autodesk Support's help, where it automates more than one scenario by looping through the Design Study, but can't find it right now. You might find the "Examples" section in API doco quite handy. You can pick and choose the code from there to suit to your requirement. But I agree, the doco is sparse and we could do with a bit more comprehensive guide and more examples.