Closed anshugaur closed 2 years ago
The orbital_current
and bond_current
arrays returned are sparse matrices. So all your problems arise because it isn't a numpy.array, but a scipy.sparse.csr_matrix
.
Does this help?
@anshugaur did my comment help you?
Dear Nick,
Yes, realising that bond and orbital currents are arrays, I was able to use pandas to save them in csv format. Thanks for your prompt reply. One more quick question; can we relate bond currents to vector and atom currents and relate them to total current under bias?
Thanks and regards, Anshu
On Tue, 12 Oct, 2021, 5:43 pm Nick Papior, @.***> wrote:
@anshugaur https://github.com/anshugaur did my comment help you?
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/zerothi/sisl/issues/387#issuecomment-940955448, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJJ7TFTALD2GJY4MMZ5UIF3UGQQ67ANCNFSM5FXQDHKQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You can see the difference between them in the documentation:
Press on each of the See Also
items to look.
Generally you can think of it like this:
The equations for all these are described in the documentation.
Also, you can relate orbital currents to the transmission, see my PhD thesis. And thus also the total current. https://orbit.dtu.dk/en/publications/computational-tools-and-studies-of-graphene-nanostructures
I suspect this has been answered, if not please reopen!
I am facing issues while writing or printing extracted orbital_current or bond_current arrays to a file or to the screen.