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 #277.
gcmc_bulk_sampling_probabilitynow defaults to "auto": 0.1 in the NVT ensemble and 0 when a pressure is set. Bulk moves act as a barostat for NVT GCMC. Under a barostat, whole-box moves are only well behaved when the chemical potential of the inserted species depends strongly on how much is present. SOMD2 always exchanges the solvent water of a dilute system, whose chemical potential is almost that of pure water, so the number of waters is barely fixed and can drift. Sampling within the GCMC sphere with the barostat controlling the density is well-defined. An explicit value is never overridden.A warning is logged when bulk moves are used with a pressure, or when
gcmc_selectionis None with a pressure, since every move then samples the whole box. The previous defaults (no selection, 1 atm) are this case, so default GCMC runs will now see the warning.On restart, "auto" keeps the value of the last run, so runs started before this change restart unchanged. Any other change is refused, since it would mix two ensembles in one set of energies. A changed pressure is reported as such. "auto" is kept as given in the written config, and NaN is now rejected.
The loch README now documents when whole-box moves are unsuitable in the osmotic ensemble (OpenBioSim/loch#60).