Sunteți pe pagina 1din 2

Cygwin (For Windows only) and Xcrysden need to be installed for band structure

calculation and plotting. Cygwin is a virtual Linux platform on Windows, from which
you can connect to high-performace comupters. Xcrysden is a plotting software
which can plot crystal structure, Fermi surface, etc.

Install cygwin (Windows users only):

You can get it from http://www.cygwin.com, near the bottom there is a link
that says “Install or update now!”
You'll get a choice of packages to install. Things not to miss:
emacs, pico, vi (these are text editors)
gnuplot (you might want to plot things)
openssh (need this to connect to severs)
all the X stuff (this is needed for graphics, i.e. plotting)
If you miss any packages, don't worry. You can install them later
0 After installing, find and run xterm (C:\cygwin\Cygwin.bat).

Linux commands (skip this if you know already)


0 pwd - view the name of the current directory you are in
1 ls - list files and subdirectories in the current directory
2 mkdir dir_name - make a new directory
3 cd dir_name - change directory from current directory to another.
4 more file_name - view the content of a file
5 cp file_1 file_2 - copy file_1 to file_2

To be able to run gnuplot or other plotting software from other machines,


you will need to run ssh as 'ssh -X'. The -X allows for graphics to be sent
back and forth.

.tar files are extracted using `tar xvf filename`, .tar.gz files are extracted
using `tar zxvf filename`

Install Xcrysden:

0 Download it from http://www.xcrysden.org/Download.html  
0 Pick the version appropriate to your OS and download. It is convenient 
to use “wget DOWNLOAD_LINK” 
1 If you're running linux, get the statically linked one, and for 
installation follow the directions in 
http://www.xcrysden.org/doc/install.html
2 Follow the instructions under “A bit longer installation 
instructions.” It's important that you run the xcConfigure 
script and that you source .bashrc or .cshrc file after you're 
done
3 Under windows, it requires CYGWIN. Download it and extract 
it the .tar file. Follow the same instruction of installation.
0                                You can check if it is successfully installed by typing 
“xcrysden” and checking it starts or not.

Xcrysden examples:

1
2 Download http://www.qtp.ufl.edu/~wu/HP_solidstate/FeO2.tar.gz
3 Unpack it using tar zxvf FeO2.tar.gz
4 Start xcrysden (you should just be able to type it) in the newly created directory
5 Go to File → Open Structure → Open XSF File and open ch.plot
6 You should see a box with a linear FeO2 molecule in it. Play around with the 
various settings, try changing the colors, making axes, zoom in, etc.
7 Go to Tools → Data Grid and hit ok. XcrySDen will import the charge density
8 On Tab 1, have XC plot an isosurface. Try a number of values.

Download http://www.qtp.ufl.edu/~wu/HP_solidstate/copper.tar.gz
  Unpack it by tar zxvf copper.tar.gz . Three files, copper.xsf, copper.bxsf and 
Cu.dos. Copper.xsf contain crystal structure and charge density. Repeat 
plotting charge density of the previous system. 
  Copper.bxsf has Fermi surface information. Load Open BXSF File and open
copper.bxsf. Hit OK for Fermi energy. And you can see that Fermi energy
only cross band number 6. So choose number 6, and hit Selected, and you
can see Fermi surface of copper.
Use gnuplot to plot DOS of copper by p ‘Cu.dos’ u 1:2 w l . We can see thatat
Fermi energy (12.14 eV), DOS is not zero.

9
10 For something more interesting, try plotting the data found in 
http://www.qtp.ufl.edu/~wu/HP_solidstates/ildos_3d_pm.xcrysden . This 
is the Fermi level density of states for BaFe2As2 (a superconductor)

S-ar putea să vă placă și