hexagon logo

How can I fill a 'User Defined Variable' with Python?

I run a conventional FE simulation, then I postprocess the .t16 file and calculate the values for a User Defined Var. After that I want to fill the User Defined Var with the calculated values in order to visualize the results.
 
I did it "manually" by reading the .t19 (ASCII) and replacing the zeroes of the User Defined Var by the values I want to visualize. It works, but I am sure there are a better way to do this with Python and the PyMentat / PyPost modules.
 
Any idea?
 
Thanks in advance.
 
Regards,
Julio
Parents Reply Children
No Data