Md_Salem
Subscriber

 

Well, I used your code to develop the next code in which I applied harmonic analysis (55 steps) and selected the maximum set of the induced potential energy in order to parametrize it later and then minimize it :

/POST1
SET,LAST
ESEL,S,ENAME,,188
*DIM,potential_energy, ARRAY,55     !number of steps

*DO, step,1,55,1
    /SOLU
    *GET,energy,sene,step,ITEM
      potential_energy(step)=energy
*ENDDO
*GET,max_index,total_potential_energy,MAX
max_potential_energy = potential_energy(max_index)
*get,my_energy,ssum,,Item,max_potential_energy

 

but unfortunately the resultant “my_energy” was 0 , what would be the result for such a failure ?

Regards.