


{"id":326239,"date":"2023-12-04T17:13:19","date_gmt":"2023-12-04T17:13:19","guid":{"rendered":"\/forum\/forums\/reply\/326239\/"},"modified":"2023-12-04T17:13:19","modified_gmt":"2023-12-04T17:13:19","slug":"326239","status":"publish","type":"reply","link":"https:\/\/innovationspace.ansys.com\/forum\/forums\/reply\/326239\/","title":{"rendered":"Reply To: Autodyn User Subroutine &#8211; User variable issue"},"content":{"rendered":"<p>&lt;p&gt;VAR.1 to VAR.20 are grid variables that can be defined through Autodyn GUI under User Variables. See attached picture below.&lt;\/p&gt;&lt;p&gt;You can change the User Variable Name from VAR.1 to any user-defined name such as Nodal.Momentum,&#8230;&#8230; etc.&nbsp;&lt;\/p&gt;&lt;p&gt;The box &#8220;Restart&#8221; 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 &#8220;Transport&#8221; needs to be checked if this user variable is used in multi-material Euler solver. The box &#8220;Nodal Variable&#8221; needs to be checked if this variable is used in unstructured mesh.&lt;\/p&gt;&lt;p&gt;The use of user variables can be found from the sample user subroutine EXEDIT3.f90 in the Section of &#8220;7.5. Subroutine EXEDIT3 &ndash; 3D&#8221; 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.&lt;\/p&gt;&lt;p&gt;&nbsp;&lt;\/p&gt;&lt;p&gt;<img decoding=\"async\" src=\"\/forum\/wp-content\/uploads\/sites\/2\/2023\/12\/04-12-2023-1701708775-mceclip0.png\" \/>&lt;\/p&gt;<\/p>\n","protected":false},"template":"","class_list":["post-326239","reply","type-reply","status-publish","hentry"],"aioseo_notices":[],"acf":[],"_links":{"self":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/326239","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies"}],"about":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/types\/reply"}],"version-history":[{"count":0,"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/replies\/326239\/revisions"}],"wp:attachment":[{"href":"https:\/\/innovationspace.ansys.com\/forum\/wp-json\/wp\/v2\/media?parent=326239"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}