-
Hello, I'm encountering an issue when simulating a system of Brownian particles subjected only to thermal fluctuations, with barriers (I've encountered this in the case of both Wall potential and Fixed particles; two scripts are attached for reference).
I understand this issue is related to setting too large a value of The two scripts are: Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
I'm surprised that your simulations ran successfully before. In my experience, dt=0.01 is far too large to be stable for WCA simulations with the You are also using |
Beta Was this translation helpful? Give feedback.
I'm surprised that your simulations ran successfully before. In my experience, dt=0.01 is far too large to be stable for WCA simulations with the
ConstantVolume
andConstantPressure
integration methods. I have often used dt=0.005 in the past for LJ/WCA simulations (epsilon=1, sigma=1, kT=~1-3). Although detailed testing shows that dt=0.001 is necessary for accurate results.You are also using
Brownian
which requires even smaller dt due to its O(dt) error (compared to O(dt**2) forConstantVolume
andConstantPressure
).