Molecular Dynamics Simulation of a Spring
Several options to try:
- The default.
- Set "Position" to 1.0,
and "Velocity" to a small value like 0.5,
check "Double well",
uncheck "Thermostat" (without thermostat).
- Set temperature "T" to a small value like 0.1,
check "Thermostat" (thermostat).
The default is a simple Monte Carlo thermostat.
- Check "v-rescale" for velocity rescaling thermostat,
does it work well in this case?
Try a few "Therm. dt" values.
Download: source code in Java,
or vanilla version in C.