📄 manual_3.93a.lyx
字号:
#LyX 1.3 created this file. For more info see http://www.lyx.org/\lyxformat 221\textclass book\begin_preamble%\documentstyle[12pt,twoside]{article}\textheight 22 cm\textwidth 15.5cm\evensidemargin 1.0 cm\oddsidemargin 1.0 cm\topmargin -1.0 cm\pretolerance=5000\tolerance=10000\hbadness=5000\vbadness=2000\brokenpenalty=5000\hfuzz=0.5pt\end_preamble\options epsf\language english\inputencoding default\fontscheme default\graphics default\paperfontsize 12\spacing single \papersize Default\paperpackage a4\use_geometry 1\use_amsmath 0\use_natbib 0\use_numerical_citations 0\paperorientation portrait\leftmargin 2cm\topmargin 2cm\rightmargin 2cm\bottommargin 2cm\secnumdepth 3\tocdepth 3\paragraph_separation indent\defskip medskip\quotes_language english\quotes_times 2\papercolumns 1\papersides 1\paperpagestyle default\layout Title\series bold \emph on LEV00\series default \emph default & \series bold \emph on TETR\series default \emph default : \begin_inset ERTstatus Collapsed\layout Standard\backslash \backslash \end_inset user-friendly packages for DFT codes \family typewriter \series bold \begin_inset ERTstatus Collapsed\layout Standard\backslash \backslash \end_inset \family default \emph on VASP\emph default /\emph on SIESTA\emph default /\emph on CASTEP\series default \emph default \layout AuthorL. N. Kantorovich \layout StandardThis is a documentation for a package of utilities which have been written (initially at Keele and then continued in London at UCL and KCL) as pre- and post-processing tools for DFT codes working with periodic boundary conditions. At the beginning, DFT codes \series bold \emph on CASTEP\series default \emph default and \series bold \emph on CETEP\series default \emph default were supported. At a later stage a complete support for the \series bold \emph on VASP\series default \emph default code has also been added. Then, the whole structure of the two codes has been reshuffled in order to allow for a more flexible support for other codes and input/output formats. Recently, an almost complete support for the \series bold \emph on SIESTA\series default \emph default code has also been added. \layout StandardThe applications (i.e. offered functionality) include:\layout Itemizevarious modifications of the system geometry (e.g. changing lattice vectors, breeding the system (supercells), merging geometries from several files of different formats (e.g. adding a molecule from another file to the surface), constructing a surface cell from a bulk one, etc.); \layout Itemizeconstruction of molecular clusters with specific boundary conditions out of a bulk unit cell; \layout Itemizea powerful engine for phonons calculations (molecules and crystals); \layout Itemizecalculations of the electronic Density of States (DOS), \layout Itemizeplotting of charge and spin total and partial densities, calculating atomic charges, saving the \family typewriter cube\family default format file for \series bold \emph on gOpenMol\series default \emph default contour plotting, etc.\layout Itemize\align left an intelligent search for surface states, exploration of the (partial) electronic (spin) density\layout Itemize\align left and a lot more!\layout Standard\begin_inset LatexCommand \tableofcontents{}\end_inset \layout ChapterIntroduction\layout SectionWhat is this all about?\layout StandardMost of the modern condensed matter computer codes implement \emph on periodic boundary conditions\emph default (PBC). These are used not only in calculating the crystal bulk, but also for calculating single molecules, surfaces, molecules adsorbed on surfaces, and so on. Care is needed when working in PBC, especially if complex structures are to be modelled, such e.g. as steps, kinks, dislocations. On the other hand, a calculation of the electronic DOS or previewing electronic densities require specific tools that understand PBC and the way the DFT codes output their data. \layout StandardMany workers in the field have their own little routines that do the job. I also started from those. However, I quickly realised that I cannot remember what was in each of the routines let along their names, input file formats, etc. That is why it became apparent that there is a need for a single user-friendly code that would do everything you might want in a way that would not require input files and remembering how to run it, would understand the input and output files of the DFT codes and would have a lot of useful features.\layout StandardInitially, I combined all my little codes into a package that included \begin_inset Formula $\mathbf{k}$\end_inset -point and unit cell generator and a DOS calculator. At the time, only the \series bold \emph on CASTEP\series default \emph default code was supported. As the new features being developed and new problems arose, a lot of useful functrionality have been added. Most importantly, the interface in the package codes has been completely rewritten to allow for different formats. This way support for \series bold \emph on VASP\series default \emph default and \series bold \emph on SIESTA\series default \emph default has been allowed and was eventually added. I can now say that the real purpose of the package is to accompany any grid based plane wave or local basis set DFT code that utilise periodic boundary conditions, the codes like thos ementioned above. \layout StandardThe two most important codes in the package are \series bold \emph on tetr\series default \emph default and \series bold \emph on lev00\series default \emph default . The first one is mainly to be used for\emph on pre-processing\emph default of the input data, e.g. complex modifications of your geometry input files, including the \begin_inset Formula $\mathbf{k}$\end_inset -points, i.e. \emph on before\emph default a DFT run. The second code is used for the \emph on post-processing\emph default , i.e. calculating electronic DOS and charge density maps \emph on after \emph default the DFT run. As one particular application has been recently added, namely the phonon calculation engine, the \series bold \emph on tetr\series default \emph default has gone long way beyond its initial simple pre-processing purpose and now does both things: it creates the necessary input files for \series bold \emph on VASP\series default \emph default and \series bold \emph on SIESTA\series default \emph default , and then, after the calculation is performed with those codes, the \series bold \emph on tetr\series default \emph default is run again to calculate the frequencies, eigenvectors and phonon DOS.\layout StandardThe most sophisticated support is provided for the old \series bold CASTEP/CETEP\series default code. These are now redundant and their support was stopped a while ago. Presently, \series bold \emph on VASP\series default \emph default and \series bold \emph on SIESTA\series default \emph default are supported only. Still, at the end of this manual some information on CASTEP is also provided (may be not working though), mainly for historical purposes.\layout SectionMenus\begin_inset LatexCommand \label{sec:Menus}\end_inset \layout StandardThe main codes \series bold \emph on tetr\series default \emph default and \series bold \emph on lev00\series default \emph default , as well as some others, have a special tex-based interface (Text User Interface, TUI) that reminds menus. All menus work in a very simple and straightforward fashion: every menu item has either a number or a symbol. At each point in time you see on the screen the whole menu. \layout StandardTo execute a particular option you press the number (symbol) corresponding to the option required paying special attention to small/capital characters if present, and then press Enter. Normally this would cause some kind of calculation and the original menu would reappear (it may be different now!), so that something else can be done. In some other cases choosing an option invokes a different menu (sub-menu) or may change some settings - you should notice it when the original menu reappears!\layout Standard\added_space_bottom defskip Many menus contain several parts. Usually, the upper part of the menus contain the executable bits, the middle - some information options, while at the bottom of the menu one can find various options that control the other options of the menu (the settings). An example of a typical menu is given below (it is, in fact, the main menu of \series bold \emph on tetr\series default \emph default ):\layout Standard\family typewriter \size scriptsize /---------------------------------------------------\backslash \backslash \layout Standard\family typewriter \size scriptsize |.................... MAIN MENU:.....................|\layout Standard\family typewriter \size scriptsize \backslash \backslash ---------------------------------------------------/\layout Standard\family typewriter \size scriptsize >>>>>>>>>>>>> Create unit cell from scratch <<<<<<<<\layout Standard\family typewriter \size scriptsize [current geometry will be lost] \layout Standard\family typewriter \size scriptsize B. Generate supercell geometry from scratch\layout Standard\family typewriter \size scriptsize >>>>>>>>>>>>>>>>> Cluster construction <<<<<<<<<<<<\layout Standard\family typewriter \size scriptsize Cl. Build up a cluster from the lattice\layout Standard\family typewriter \size scriptsize >>>>>>>>>>>>> Geometry file already exists <<<<<<<<<<\layout Standard\family typewriter \size scriptsize M. Complex cell modifications\layout Standard\family typewriter \size scriptsize KP. k-points generation \layout Standard\family typewriter \size scriptsize >>>>>>>>>>>>>>>>> Coulomb potential <<<<<<<<<<<<<<<\layout Standard\family typewriter \size scriptsize Ew. Coulomb potential inside the unit cell\layout Standard\family typewriter \size scriptsize >>>>>>>>>>>>>>> Calculation of phonons <<<<<<<<<<<<<\layout Standard\family typewriter \size scriptsize Vm. Vibrations of molecules => preparation\layout Standard\family typewriter \size scriptsize Vc. Vibrations of crystals (point group) => preparation\layout Standard\family typewriter \size scriptsize Vs. Vibrations of crystals (space group) => preparation\layout Standard\family typewriter \size scriptsize V2. Vibrations => calculation [normal modes]\layout Standard\family typewriter \size scriptsize V3. Vibrations => application [DOS, masses]\layout Standard\family typewriter \size scriptsize >>>>>>>>>>>> Representation/visualisation <<<<<<<<<<<\layout Standard\family typewriter \size scriptsize Cm. Compare geometry with the one in another file\layout Standard\family typewriter \size scriptsize D. Distances between atoms\layout Standard\family typewriter \size scriptsize Ch. Check specified point in the cell\layout Standard\family typewriter \size scriptsize Sb. Save in a box running across adjacent cells\layout Standard\family typewriter \size scriptsize >>>>>>>>>>>>>> Potential energy surface <<<<<<<<<<<<<\layout Standard\family typewriter \size scriptsize Mv. PES: move atoms keeping the symmetry\layout Standard\family typewriter \size scriptsize ---------- g e n e r a l \SpecialChar ~\SpecialChar ~s e t t i n g s -----------\layout Standard\family typewriter \size scriptsize XY. Format of <geom.xyz> is set to Xmol\layout Standard\family typewriter \size scriptsize R. Read geometry from another file\layout Standard\family typewriter \size scriptsize S. Save\layout Standard\family typewriter \size scriptsize Q. Quit.\layout Standard\added_space_bottom defskip \family typewriter \size scriptsize Specify the character and press ENTER ------->\layout StandardWe shall be using a bold font for the menu options in what follows.\layout SectionMiscellaneous\layout StandardAt the moment the package can be used on many computers where graphical package \series bold \emph on GNUPLOT\family typewriter \series default \emph default \family default is available. Some tricks employed in the code (like the internal write/read statements, for example, or reading from the command line) which make the code user-friendly, may be platform-dependent, but these should be ok in Linux. Make files are available for Linux. \layout StandardI recommend to put all the source in the directory \family typewriter \i \~{/}TOOLS\family default in your home directory and all necessary scripts (see directory \family typewriter SCRIPTS\family default ) - in your \family typewriter \i \~{/}bin\family default directory. If you have done this, the scripts may work straight away. \layout Chapter\shape italic \emph on Utility \emph default tetr\layout SectionWhat it can do\layout Standard\series bold \emph on tetr\series default \emph default is an interactive menu-driven program which enables you: \layout Itemizecan read in existing input files from \series bold \emph on VASP\series default \emph default , \series bold \emph on SIESTA\series default \emph default , old \series bold \emph on CASTEP\series default \emph default , \family typewriter xyz\family default format\layout Itemizecan save the current geometry in the same formats\layout Itemizecreates a geometry file from scratch or modifies an existing geometry in various ways\layout Itemize
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -