You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have been figuring out how to use this program over the past couple of days. I can't get the 'addcoupling' function to work for my system in pyspinw 3.0.0. Specifically, I'm trying to generate an antiferromagnetic coupling between 16 atoms using addmatrix and gencoupling.
here is my code for generating the negative J coupling (is it correct?):
H_sys.addmatrix('value',-np.eye(3),'label','J1')
Here is my code for generating the coupling:
H_sys.addcoupling('J1',1)
Thank you.
The text was updated successfully, but these errors were encountered:
tombadmanship
changed the title
Question about SpinW manual and pyspinw
Question about SpinW manual and pyspinw (ADDCOUPLING)
Jan 29, 2018
I have been figuring out how to use this program over the past couple of days. I can't get the 'addcoupling' function to work for my system in pyspinw 3.0.0. Specifically, I'm trying to generate an antiferromagnetic coupling between 16 atoms using addmatrix and gencoupling.
here is my code for generating the negative J coupling (is it correct?):
H_sys.addmatrix('value',-np.eye(3),'label','J1')
Here is my code for generating the coupling:
H_sys.addcoupling('J1',1)
Thank you.
The text was updated successfully, but these errors were encountered: