def set_p(p, Eg, W2, nmax, mmax): p.ems = func_ems(Eg) p.alpha = fetmodel.alpha_NP(Eg, p.ems) p.W2 = W2 Cox = fetmodel.Cox_rect(epsOX, tOX, p.W1, W2) Cc = fetmodel.Cc_rect(epsS, p.W1, W2) p.Ceff = Cox * Cc / (Cox + Cc) p.nmax = nmax p.mmax = mmax
if __name__ == '__main__': # Eg = 3.4 # ems = 0.2 # epsOX = 8.5 # epsS = 8.9 # tOX = 20e-9 Eg = 0.36 epsOX = 20 epsS = 15.15 ems = 0.023 tOX = 3e-9 temperature = 300 W1 = 10e-9 W2 = 8e-9 alpha = fetmodel.alpha_NP(Eg, ems) Cox = fetmodel.Cox_rect(epsOX, tOX, W1, W2) Cc = fetmodel.Cc_rect(epsS, W1, W2) # alpha_D = 0 # alpha_G = 1 print(Cox, Cc) p = fetmodel.parameters_ballistic(alpha=alpha, Ceff=Cox * Cc / (Cox + Cc), ems=ems, W1=W1, W2=W2, nmax=3, mmax=4) p.output() # p = fetmodel.param_ballistic() # p.ems = ems