[ase-users] Format of setting external stresses in NPT
Wang Riping
wangriping at outlook.com
Sat Sep 1 15:19:06 CEST 2018
Dear ASE
when I set dyn = NPT(atoms, 5*units.fs, 0, (-100,-100,-100,0,0,0), None, None),
it reports the following error.
WARNING: NPT: Setting the center-of-mass momentum to zero (was 0.370581 35.7431 -20.9148)
Traceback (most recent call last):
File "Cu.py", line 53, in <module>
dyn = NPT(atoms, 5*units.fs, 0, (-100,-100,-100,0,0,0), None, None)
File "/BIGDATA1/gyig_rpwang2_1/software/ase-3.16.2/ase/md/npt.py", line 150, in __init__
self.set_stress(externalstress)
File "/BIGDATA1/gyig_rpwang2_1/software/ase-3.16.2/ase/md/npt.py", line 174, in set_stress
elif stress.shape == (3, 3):
AttributeError: 'tuple' object has no attribute 'shape'
Anyone can give me examples of setting stresses with 6*1 or 3*3 array format?
Thank you very much.
Riping Wang
2018.9.1
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listserv.fysik.dtu.dk/pipermail/ase-users/attachments/20180901/435cb00e/attachment-0001.html>
More information about the ase-users
mailing list