Skip to content

Default the REST2 region to the perturbed atoms and their neighbours - #292

Merged
lohedges merged 1 commit into
develfrom
feature_rest2_selection
Nov 16, 2026
Merged

lohedges merged 1 commit into
develfrom
feature_rest2_selection

Conversation

@lohedges

Copy link
Copy Markdown
Contributor

Previously, the REST2 region contained all atoms of the perturbable molecules unless a rest2_selection was given. This PR adds an auto default for rest2_selection, which selects the perturbed atoms (atoms whose element changes, including ghosts, and heavy atoms whose LJ parameters change) and the atoms within rest2_bonds bonds of them (2 by default). Since torsions are only scaled when all four atoms are in the region, this includes the torsions about every bond to a perturbed atom, while keeping the region, and the energy change between windows, small.

The resolved selection is logged and written to the config file, and is only used when REST2 is active. All atoms of the perturbable molecules can still be scaled with rest2_selection=None, which REST2 runs started with the previous default need to restart.

The perturbed-atom selection is now shared with the automatic GCMC region.

@lohedges lohedges added the enhancement New feature or request label Nov 16, 2026
@lohedges
lohedges merged commit ba7eac1 into devel Nov 16, 2026
4 checks passed
@lohedges
lohedges deleted the feature_rest2_selection branch November 16, 2026 11:42

This branch was previously deployed

1 inactive deployment
somd2-build — 552269e1 Deployed Nov 16, 2026 by lohedges via build (3.14, linux) #153
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant