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

Bug in assigning eigenvalues to spinwave modes #169

Open
RichardWaiteSTFC opened this issue Mar 18, 2024 · 0 comments
Open

Bug in assigning eigenvalues to spinwave modes #169

RichardWaiteSTFC opened this issue Mar 18, 2024 · 0 comments

Comments

@RichardWaiteSTFC
Copy link
Collaborator

RichardWaiteSTFC commented Mar 18, 2024

To reproduce
(1) Run this script

nqbins = 11
ebin_edge = 0:0.2:6;
FMchain = spinw;
FMchain.genlattice('lat_const',[3 8 8],'angled',[90 90 90],'spgr',0);
FMchain.addatom('r',[0 0 0],'S',1,'label','MCu1','color','blue');
FMchain.gencoupling('maxDistance',7)
FMchain.addmatrix('value', eye(3),'label','Ja','color','green')
FMchain.addcoupling('mat','Ja','bond',1);
FMchain.genmagstr('mode','direct', 'k',[0 0 0],'n',[1 0 0],'S',[0; 1; 0]);
FMspec = FMchain.spinwave({[0 0 0] [1 0 0], nqbins},'hermit',false); % , 'sortMode', true);
FMspec = sw_egrid(FMspec,'component','Sperp', 'Evect', ebin_edge);
FMspec.omega

prints

    0.0000    0.3820    1.3820    2.6180    3.6180    4.0000    3.6180    2.6180    1.3820   -0.3820   -0.0000
   -0.0000   -0.3820   -1.3820   -2.6180   -3.6180   -4.0000   -3.6180   -2.6180   -1.3820    0.3820    0.0000

The eigenvalue of the modes has been swapped in the penultimate q point
image

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

1 participant