Skip to content

How to generate the force filed parameters by vasprun.xml? #20

@harrypotty18

Description

@harrypotty18

Hi, When I went to calculate the force parameters in QuickFF 2.2.1 gave me an error with vasprun.xml file (version 5.3.5). The error reads:
" INIT Initializing system Traceback (most recent call last): File "/home/test/.conda/envs/quickff/bin/qff.py", line 38, in qff()
File "/home/test/.conda/envs/quickff/lib/python2.7/site-packages/quickff/scripts.py", line 360, in qff numbers, coords, energy, grad, hess, masses, rvecs, pbc = read_abinitio(fn)
File "/home/test/.conda/envs/quickff/lib/python2.7/site-packages/quickff/io.py", line 144, in read_abinitio vasprun = VASPRun(fn,field_labels=['hessian','gradient'])
File "/home/test/.conda/envs/quickff/lib/python2.7/site-packages/quickff/io.py", line 105, in init
self.fields['hessian'] = m3.reshape((-1,1))*self.fields['hessian']*m3 ValueError: operands could not be broadcast together with shapes (6,1) (2,2)".
Any suggestions on how to fix this issue would be appreciated. Thanks.

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