Skip to content
Snippets Groups Projects

Solutions lecture 7

Merged Lars kleyn Winkel requested to merge solutions-lecture-7 into master
Compare and Show latest version
1 file
+ 9
4
Compare changes
  • Side-by-side
  • Inline
+ 9
4
@@ -56,12 +56,17 @@ The dispersion is given by: $$ E = \epsilon \pm \sqrt{t_1^2 + t_2^2 + 2t_1t_2\co
```python
pyplot.figure()
k = np.linspace(-2*pi, 2*pi, 300)
pyplot.plot(k, np.sqrt(5+2*2*np.cos(k)),'b')
k = np.linspace(-2*pi, 2*pi, 400)
pyplot.plot(k, np.sqrt(5+2*2*np.cos(k)),'b',label='2 atom dispersion')
pyplot.plot(k, -np.sqrt(5+2*2*np.cos(k)),'b')
pyplot.plot(k, -3*np.cos(k/2),'r')
pyplot.plot(k, -3*np.cos(k/2),'r',label='1 atom dispersion')
pyplot.plot(k[199:-1:100],-3*np.cos(k[0:99]/2),'r--')
pyplot.xlabel('$ka$'); pyplot.ylabel(r'$E-\epsilon$')
pyplot.xticks([-pi, 0, pi], [r'$ka$', 0, r'$ka$'])
pyplot.xticks([-2*pi, -pi, 0, pi,2*pi], [r'$-2ka$',r'$-ka$', 0, r'$ka$',r'$2ka$'])
pyplot.yticks([-3, 0, 3], [r'$-t_1-t_2$', '$E_0$', r'$t_1+t_2$']);
pyplot.vlines([-pi, pi], -3, 3, linestyles='dashed');
pyplot.legend()
```
Loading