Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
LS Dyna

LS Dyna

Topics related to LS-DYNA, Autodyn, Explicit STR and more.

Access User Assigned Element Numbers in User-Defined Material

TAGGED: 

    • mwhitte6
      Subscriber

      I want to access the user assigned element numbers from the input card deck from within a user-defined material. I can access the LS-Dyna internally assigned element numbers via the idele variable but I do not know how this internal element number maps to the user assigned element number. 

      Can you please instruct me how to access the user assigned element numbers from within the user-defined material? What array or variable to I need to access? 

      I tried using the "Ansys Assistant" but it did not produce any solutions to the above problem. 

      Thanks!

    • Pedram Samadian
      Ansys Employee

      Hi,

      As you know, the user-defined material interface provides the internal LS-DYNA element ID through IDELE. According to Appendix R of the LS-DYNA manual, the mapping from internal to external (user-assigned) element IDs is available through lqfinv(nhxbwp(i),2), where nhxbwp is the internal element ID array and lqfinv(...,2) returns the corresponding external element ID from the input deck.

      Therefore, the user-assigned element number can be obtained by converting the internal element ID through the lqfinv mapping table. You may want to verify the exact indexing used in your implementation and confirm whether IDELE corresponds directly to the internal ID or to the index into nhxbwp.

      I hope this information helps.

      Thanks,

      Pedram

    • mwhitte6
      Subscriber

      Hi Pedram,

      Thanks that is super helpful. I didn't know lqfinv was defined in Appendix R. I wouldn't have even though to look there because I am not using a cohesive material. 

      Thanks!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.
[bingo_chatbox]