Dear LAMMPS users ,
Greetings .
I have two different results let’s say T(i) and H(i) ( thermo_style outputs )
Now I want to calculate third result with doing this do loop :
S = 0.0
Do I = 1 ,N -1
S = S + ( H(I+1) - H(I) ) / T(i)
End do
Can you please let me know How I can write this in input file ?
I could not find a sample so I decided to ask this from you .
Thanks for your attention.
Best ,
Saeed.