Skip to content

Commit

Permalink
Update magtb.wl
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangzeyingvv committed Jul 5, 2022
1 parent ce1b7f8 commit 006dbe1
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions MagneticTB/magtb.wl
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,11 @@ init[OptionsPattern[]]:=Module[{norm,repall,symopinit},
Which[#[[4]]=="F",Det[#[[2]]]#[[2]] . wyck[[2]],
#[[4]]=="T",-Det[#[[2]]]#[[2]] . wyck[[2]]]}&/@symminfo),{wyck,wyckoff}];
basis=OptionValue[basisFunctions];
If[Length[Intersection[VectorAngle@@@(Subsets[latt,{2}]/.latpar),{(2 \[Pi])/3,\[Pi]/3}]]>0,
basisdict["dx2-y2"]=(x^2 - y^2);
basisdict["dx2-y2dn"]->Reverse@{(x^2 - y^2),0};
basisdict["dx2-y2up"]->{(x^2 - y^2),0};
];
pointops=pointMatrix[symminfo,#,lattplot]&/@basis;
(*Print[pointops];*)
symopinit=Table[symop[i],{i,Length[wyckoff]}];
Expand All @@ -79,13 +84,9 @@ init[OptionsPattern[]]:=Module[{norm,repall,symopinit},
nbasesperwyck=Length/@basis;
Flatten[Table[Table[Table[atompos[[i,j,1]],nbasesperwyck[[i]]],{j,natomperwyck[[i]]}],{i,Length[natomperwyck]}],2]
];
If[Length[Intersection[VectorAngle@@@(Subsets[latt,{2}]/.latpar),{(2 \[Pi])/3,\[Pi]/3}]]>0,
basisdict["dx2-y2"]=(x^2 - y^2);
basisdict["dx2-y2dn"]->Reverse@{(x^2 - y^2),0};
basisdict["dx2-y2up"]->{(x^2 - y^2),0};
];



];


basisdict=<|
Expand Down

0 comments on commit 006dbe1

Please sign in to comment.