Hi Joe, Thank you, now it works! But I am a bit confused about the physical meaning of the current, created by modes in lead n. How to plot the real current between the two leads? Imagine, as the simplest case, that my geometry is inversion-symmetric, so that lead 0 goes into lead 1 under inversion. Then I expect the current to be inversion-symmetric as well. Thanks, Sergey On 18/10/18 17:30, Joseph Weston wrote:
You need to provide the parameters to the current operator when you call it, because it needs to evaluate the Hamiltonian to calculate the current (IIRC this is in the docs).
On 10/18/2018 06:16 PM, Sergey Slizovskiy wrote:
Thank you, Joseph, It could be nice to have this in tutorials. In my case, I still get a error Exception "unhandled kwant._common.UserCodeError" Error occurred in user-supplied value function "hopping".
Although, my hoppings are pretty innocent and conductance calculation works fine
On 18/10/18 17:04, Joseph Weston wrote:
currents = [J_0(p) for p in psi]