Ansys Learning Forum › Forums › Discuss Simulation › LS Dyna › Autodyn User Subroutine – User variable issue › Reply To: Autodyn User Subroutine – User variable issue
VAR.1 to VAR.20 are grid variables that can be defined through Autodyn GUI under User Variables. See attached picture below.
You can change the User Variable Name from VAR.1 to any user-defined name such as Nodal.Momentum,...... etc.
The box "Restart" needs to be checked if you want to save this variable in restart files and plot it in Autodyn Contour Plot and Time History Plot. The box "Transport" needs to be checked if this user variable is used in multi-material Euler solver. The box "Nodal Variable" needs to be checked if this variable is used in unstructured mesh.
The use of user variables can be found from the sample user subroutine EXEDIT3.f90 in the Section of "7.5. Subroutine EXEDIT3 – 3D" of Autodyn User Subroutine Tutorial, where it demonstrates the use of EXEDIT to store the maximum momentum over time for all Lagrange cells in a model, except Euler. The example is for Autodyn-3D.