Dear friends,
I am writing a user element for small deformation scheme in FEAP. I must keep track of history variables and use them later on for which I am using "hr" array along with "nh1" and "nh2". According to the manual, nh1 and nh2 are address pointers for the previous and current steps , I want to use them to access the data. I am using something like
his = hr(nh1+0, nh1+nhvpe) ! nhvpe = number of history variables per element
to retrieve the history variables of the previous step and use them in my computations. Later on I will update them as follows
hr(nh2+0, nh2+nhvpe) = his ! his is the history variables which they just were computed.
which they will be used in next time step. I have a few questions, since "nh1" and "nh2" are pointers, is it right to use the format I mentioned? I am getting segmentation faults and "nh1" and "nh2" are big integers. Incidentally, I am initializing hr(nh2+0, nh2+nhvpe) to zero in case 14. I am not using case 12 for the updating purposes, and I am doing it in case 3 and 6 in their sub-functions. Thank you in advance for the help.
Regards,
Omid