I am trying to modify properties of an element via Python script within Script Manager (version 6.1), so each step within the dynamic simulation the script will execute.
The script works perfectly well when clicking on Run (or Run Async).
But it's not working when I am attaching it to an event (let's say PID calculation start) and run an integrator for a dynamic simulation.
What is the correct way to do it?
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
The PID Controller is solved separatedly, and I forgot to implement the linked script functionality for it. Sorry about that. It will be working on the next update.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
@danwbr, so is it possible to attach Python script to calulation events (Object Calculation Finished) for a specific Object when Executing an integrator? (so every step there will be a calculation).
Thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to modify properties of an element via Python script within Script Manager (version 6.1), so each step within the dynamic simulation the script will execute.
The script works perfectly well when clicking on Run (or Run Async).
But it's not working when I am attaching it to an event (let's say PID calculation start) and run an integrator for a dynamic simulation.
What is the correct way to do it?
Thanks
The PID Controller is solved separatedly, and I forgot to implement the linked script functionality for it. Sorry about that. It will be working on the next update.
Hi,
During a dynamic calculation, I want to get the elapsed time and integration step in Python Script to use for the calculation.
What kind of Python script can do this?
Try
You can then access the properties of the current integrator: http://dwsim.inforside.com.br/api_help60/html/Properties_T_DWSIM_DynamicsManager_Integrator.htm
Last edit: Daniel Medeiros 2020-08-17
Problem solved.
Thank you.
@danwbr, so is it possible to attach Python script to calulation events (Object Calculation Finished) for a specific Object when Executing an integrator? (so every step there will be a calculation).
Thanks
Yes 👍🏻