Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

monte carlo simulations of beads with partial charges #69

Open
xianshine opened this issue Jan 9, 2024 · 1 comment
Open

monte carlo simulations of beads with partial charges #69

xianshine opened this issue Jan 9, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@xianshine
Copy link

Is it possible to implement the simulation of particles with partial charges, e.g. coarse graind molecules with partial charges?
I think we only need to add these features:

  1. add particle attributes to contain information about partial charges.
  2. electrostatic interaction energy calculation with Ewald type of methods.

If it is possible to implement these, what's the easiest way?

@PKua007 PKua007 added enhancement New feature or request help wanted Extra attention is needed labels Jan 10, 2024
@PKua007
Copy link
Owner

PKua007 commented Jan 10, 2024

Electrostatic interactions (especially dipolar) and Ewald summation are definitely somewhere in the roadmap. I never fully dived into the technical details of implementing the Ewald summation in Monte Carlo simulations (although I saw some papers on the topic), but I imagine one would just add additional energy terms in all places in the Packing class where the energy is computed. As for engineering the distribution of dipoles/charges, I would add the methods returning their placement in the Interaction interface in a similar fashion to Interaction::getInteractionCentres(). The support for defining the dipoles/charges could be then either hard-coded into selected existing Shape classes or an adapted class could be devised, say ChargedShape, which would take any existing shape and add a custom charge distribution. Probably both.

If you have some experience with the Ewald summation, you can contribute. I will happily help with the technicalities regarding the integration with the existing codebase in a general fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants