I want to add a random number to the stiffness matrix and residual according to the element number in my user element subroutine.
For example, a mesh have 1000 elements. For each element, I want the stiffness matrix and residual different. R(element 1)=R(0)+random(element 1)
R(element 2)=R(0)+random(element 2)
...............
I have a function to generalize random number.
There is an array ix(nen) storing global node number for the element.
But I can't find the variable which represent the current element number.
Is there a variable for user element to call the current element number.
Thanks