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

Add resolve_intramol_clashes #1413

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from
Draft

Add resolve_intramol_clashes #1413

wants to merge 3 commits into from

Conversation

maxentile
Copy link
Collaborator

Add a utility function that energy-minimizes a mol's 0'th conformer, while otherwise remaining as close as possible to the input conformer.

For example, if mol has a pair of atoms placed on top of each other:

image

(resulting in |force(x)| of +inf)

resolve_intramol_clashes(mol, ff) will produce:

image

This is implemented by introducing a softened potential function U(x, lam), with lam increasing the distances used in NonbondedPairListPrecomputed. At lam=1 all intramolecular pairs ij have their effective distance d_ij increased to >= 0.75 * sig_ij, and at lam=0 we recover the original U(x).

A restrained minimization is performed at lam=1, then another restrained minimization is performed at lam=0.

@maxentile maxentile changed the title [WIP] Add resolve_intramol_clashes Add resolve_intramol_clashes Oct 28, 2024
@maxentile maxentile marked this pull request as ready for review October 28, 2024 13:31
@maxentile maxentile requested review from mcwitt and badisa October 28, 2024 15:19
@maxentile maxentile marked this pull request as draft October 28, 2024 15:53
@maxentile maxentile removed request for mcwitt and badisa October 28, 2024 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant