Replies: 2 comments
-
Hi @ccasert, thanks for the report and steps to reproduce! I see two parts in your comment: energies not changing and energies being non-zero even when alpha is 0. I couldn't reproduce the first part. For alpha=np.pi/3, I get energy around -5.3e+03 and for alpha=np.pi/2 energy of -1.0e+04. Alpha=0 is not designed to turn off a patch, but I agree that this is unintuitive behavior. To turn off a patch for a pair interaction, set its r_cut to 0. Does that work for you? Having a non-zero energy is a byproduct of the design of the normalization. I agree that this is confusing. We only validate that the user-provided alpha is within 0 to pi inclusive. It might make sense to change that to an exclusive interval. |
Beta Was this translation helpful? Give feedback.
-
In addition to what @cbkerr said, I notice that you don't have an isotropic repulsive core. Without it, your particles can pass through each other when the patches are not aligned. If they later rotate to align patches, then they might also interact on the r < delta side of the potential. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I'm having problems with setting the patch width correctly for patchy potentials in MD simulations. Regardless of the value of alpha I choose in the envelope_params, I get the same results - even when I set it to zero. Below is a minimal script that shows the energy is non-zero even when alpha = 0. What am I doing wrong here? I'm using v5.1.0
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions