In [ ]:
from __future__ import print_function
import sisl
import numpy as np
import matplotlib.pyplot as plt
%matplotlib inline

In this example you should create a square lattice with 4 (or 6) electrodes in a Hall-bar like configuration.

Simply create the device and only add the magnetic file (see TB 7) once you have finalized the calculation of the transport in the 4(6) terminal device.

Here is the square lattice that you can use as a precursor for the full structure:


In [ ]:
sq = sisl.Geometry([.5] * 3, sisl.Atom(1, R=1.), sc=sisl.SuperCell([1., 1., 10.], nsc=[3, 3, 1]))