Skip to content

A problem with cyclopropane proper torsion term #60

@drmeister

Description

@drmeister

Is this proper torsion term malformed? Is it supposed to recognize a cyclopropane with an exocyclic atom?

https://github.com/openforcefield/openff-forcefields/blob/main/openforcefields/offxml/openff-2.0.0.offxml#L158

<Proper smirks="[#6X4;r3:1]-[#6X4;r3:2]-[#6X4;r3:3]-[*:4]" periodicity1="2" periodicity2="1" phase1="0.0 * degree" phase2="0.0 * degree" id="t16" k1="3.656359841852 * mole**-1 * kilocalorie" k2="3.357036752304 * mole**-1 * kilocalorie" idivf1="1.0" idivf2="1.0"></Proper>

I use the VF2 algorithm to recognize these SMIRKS strings, and VF2 fails on the pattern [#6X4;r3:1]-[#6X4;r3:2]-[#6X4;r3:3]-[*:4] within a cyclopropane because it only recognizes this in the context where the first atom and the third atom are NOT bonded to each other.

If this pattern is supposed to recognize a cyclopropane, a SMIRKS string for this that should not cause additional problems and would work with VF2 would be...
[#6X4;r3:1]1-[#6X4;r3:2]-[#6X4;r3:3]1-[*:4]

This adds ring closure numbers to the first and third atoms.

You could test if changing the pattern changes your parameter assignment by generating parameters with the parameter as it is and comparing it to a force field where you use the pattern above.

You use a pattern with ring-closure numbers in this angle term...

https://github.com/openforcefield/openff-forcefields/blob/main/openforcefields/offxml/openff-2.0.0.offxml#L103

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions