|
42 | 42 | "4. Read the entry about the `EigenstateElectron` in the [sisl](http://zerothi.github.io/sisl/docs/latest/api-generated/sisl.physics.html#electrons-electron). \n", |
43 | 43 | " Figure out which method you should use in order to calculate the real-space wavefunction. \n", |
44 | 44 | " Use the below method (`plot_grid`) to plot a cut through the wavefunction grid.\n", |
45 | | - " *HINT*: this may be a useful grid `grid = Grid(0.01, sc=H.geometry.sc)`\n", |
| 45 | + " *HINT*: this may be a useful grid `grid = Grid(0.05, sc=H.geometry.sc)`\n", |
46 | 46 | "5. If you **don't** see a warning like this:\n", |
47 | 47 | "\n", |
48 | 48 | " info:0: SislInfo: wavefunction: summing 18 different state coefficients, will continue silently!\n", |
|
51 | 51 | " *HINT*: If you have VMD/XCrySDen on your laptop it may be *fun* to plot the real-space quantities using cube files, if you want, figure out how to save the `Grid` into a cube/xsf file.\n", |
52 | 52 | "6. Try and *play* with the supercell you pass to the `Grid` initialization and plot the wavefunction for different sizes of the grid. \n", |
53 | 53 | " What do you see for increasing size of grids? Are there any periodicites, if so, what is the periodicity and why?\n", |
54 | | - "7. Calculate the eigenstates such that the wavefunction has a periodicity of $3\\times2$ along the first/second lattice vector. \n", |
| 54 | + "7. Calculate the eigenstates such that the wavefunctions has a periodicity of $3$ along the first lattice vector and $2$ along the second lattice vector (only plot one of the eigenstates) \n", |
55 | 55 | " *HINT*: $e^{i\\mathbf k \\cdot \\mathbf R}$" |
56 | 56 | ] |
57 | 57 | }, |
|
84 | 84 | " im = ax.contourf(x, y, grid.grid[:, :, z_index])\n", |
85 | 85 | " ax.set_xlabel(r'$x$ [Ang]'); ax.set_ylabel(r'$y$ [Ang]')\n", |
86 | 86 | " # Also plot the atomic coordinates\n", |
87 | | - " xyz = grid.geometry.xyz\n", |
88 | | - " for ax in axs:\n", |
89 | | - " ax.scatter(xyz[:, 0], xyz[:, 1], 50, 'k', alpha=.6)\n", |
| 87 | + " try:\n", |
| 88 | + " xyz = grid.geometry.xyz\n", |
| 89 | + " for ax in axs:\n", |
| 90 | + " ax.scatter(xyz[:, 0], xyz[:, 1], 50, 'k', alpha=.6)\n", |
| 91 | + " except: pass\n", |
90 | 92 | " fig.colorbar(im);" |
91 | 93 | ] |
92 | 94 | }, |
|
0 commit comments