Advertisement
Guest User

Untitled

a guest
Feb 17th, 2020
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.54 KB | None | 0 0
  1. V_unbound=np.array([V_well(i) for i in x])
  2. E,psi_unbound=solve(x,V_unbound)
  3. E /= eV
  4.  
  5.  
  6. # plot probability functions
  7. plt.title('Single well, unbound states', fontsize=20) #THIS SEEMS TOTALLY OFF TOO
  8.  
  9. for i in range(4,7): # Three last states [4,7)
  10.     psi_n = psi_unbound[:,(i-1)]
  11.     #psi_n = psi[:,(i-1)]
  12.     plt.plot(x_nm, psi_n**2, 'rgbmyc'[(i-1)%6], label='$|\Psi_{%d}|^2$ (num)' % (i))
  13. plt.legend()
  14. plt.xlabel('$x$ (nm)',fontsize=15)
  15. plt.ylabel('$|\psi|^2$',fontsize=15)
  16. #plt.xlim((-Nw*(w+g)*pow(10,10),Nw*(w+g)*pow(10,10)))
  17. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement