Skip to content

Commit 6fad420

Browse files
committed
initial clean-up of presentations
Signed-off-by: Nick Papior <nickpapior@gmail.com>
1 parent 505f9f8 commit 6fad420

13 files changed

Lines changed: 58 additions & 25 deletions

File tree

S_03/run.ipynb

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"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",
4343
" Figure out which method you should use in order to calculate the real-space wavefunction. \n",
4444
" 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",
4646
"5. If you **don't** see a warning like this:\n",
4747
"\n",
4848
" info:0: SislInfo: wavefunction: summing 18 different state coefficients, will continue silently!\n",
@@ -51,7 +51,7 @@
5151
" *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",
5252
"6. Try and *play* with the supercell you pass to the `Grid` initialization and plot the wavefunction for different sizes of the grid. \n",
5353
" 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",
5555
" *HINT*: $e^{i\\mathbf k \\cdot \\mathbf R}$"
5656
]
5757
},
@@ -84,9 +84,11 @@
8484
" im = ax.contourf(x, y, grid.grid[:, :, z_index])\n",
8585
" ax.set_xlabel(r'$x$ [Ang]'); ax.set_ylabel(r'$y$ [Ang]')\n",
8686
" # 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",
9092
" fig.colorbar(im);"
9193
]
9294
},

TS_04/run.ipynb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
"metadata": {},
173173
"source": [
174174
"- TranSiesta's method of setting boundary conditions for $N$-electrodes is extremely crude since it only fixes the potential on the electrodes. Instead of letting TranSiesta apply the boundary conditions we can provide an external solution to the Poisson problem with *proper* boundary conditions of the electrodes. \n",
175-
" Below is a method to solve the Poisson problem in Python using `pyamg` (you need to install this `pip install pyamg`, otherwise ask and you'll get the final output). It takes quite some time, so be patient. \n",
175+
" Below is a method to solve the Poisson problem in Python using `pyamg`. It takes quite some time, so be patient. \n",
176176
" You don't need to understand the below script (but I won't hold you back if you want to carefully read it through ;))"
177177
]
178178
},
@@ -260,7 +260,8 @@
260260
" tbtrans -L guess_0.5 -V 0.5:eV -D guess_0.5 RUN.fdf > TBT_guess_0.5.out\n",
261261
" tbtrans -L no_guess_0.5 -V 0.5:eV -D no_guess_0.5 RUN.fdf > TBT_no_guess_0.5.out\n",
262262
" \n",
263-
" Plot the two transmissions and density of states, are they the same?"
263+
" Plot the two transmissions and density of states, are they the same?\n",
264+
"- If you have VMD/XCrySDen installed try out the command-line utility `sgrid` to create a cube file containing the potential profile, [this page](http://zerothi.github.io/sisl/docs/latest/scripts/sgrid.html) may be useful."
264265
]
265266
},
266267
{

install_tutorial.sh

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ esac
104104
# Function for installation on Linux
105105
function linux_install {
106106

107+
# Update lists
108+
sudo apt-get update
109+
107110
# First ensure that the correct packages are installed
108-
for p in gcc gfortran libhdf5-dev libnetcdf-dev libnetcdff-dev python-dev python-tk python-pip python-pip-whl libatlas3-base liblapack3 libfreetype6-dev libpng12-dev
111+
for p in gcc gfortran libhdf5-dev libnetcdf-dev libnetcdff-dev python-dev python-tk python-pip python-pip-whl libatlas3-base liblapack3 libfreetype6-dev libpng-dev
109112
do
110113
sudo apt-get install $p
111114
done
@@ -217,6 +220,16 @@ function install_warning {
217220
sleep 3
218221
}
219222

223+
function install_test_sisl {
224+
echo ""
225+
echo " Will try and run sisl"
226+
echo " import sisl ; print(sisl.geom.graphene())"
227+
python -c "import sisl ; print(sisl.geom.graphene())"
228+
if [ $? -ne 0 ]; then
229+
echo "Failed running sisl, please mail the organizer with the error message (unless some of the installations failed)"
230+
fi
231+
}
232+
220233
if [ $action == install ]; then
221234
# os will be download
222235
case $os in
@@ -229,6 +242,7 @@ if [ $action == install ]; then
229242
macos_install
230243
;;
231244
esac
245+
install_test_sisl
232246

233247
exit 0
234248
fi

presentations/01/electrodes.tex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ \subsection{Electrodes}
311311
\;
312312
\sum_{
313313
\mathclap{
314-
\substack{j\\
314+
\substack{j=1\\
315315
k_j=k_n+2\pi\frac{j-1}{nR}
316316
}
317317
}
@@ -324,15 +324,15 @@ \subsection{Electrodes}
324324
&
325325
\cdots
326326
&
327-
e^{-i nk_jR}
327+
e^{-i (n-1)k_jR}
328328
\\
329329
e^{i k_jR}
330330
&
331331
1
332332
&
333333
\cdots
334334
&
335-
e^{-i (n-1)k_jR}
335+
e^{-i (n-2)k_jR}
336336
\\
337337
\vdots
338338
&
@@ -342,10 +342,10 @@ \subsection{Electrodes}
342342
&
343343
\vdots
344344
\\
345-
e^{i nk_jR}
346-
&
347345
e^{i (n-1)k_jR}
348346
&
347+
e^{i (n-2)k_jR}
348+
&
349349
\cdots
350350
&1
351351
\end{bmatrix}
@@ -362,7 +362,7 @@ \subsection{Electrodes}
362362
\framesubtitle{Bloch's theorem}
363363

364364
\begin{itemize}
365-
\item Atomic ordering is important, see sisl \texttt{Geometry.repeat} for details
365+
\item Atomic ordering is important, see sisl \texttt{Geometry.tile} for details
366366
\item $k$-point sampling is important, \emph{has} to sample equivalently
367367
\end{itemize}
368368

presentations/01/green.tex

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,20 +93,26 @@ \subsection{Rules of integration}
9393
\begin{tikzpicture}[my fill/.style={fill=good},
9494
font=\footnotesize]
9595
\begin{axis}[width=.7\textwidth,height=3.5cm,%
96+
my eta/.style={forget plot, only marks, mark=*, opacity=0.9, mark size=2pt},
9697
xmin=-1,xmax=1,ymin=0,xlabel=Energy]
9798
\addplot[black,smooth,my fill] table {../data/lorentzian.dat};
9899
\addlegendentry{$\mathfrak{L}$}
99100
\draw[<->] (axis cs:-0.05, {.5/0.05}) -- node[below=5pt] {$2\eta$}
100101
(axis cs:0.05,{.5/0.05});
101102
\node[my fill] at (axis cs:0.5, 10) {$\int=\pi$};
103+
\only<4->{
104+
\addplot[my eta,color=good] table {../data/lorentzian_1o5eta.dat};
105+
\addplot[my eta,color=bad] table {../data/lorentzian_5eta.dat};
106+
\addplot[my eta,color=ok] table {../data/lorentzian_eta.dat};
107+
}
102108
\end{axis}
103109
\end{tikzpicture}
104110
\end{center}
105111
}
106112

107113
\end{block}
108114

109-
\uncover<3>{\hfill\hyperlink{DOS<3>}{\beamergotobutton{Return to DOS}}}
115+
\uncover<3->{\hfill\hyperlink{DOS<3>}{\beamergotobutton{Return to DOS}}}
110116

111117
\end{frame}
112118

presentations/01/talk.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
\graphicspath{{fig/}}
55
\usepackage[export]{adjustbox}
66

7-
\institute[2017, Nick R. Papior; DTU Nanotech]{\begin{tikzpicture}
7+
\institute[2018, Nick R. Papior; DTU Nanotech]{\begin{tikzpicture}
88
\node[shape=rectangle split,rectangle split parts=2,anchor=base] at (0,0)
99
{DTU: sisl, TBtrans and TranSiesta workshop};
1010
\end{tikzpicture}}
1111

12-
\date{25. October 2017}
12+
\date{20. November 2018}
1313
\title{Non-equilibrium Green function theory: 1 \& 2}
1414
\author{Nick R. Papior}
1515

presentations/02/negf.tex

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,9 @@ \subsection{Numeric integration}
283283

284284
\end{frame}
285285

286+
287+
\pgfplotsset{my c/.style={/tikz/color=#1, /tikz/fill=#1}}
288+
286289
\begin{frame}
287290
\frametitle{Numeric integration}
288291
\framesubtitle{Algorithms}
@@ -309,11 +312,11 @@ \subsection{Numeric integration}
309312
xlabel={Real Energy [eV]},
310313
ylabel={Imaginary Energy [eV]}]
311314
\only<1>{
312-
\addplot+[red!70!black] table {../data/siesta_30_simpson.dat};}
315+
\addplot+[my c=red!70!black] table {../data/siesta_30_simpson.dat};}
313316
\only<2>{
314-
\addplot+[blue!70!black] table {../data/siesta_30_legendre.dat};}
317+
\addplot+[my c=blue!70!black] table {../data/siesta_30_legendre.dat};}
315318
\only<3->{
316-
\addplot+[green!70!black] table {../data/siesta_30_legendre_right.dat};}
319+
\addplot+[my c=green!70!black] table {../data/siesta_30_legendre_right.dat};}
317320
\end{axis}
318321
\end{tikzpicture}
319322
\end{center}

presentations/02/talk.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
\graphicspath{{fig/}{fig-defence/}{paper-fig/}}
44
\usepackage[export]{adjustbox}
55

6-
\institute[2017, Nick R. Papior; DTU Nanotech]{\begin{tikzpicture}
6+
\institute[2018, Nick R. Papior; DTU Nanotech]{\begin{tikzpicture}
77
\node[shape=rectangle split,rectangle split parts=2,anchor=base] at (0,0)
88
{DTU: sisl, TBtrans and TranSiesta workshop};
99
\end{tikzpicture}}
1010

11-
\date{26. October 2016}
11+
\date{20. November 2018}
1212
\title{TBtrans/TranSiesta for smarties}
1313
\author{Nick R. Papior}
1414

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ \subsection{The omnipotent pivoting scheme?}
272272
\framesubtitle{Analyzing the sparsity pattern}
273273

274274
\begin{center}
275-
\texttt{transiesta -fdf TS.Analyze RUN.fdf}
275+
\texttt{siesta -fdf TS.Analyze RUN.fdf}
276276
\end{center}
277277

278278
\begin{itemize}[<+->]

0 commit comments

Comments
 (0)