Does anyone know how to smooth data from tensile MD simulations?

Hi All,

I performed a tensile MD simulation for a polymer and calculated stress and strain values from the MD data. However, the stress-strain curve shows significant fluctuations, making the trend difficult to interpret. Could anyone suggest tools or techniques commonly used to smooth MD simulation data for clearer visualization?

If you are using xmgrace, you can use Data->Transformations->Running Averages, and set the length to a suitable value - you can try different lengths. Most software alternatives have something similar.

1 Like

Thanks a lot.

In addition, you need to strain very slowly, not only to obtain more statistics, but more importantly to avoid hysteresis. Strain rates in MD simulations are often many orders of magnitude higher than realistic strain rates.

@hess Thank you. I have a few more questions. I read papers on stress-strain calculations, and some researchers used pressure tensors (e.g., -Pz) as stress, and some used Vir-ZZ as stress.

  1. I am confused, about which one to use in my simulations. What is the rationale behind the two ways?
  2. If I select Vir-ZZ and the stress, its unit is kJ/mol, energy per mol. How do we convert it to a pressure unit, what is the relation in the conversion?

Thank you.

I don’t see why you would want to use the virial, except when simulating at zero Kelvin, in which case the pressure is identical to the virial. Use the pressure.

1 Like

Thanks for clarifying this.