TAGGED: user-defined
-
-
September 11, 2026 at 3:13 pm
mwhitte6
SubscriberI 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!
-
September 18, 2026 at 6:04 pm
Pedram Samadian
Ansys EmployeeHi,
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
-
September 28, 2026 at 6:20 pm
mwhitte6
SubscriberHi 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!
-
- You must be logged in to reply to this topic.
-
6880
-
1906
-
1544
-
1344
-
1217
© 2026 Copyright ANSYS, Inc. All rights reserved.