-
Notifications
You must be signed in to change notification settings - Fork 1
/
example_NiO_OpenMX.sh
executable file
·33 lines (27 loc) · 1.21 KB
/
example_NiO_OpenMX.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
RED='\033[0;31m'
BLUE='\033[0;34m'
GREEN='\033[0;32m'
NC='\033[0m'
JX_ROOT=`pwd`
source ~/.profile # to add Julia to path
printf "${BLUE} 0. Unzip the example ${NC} \n"
printf "${BLUE} examples/NiO_G-AFM.OpenMx ${NC} \n"
cd "examples/NiO_G-AFM.OpenMx"
# Unzip dft result
# nio.scf : OpenMX full Hamiltonian info
# nio.HWR : Wannier Hamiltonian from OpenMX
tar xvf nio_dft_result.tar.gz
# cd "../../"
# obtain J(q) long excution
printf "${BLUE} 1. Calculate J(q) ${NC} \n"
printf "${GREEN} julia -p 4 src/Jx_col_spin_exchange.jl -T examples/NiO_G-AFM.OpenMx/nio_J_openmx.toml ${NC} \n"
printf "${GREEN} 'julia --machine-file <file>' instead of 'julia -p 4' is also possible ${NC} \n"
sleep 2
#julia -p 4 src/Jx_col_spin_exchange.jl -T nio_J_openmx.toml
julia -p 4 $JX_ROOT/src/Jx_col_spin_exchange.jl -T nio_J_openmx.toml
# J(q) -> J(R) short post processing
printf "${BLUE} 2. Transform J(q) -> J(Rij) ${NC} \n"
printf "${GREEN} julia src/Jx_postprocess.jl --cellvectors 2_2_2 --baseatom1 1 --atom2 1,2 --orbital_name all_all examples/NiO_G-AFM.OpenMx/jx2.col.spin_0.0 ${NC} \n"
sleep 2
julia $JX_ROOT/src/Jx_postprocess.jl --cellvectors 2_2_2 --baseatom1 1 --atom2 1,2 --orbital_name all_all jx2.col.spin_0.0