Dave Looman
Ansys Employee

There could be other errors, but procedurally the script should be like this:


*DIM,potential_energy,ARRAY,55 ! Number of steps

*DO, step, 1, 55, 1
    set,,,,,,,step         ! store results for set step
    potential_energy(step) = energy

  *VWRITE, potential_energy(1:55),”%10.2F”


I don't recognize the format of the two commands below.  Are they based on the *GET command documentation?

*GET, max_index, potential_energy, MAX
*GET, my_energy, ARRAY, potential_energy(max_index)