Skip to content

ComputeDipoleMoments._compute_charge_derivatives incorrectly expects OpenMM units from system_subset #696

@Shahriar-Keshvari

Description

@Shahriar-Keshvari

Hello:

I have followed the tutorial 4 (using ForceBalance) to optimize the Lj parameters. The code runs successfully; however, upon adding the dielectric constant calculation, I get an error:

 "AttributeError: Neither Quantity not it's magnitude (blah) has 'unit'. Did you mean units? " 

This error message seems to be misleading because the magnitude term (blah) is taken from the "vdW" part of the SMIRK input file. I do have the "LibraryCharges" defined.

Again, if I stick with density and Enthalpy of vaporization, the code works fine. The "id" used for each atoms in "LibraryCharges" and "vdW" part are the same and also I am using the same SMIRK to define them. In the working directory, I can see that the production simulation has been completed successfully and the folder for "compute_dipole" is empty.

Please let me know if you need more information or clarificaiton!

Thanks
Shah

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