Skip to content

Commit

Permalink
Update userguide for plotting of spinors
Browse files Browse the repository at this point in the history
  • Loading branch information
jryates committed Dec 27, 2017
1 parent 9511952 commit d9b29df
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 13 deletions.
22 changes: 19 additions & 3 deletions doc/user_guide/files.tex
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ \section{{\tt UNKp.s}}
space grid, indexed by k-point \verb#p# (from 1 to \verb#num_kpts#)
and spin \verb#s# (`1' for `up', `2' for `down').


The name of the wavefunction file is assumed to have the form:

\begin{verbatim}
Expand All @@ -487,14 +488,29 @@ \section{{\tt UNKp.s}}
\verb#ngz#), the k-point number \verb#ik# and the total number of
bands \verb#num_band# in the file. The full file will be read by \wannier\ as:

\begin{verbatim}
read(file_unit) ngx,ngy,ngz,ik,nbnd
\begin{verbatim}
read(file_unit) ngx,ngy,ngz,ik,nbnd
do loop_b=1,num_bands
read(file_unit) (r_wvfn(nx,loop_b),nx=1,ngx*ngy*ngz)
end do
\end{verbatim}

The file can be in formatted or unformatted style, this is controlled
If \verb#spinors#=\verb#true# then \verb#s#=`NC', and the name of the wavefunction file is assumed to have the form:
\begin{verbatim}
write(wfnname,200) p
200 format ('UNK',i5.5,'.NC')
\end{verbatim}
and the file will be read by \wannier\ as:
\begin{verbatim}
read(file_unit) ngx,ngy,ngz,ik,nbnd
do loop_b=1,num_bands
read(file_unit) (r_wvfn_nc(nx,loop_b,1),nx=1,ngx*ngy*ngz) ! up-spinor
read(file_unit) (r_wvfn_nc(nx,loop_b,2),nx=1,ngx*ngy*ngz) ! down-spinor
end do
\end{verbatim}


All UNK files can be in formatted or unformatted style, this is controlled
by the logical keyword \verb#wvfn_formatted#.


Expand Down
31 changes: 21 additions & 10 deletions doc/user_guide/parameters.tex
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,12 @@ \section{{\tt seedname.win} File\label{sec:seednamefile}}
A logical keyword can be set to {\tt true} using any of the following
strings: {\tt T}, {\tt true}, {\tt .true.}.

For further examples see Section~\ref{winfile} and the the \wannier\ Tutorial.

For further examples see Section~\ref{winfile} and the the \wannier\ Tutorial.

\section{Keyword List}
\label{parameter_data}

\begin{table}
\begin{table}[b]
\begin{center}
\begin{tabular}{|c|c|p{6cm}|}
\hline
Expand Down Expand Up @@ -101,6 +100,7 @@ \section{Keyword List}
\end{center}
\end{table}

\clearpage

\begin{table}
\begin{center}
Expand Down Expand Up @@ -236,9 +236,9 @@ \section{Keyword List}



\begin{table}
\begin{center}
\begin{tabular}{|c|c|p{6cm}|}
\begin{longtable}{|c|c|p{6cm}|}
%\begin{center}
%\begin{tabular}{|c|c|p{6cm}|}
\hline
Keyword & Type & Description \\
& & \\
Expand All @@ -253,7 +253,8 @@ \section{Keyword List}
WF \\
{\sc wannier\_plot\_mode } & S & Mode in which to plot the
WF, molecule or crystal \\
{\sc wannier\_plot\_radius } & R & Cut-off radius of WF* \\
{\sc wannier\_plot\_radius } & R & Cut-off radius of WF* \\
{\sc wannier\_plot\_spinor\_mode } & S& Quantity to plot for spinor WF\\
{\sc bands\_plot } & L & Plot interpolated band structure \\
{\sc kpoint\_path } & P & K-point path for the interpolated band structure \\
{\sc bands\_num\_points } & I & Number of points along the first
Expand Down Expand Up @@ -301,15 +302,15 @@ \section{Keyword List}
%smearing for the dos plot \\
%{\sc dos\_plot\_format } & S & Format of the dos plot \\
\hline
\end{tabular}
%\end{tabular}
\caption[Parameter file keywords controlling plotting.]
{{\tt seedname.win} file keywords controlling the plotting. Argument types
are represented by, I for a integer, R for a real number, P for a
physical value, L for a logical value and S for a text string. * Only
applies when {\sc wannier\_plot\_format} is {\tt cube}.}
\label{parameter_keywords6}
\end{center}
\end{table}
%\end{center}
\end{longtable}



Expand Down Expand Up @@ -1145,6 +1146,16 @@ \section{Post-Processing}

The default value is 3.5.


\subsection[wannier\_plot\_spinor\_mode]{\tt character(len=20) :: wannier\_plot\_spinor\_mode}
If $\verb#spinors#=\verb#true#$ then this parameter controls the
quantity to plot. For a spinor WF with components $[\phi,\psi]$ the quatity plotted is
\begin{itemize}
\item[{\bf --}] \verb#total# (default). $\sqrt{[|\phi|^2+|\psi|^2}$
\item[{\bf --}] \verb#up#. $|\phi|\times sign(Re\{\phi\})$
\item[{\bf --}] \verb#down#. $|\psi|\times sign(Re\{\psi\})$
\end{itemize}

\subsection[bands\_plot]{\tt logical :: bands\_plot}

If $\verb#bands_plot#=\verb#true#$, then the code will calculate the band
Expand Down
1 change: 1 addition & 0 deletions doc/user_guide/user_guide.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
\usepackage{footnote}
\usepackage{amsbsy}
\usepackage{graphicx}
\usepackage{longtable}
\usepackage{fancyhdr}
\usepackage[T1]{fontenc} % important for having searchable underscores
\usepackage{bm}
Expand Down

0 comments on commit d9b29df

Please sign in to comment.