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

Remove kinetic energy contribution from virtual sites #4839

Merged
merged 1 commit into from
Dec 14, 2023

Conversation

jngrad
Copy link
Member

@jngrad jngrad commented Dec 11, 2023

Fixes #4838

Description of changes:

  • fix virtual sites regression introduced in ESPResSo 4.2.0
  • update description of MASS and ROTATIONAL_INERTIA features

Virtual sites no longer contribute a kinetic energy. The regression
was introduced in 4.2.0 by a4d5b76.
@reinaual
Copy link
Contributor

We had a similar discussion in a meeting about this already a while back about thermalization of virtual sites, but I don't remember the outcome of it.
Probably there are use-cases for both, virtual sites having internal rotational degrees of freedom and not...
I guess this mainly affects virtual sites carrying a dipole moment, which is why I suggest @RudolfWeeber to decide on it.

@reinaual reinaual requested review from RudolfWeeber and removed request for reinaual December 12, 2023 10:53
@jngrad
Copy link
Member Author

jngrad commented Dec 13, 2023

Offline discussion with @RudolfWeeber: this is indeed a bug. Once the propagators PR is merged (#4820), we will have the possibility to implement the feature mentioned by @reinaual in a physically correct way, i.e. by setting the virtual particle propagation flags to TRANS_VS_RELATIVE + ROT_LANGEVIN. But this is a long-term plan.

@jngrad jngrad added the automerge Merge with kodiak label Dec 14, 2023
@kodiakhq kodiakhq bot merged commit 504fd38 into espressomd:python Dec 14, 2023
10 checks passed
@jngrad jngrad deleted the fix-4838 branch December 14, 2023 17:42
@RudolfWeeber
Copy link
Contributor

@ Alex, the current implementation of virtual sites never integrates the vs' rotatoinal degrees of freedom. With the propagatoin PR, this will become switchable.

jngrad pushed a commit to jngrad/espresso that referenced this pull request Jan 2, 2024
Fixes espressomd#4838

Description of changes:
- fix virtual sites regression introduced in ESPResSo 4.2.0
- update description of `MASS` and `ROTATIONAL_INERTIA` features
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Virtual sites can have non-zero kinetic energy
4 participants