Repository navigation
Conversation
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #280.
GCMC simulations now run in the NVT ensemble: when
gcmcis True, the pressure is ignored, with a log message. The osmotic ensemble, enabled since 2026.1.0, isn't valid for GCMC of solvent water. Water's chemical potential is then almost that of pure water, so the number of waters is barely fixed, and any mismatch between the excess chemical potential and the water model's chemical potential drives the total water count steadily one way. Restricting moves to the GCMC sphere only slows this, since water diffuses between the sphere and the bulk. In a charge-stage ABFE test under NPT, a run withgcmc_tolerance=0.1gained 46 waters with the box growing about 0.6 nm³ per ns, then ran out of ghost waters. The control lost 1–3 waters per ns with the box slowly shrinking.This replaces #278, which is fully reverted. It turned off bulk moves under a pressure, which only slowed the drift.
Other changes:
perturbed_systemshares the reference box (Fix issue #270 #271) now applies to every GCMC run, and no longer suggests setting a pressure.