OpenMX useful commands:
scf.restart on
scf.fixed.grid x y z ( e.g. scf.fixed.grid 0 0 0 )
scf.Kgrid kx ky kz
scf.energycutoff 500 # Ryd / scf.Ngrid nx ny nz
HS.fileout on (for printing out *.scfout file)
scf.SpinPolarization NC # On|Off|NC
scf.SpinOrbit.Coupling On # On|Off, default=off
level.of.stdout 1 # default=1 (1-3)
level.of.fileout 0 # default=1 (0-2), no printing *.cube file -> 0
DATA.PATH /home/***/openmx/openmx3.9/DFT_DATA19
Quantum Espresso:
Si example: (1) scf.in, (2) ph.in, (3) q2r.in, (4) matdyn.in - a, b, c, (5) *.plotband, (6) *.xmgr.gnuplot.
Force constants for reference:
with LO-TO splitting: sic.666.fc, gaas.444.fc.
My Notes:
Phonons: The unit of phonon frequency in phonopy code (or use --factor=xxx)
BoltzTraP for OpenMX: Si example.
OpenMX Modified Codes (3.8.5):
Output accurate cell vectors: MD_pac.c (for 3.8.5) / MD_pac_PrintAccurateCoordinates.c (for 3.9.9), e.g. MD_pac.txt .
Output accurate atomic fractional coordinates: Make_FracCoord.c, e.g. Make_FracCoord.txt .
Output final atomic coordinates with 15 digits in *.md2 file: iterout.c .
1 Hartree = 27.2113845 eV in bandgnu13.c.
Shift_K_Point = 0.000001 (i.e. 1e-6). A k-point is shifted about (+1e-6, -1e-6, +2e-6) automatically at each calculation.
Overlap matrix in electric polarization expanded with high-order terms of Taylor series
Phonon dispersion with LO-TO splitting (v3.7.10/v3.8.1/v3.8.3)
Example - Band structure by DC-LNO method: (1) Si2-normal.dat, (2) Si2-LNO.dat, (3) Figure.
Modify " bandgnu_20250217_YTLee.c " for plotting electronic band structure:
The modified code for plotting a band structure in "bandgnu_20250217_YTL.c"
OpenMX input files: ( YTL's Optimized Structure Database (*.dat) , GitHub )
Nomd calculation : Graphene.dat
Optimization : Graphene_opt.dat
Band structures : Graphene.dat
Density of States : Graphene.dat
Optical properties : Graphene_cddf.dat
Unfolding optical conductivity : Si2_1x1x1.dat, Si2_2x2x2.dat
Codes for output files of unfolding optical conductivity in OpenMX:
Density Reader for OpenMX cube file or *.cube:
Obtain STM images along a direction from a *.cube file.
Example:
Read a *.cube file to get 3D data, i.e. data[# of x-grid][# of y-grid][# of z-grid], and then print out data into a file.
Draw a simulated STM image by using Gnuplot to plot 2D data[x-grid][y-grid] at a selected z-grid.
How to use "zheev" in LAPACK library for diagonalization? ( Example , Reference )
Command: gcc abc.c -o abc -lm -llapack or gcc ex_zheev.c -o ex_zheev -L/home/ytl/software/lapack-3.9.0 -llapack -lrefblas -ltmglib -lm -lgfortran
How to use FFTW3 library: Example .
Command: gcc *.c -o * -lfftw3 -lm
Anaconda Installation in macOS
Fermi-Dirac Distriution at several temperatures :
T = 300 K : 0.025851999786 eV
T = 200 K : 0.017234666524 eV
T = 100 K : 0.008617333262 eV
T = 50 K : 0.004308666631 eV
T = 40 K : 0.0034469333048 eV
T = 30 K : 0.0025851999786 eV
T = 20 K : 0.0017234666524 eV
T = 10 K : 0.0008617333262 eV
T = 5 K : 0.0004308666631 eV
T = 2 K : 0.00017234666524 eV
T = 1 K : 0.00008617333262 eV
Fermi-Dirac Distribution at 300 K (red) and its derivative (blue).
Gnuplot sample:
set size ratio 1.5
set zeroaxis
set grid
set ylabel "Energy (eV)"
set xtics ("{/Symbol G}" 0, "M" 0.5774, "K" 0.9107, "{/Symbol G}" 1.5773, "A" 1.7145) out
set ytics 1 out
set mytics 2
set xrange [0:1.7145]
set yrange [-6:3]
FermiL = 9.1221
p '*.dat' u 1:($2-FermiL) w l lw 1 lc rgb "#0000ff" notitle
pause -1
# {/:Italic xxx} = make 'xxx' italic
Simple Tools:
K to eV: KtoeV.py
Output strings: command lines ( by online python )
An example:
for i in range(41,85,1):
print("mpirun -np 8 /home/username/openmx/openmx3.9/source/openmx phonon_0"+(str)(i)+" > phonon_0"+(str)(i)+".log")