[ase-users] Atoms object
Otto Kohulák
pravod at gmail.com
Sun Nov 16 20:31:29 CET 2014
Hello,
I am storing it through ase.calculators.singlepoint object and i think it
is the best way.
you make a calculator that yields desired values of whatever you want
Regards,
Otto
2014-11-16 19:51 GMT+01:00 Eric Smoll <ericsmoll at gmail.com>:
> Hello ASE users,
>
> I am interested in storing force information in an atoms object. What is
> the preferred way to do this? The "set_array" method? In the Atoms class, I
> see the momenta set as follows:
>
> self.set_array('momenta', momenta, float, (3,))
>
>
> My attempts to make use of this method fail:
>
> >>> test=np.arange(9).reshape((3,3))
> >>> test
> array([[0, 1, 2],
> [3, 4, 5],
> [6, 7, 8]])
> >>> a.set_array('test', test, float, (3,3))
> ValueError: Array has wrong length: 3 != 0.
>
>
> Best
> Eric
>
> _______________________________________________
> ase-users mailing list
> ase-users at listserv.fysik.dtu.dk
> https://listserv.fysik.dtu.dk/mailman/listinfo/ase-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20141116/3284396b/attachment.html>
More information about the ase-users
mailing list