MC example in manual - Metrpolis condition

Dear all,

Hi, I have read the MC example in the manual on page 411.
It is written: “random.random() <= math.exp(natoms*(elast-e)/kT)”.

Does anyone know why “natoms” appears there?

Thanks,
Best,
Asaf

Are elast and e averaged over all atoms instead of the total potential energy?

Maybe. I’ll check that. Thanks!

Best,
Asaf