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.
User defined variable is usually calculated in user subroutine PLOTV. This is much easier than doing it manually or using python script. Attached please find a sample routine which is used in e2.26 in Marc documentation VOL E.
User defined variable is usually calculated in user subroutine PLOTV. This is much easier than doing it manually or using python script. Attached please find a sample routine which is used in e2.26 in Marc documentation VOL E.