Ansys Learning Forum › Forums › Discuss Simulation › General Mechanical › Export .txt file with element ID and corresponding elastic modulus › Reply To: Export .txt file with element ID and corresponding elastic modulus
Â
Â
Â
Â
Â
Â
Â
Hi
Assuming it is Workbench mech. you are using.
One way of doing this (get Young’s mod. for mesh/elements) using ACT mechanical scripting is shown here:
https://discuss.ansys.com/discussion/4481/how-to-get-youngs-modulus-for-each-element-in-the-mesh
Â
If in APDL then looping over elements and using as below can do the same:
enow = elnext(enow)
*GET,mpid,ELEM,enow,ATTR,MAT ! get MP MAT number of el.
*GET, mpex(ii, 1), EX, mpid ! Store it in array
Â
For the second part, that would need APDL.
All the best
Erik
Â
Â
Â
Â
Â
Â
Â