コード例 #1
0
ファイル: mos_2d_physics.py プロジェクト: xj361685640/devsim
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))
コード例 #2
0
ファイル: test_common.py プロジェクト: htorodriguez/devsim
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))