-
Notifications
You must be signed in to change notification settings - Fork 16
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
Don't perturb LJ sigma for ghost atoms #295
Conversation
Looks like |
I've fixed the issue with the missing
I'll check the topology file generated during the test to see what's gone wrong. |
This is because the GroTop parser uses this logic to detect dummy atoms: if (elem.nProtons() == 0 and lj.isDummy())
{
if (is_perturbable)
atomtype += "_du";
// Only label dummies for regular simulations.
else if (not was_perturbable)
particle_type = "D";
} Clearly |
Will do - I will sort that this weekend. I'll change |
Brilliant, many thanks. |
Everything is now working following the latest Sire update. |
Just to confirm that I have now checked that the three different approaches for fixing zero LJ sigma values are giving the same result. We now have:
The following plot shows a minimised lambda potential energy scan for the ethane --> methanol perturbation. The |
I'm just wondering about how to preserve the existing Old:
New:
@jmichel80: Are there any issues with this approach? If so, then I could always add another atom property, e.g. |
This would change the behaviour of the softcore I think and could cause changes in the efficiency of transformations with somd1, it would be best to preserve the somd1 protocol. |
Here's a comparison of the ethane <--> methanol PMFs for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good :-)
This PR switches to not perturbing the LJ sigma parameter for ghost atoms so that merged molecules created by BioSimSpace are compatible with SOMD2 by default. We still preserve the existing behaviour (zero sigma and epsilon) for SOMD1. The PR also includes a few modifications to harden the checking of dummy atoms during the pert file writing stage. (This isn't needed during merging, since we are explicitly setting the appropriate molecule and atom properties.)
devel
into this branch before issuing this pull request (e.g. by runninggit pull origin devel
): [y]Suggested reviewers:
@chryswoods