SunnySuite / Sunny.jl

Spin dynamics and generalization to SU(N) coherent states
Other
65 stars 19 forks source link

`view_crystal` should show exchange interactions #249

Closed kbarros closed 4 months ago

kbarros commented 4 months ago

If a System is passed to view_crystal, then it should show the exchange interactions on each bond. Following SpinW, the symmetric part of the exchange can be plotted as an ellipsoid described by the three principal components (eigenvectors and eigenvalues). The DM part of the exchange can be plotted as a vector (but really it transforms as a pseudo-vector, i.e., it is invariant under spatial inversion). For the DM vectors to be meaningful, the direction of each bond must also be indicated.

kbarros commented 4 months ago

Fixed in https://github.com/SunnySuite/Sunny.jl/pull/253.