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

Functions to calculate the non-bonded energy for a single particle #3924

Closed
RudolfWeeber opened this issue Sep 29, 2020 · 10 comments
Closed

Comments

@RudolfWeeber
Copy link
Contributor

For MC simulations. Currently, the full energy needs to be calculated, even for single particle MC moves

@KaiSzuttor
Copy link
Member

can this be done with electrostatics? are single particle MC moves efficient?

@RudolfWeeber
Copy link
Contributor Author

RudolfWeeber commented Oct 13, 2020 via email

@KaiSzuttor KaiSzuttor changed the title Functions to calculate the non-bonede energy for a single particle Functions to calculate the non-bonded energy for a single particle Nov 2, 2020
@jonaslandsgesell
Copy link
Member

are single particle MC moves efficient?

It depends on the system. The fundamental problem with it, is that the correlations are high, resulting in the need of having to perform many single steps in order to obtain reliable average values (see Markov Chain central limit theorem).

Additionally MC moves typically need to be taylored to the system which is investigated. Here hybrid MC/MD schemes help.

@RudolfWeeber
Copy link
Contributor Author

RudolfWeeber commented Nov 11, 2020 via email

@jonaslandsgesell
Copy link
Member

Do we have runtime measurements for a charged system? I have the impression that in this case most time is spent in the coulomb energy computation. If this part is not optimized, optimized energy computation of other non-bonded interactions (mainly LJ) won't help too much, right?

@schlaicha
Copy link
Contributor

You have to get started somewhere, the logical order is to first reproduce a simple system (i.e. a LJ liquid) before turning to more complicated stuff. And in a second (third, fourth, etc.) step you can then also optimize electrostatics. Here you would re-use the interpolation of all other charges etc. So plenty of room for improvement, but again, start simple first!

@schlaicha
Copy link
Contributor

are single particle MC moves efficient?

It depends on the system. The fundamental problem with it, is that the correlations are high, resulting in the need of having to perform many single steps in order to obtain reliable average values (see Markov Chain central limit theorem).

Additionally MC moves typically need to be taylored to the system which is investigated. Here hybrid MC/MD schemes help.

You can also have the exactly opposite where you make use of non-Markovian MC moves (Cluster algorithms etc) to overcome strongly correlated systems with large free energy barriers. Wang-Landau sampling is another alternative where often you don't want MD sampling. As said, it depends on the system. And the main advantage is that with efficient MC Espresso is able to perform Grand-Canonical simulations!

@jonaslandsgesell
Copy link
Member

And the main advantage is that with efficient MC Espresso is able to perform Grand-Canonical simulations!

You can already do this now (It was excessively used by me and Peter ): https://github.com/espressomd/espresso/blob/python/samples/grand_canonical.py

It works and gives correct results.

@jngrad jngrad added the Core label Sep 2, 2021
@jngrad
Copy link
Member

jngrad commented Jun 7, 2022

Progress report: #4401 introduced a core callback function particle_short_range_energy_contribution() to compute the non-bonded energy of particle pairs. For bond breaking MC moves and acid-base MC moves with P3M electrostatics, the short-range bonded energy and long-range non-bonded energy would have to be implemented.

@jngrad jngrad assigned Frieda95 and unassigned Frieda95 May 15, 2023
@RudolfWeeber
Copy link
Contributor Author

The non bonded energy contribution of a single particle is now available in Python. Closing for now.
Better MC support for P3M is a different matter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants