Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about SpinW manual and pyspinw (ADDCOUPLING) #58

Open
tombadmanship opened this issue Jan 26, 2018 · 1 comment
Open

Question about SpinW manual and pyspinw (ADDCOUPLING) #58

tombadmanship opened this issue Jan 26, 2018 · 1 comment

Comments

@tombadmanship
Copy link

tombadmanship commented Jan 26, 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.

@tombadmanship tombadmanship changed the title Question about SpinW manual and pyspinw Question about SpinW manual and pyspinw (ADDCOUPLING) Jan 29, 2018
@wardsimon
Copy link
Contributor

Hi,

The code for generating the negative couplings is correct but adding it to the bond should be:

H_sys.addcoupling('mat','J1','bond',1.)

Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants