Open palominohernandez opened 2 weeks ago
Thanks @palominohernandez - unfortunately I don't think we've ever tested out simulations with the opc models.
My initial thought here is that openmm.Modeller.addSolvent just doesn't support it properly yet (hence why you are getting a validation error when trying to set the solvent_model
settings to 'opc'.
There is likely a way to fix this, but we'll need to triage exactly what is going wrong & how much work fixing it will take.
I believe that the issue is we only allow a subset of the solvation models that https://github.com/openmm/openmmforcefields supports. Looking at http://docs.openmm.org/latest/api-python/generated/openmm.app.modeller.Modeller.html#openmm.app.modeller.Modeller.addSolvent @IAlibay is correct that addSolvent
only supports the models we allow in the settings:
model (str='tip3p') – the water model to use. Supported values are ‘tip3p’, ‘spce’, ‘tip4pew’, ‘tip5p’, and ‘swm4ndp’ (polarizable).
There are other ways to solvate a system, but our current OpenMM protocols use Modeller.addSolvent
AFAIK
Thanks! Do I get it from the comments that there is no easy fix at the moment, correct?
Dear all,
I have been trying to use other water models such as OPC (a 4 point model).
I thought that intuitively it should be as simple as:
However, I get an error that says:
I tried to go deep in the gufe rabbit hole yet it was a bit unclear.
I thought I could just set up another 4 point model such as tip4pew and run the system with it, as the opc parameters should override the tip4pew setup. Doing this, I could write the transformations to disk. However, when running the json files with openfe quickrun, I got the following output:
For reference, the same simulation runs properly when using the default force field parameters.
Thanks, O.