Hi all,
I would like to create a user-defined macro to perform calculations on the B field at the nodes of the mesh of a rotating electrical machine (Flux2D model). Then, I would like to extract the results on a DEX file.
I successfully created the .py file of the macro by modifying an existing one available in Flux. As a result, I can load the macro in Flux.
What I would like to do now with this macro is to select manually the time steps of my solved scenario between which I would like to perform my calculations.
For instance, imagine that I have a time-stepping simulation that solves my model from time=0 to time=0.2 s with 1000 steps. Now, I would like to extract the B field at nodes only from time=0.1 s to time=0.2 s.
I do believe that I have to write some piece of code when defining the parameters as well as the function in the .py file of the macro, but I don't know how to do that. Is there anyone that can help me?
Thank you in advance!
Marco