Use Python Code object / Python Result object with a DOE
When a Python Code or a Python Result object is inserted in Mechanical, by default it is not connected, ie there is a question mark next to the object in the Mechanical tree, and the code will not be executed. Manual action has to be taken to connect the object, which is fine for a single run, but will prevent a DOE (Design of Experiment / running several simulations from the project page with varying parameters) to run. Is there a solution to use Python objects in a DOE?
Best Answer
-
By default, the Python objects are not connected, for security purposes. It is possible to activate an option to automatically connect the Python objects. This is mandatory to be able to use Python objects in a Design Point experiment.
The option is: activate the Connect/Run Python Code Objects when Mechanical is Launched preference contained in the Mechanical category of the Workbench Options dialog (Tools > Options > Mechanical):
See this page of the help for further information: https://ansysproducthelpqa.win.ansys.com/account/secured?returnurl=/Views/Secured/corp/v231/en/wb_sim/ds_python_code.html
0