Assume that I want to extract the displacement of a node (e.g., ID=1) across the X-direction in each loadstep and substep. How can I do this by looping over the entire dataset?
You may create an APDL script that extracts the total loadstep number, the substep number in each loadstep, and extracts data for each combination of loadstep / substep. For better usability, two arrays can be created; one containing the loadstep / substep combination information, and another one with the resultant values (so that they can be referenced for math operations). The script would look something like:
SET, LAST, LAST *GET, n_data, ACTIVE, 0, SET, NSET *GET, my_NCMLS, ACTIVE, 0, SOLU, NCMLS *DIM, load_array, STRING, 20, n_data *DIM, res_array, ARRAY, n_data count = 0 *DO, i, 1, my_NCMLS SET, i, LAST *GET, my_NCMSS, ACTIVE, 0, SOLU, NCMSS *DO, j, 1, my_NCMSS SET, i, j count = count + 1 load_array(1, count) = 'LSTP_%i%_SSTP_%j%' res_array(count) = UX(1) *ENDDO *ENDDO *STAT, load_array *STAT, RES_ARRAY