def printCurrents(device, contact, bias): ecurr = devsim.get_contact_current(contact=contact, equation="ElectronContinuityEquation", device=device) hcurr = devsim.get_contact_current(contact=contact, equation="HoleContinuityEquation", device=device) tcurr = ecurr + hcurr print("%s %g %g %g %g" % (contact, bias, ecurr, hcurr, tcurr))
def printResistorCurrent(device, contact): ecurr = devsim.get_contact_current(device=device, contact=contact, equation="ElectronContinuityEquation") hcurr = 0.0 tcurr = ecurr + hcurr print("Contact: %s\nElectron %g\nHole %g\nTotal %g" % (contact, ecurr, hcurr, tcurr))