-
Notifications
You must be signed in to change notification settings - Fork 0
/
run.sh
134 lines (90 loc) · 3.98 KB
/
run.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
# Running KaiEDJ
# 0. Installation
julia setup.jl
WORKDIR=$PWD
JULIA_PROJECT_PATH="./envs/KEDJ"
# JULIA_PROJECT_PATH="~/envs_julia/dmftjx_julia-1.10.3"
# 1. La2CuO4 Example
cd examples/La2CuO4
# 1-1. La2CuO4 Example: ED-DMFT
# 1-1-a. Running ED-DMFT
cd ED_DMFT_SCF/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/kaiedj.jl -T LCO_kaiedj_eddmft.toml 2>&1 | tee log
cd ../../
# 1-1-b. Plotting and saving the ED-DMFT spectral-function result in output_dmft_lco.png
cd ED_DMFT_SCF/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/plot_spectral_functions.jl
open output_dmft_lco.png || evince output_dmft_lco.pdf
cd ../../
# 1-2. La2CuO4 Example: DMFT+MFT
# 1-2-a. Preparation for DMFT+MFT (Files are already prepared in this file-set)
cd ED_DMFT_SCF/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/prepare_mft_from_dmft.jl ../../DMFT_MFT/in
cd ../../
# 1-2-b. Edit LCO_kaiedj.toml : Calculation_mode="DMFT+MFT"
cp $WORKDIR/scripts/LCO_kaiedj_dmftmft.toml DMFT_MFT/in/LCO_kaiedj_dmftmft.toml
# 1-2-c. Running DMFT+MFT
cd DMFT_MFT/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/kaiedj.jl -T LCO_kaiedj_dmftmft.toml 2>&1 | tee log
cd ../../
# 1-2-d. Plotting and saving the DMFT+MFT result in output_mft_lco.png
cd DMFT_MFT/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/plot_j_lco.jl
open output_dmftmft_lco.png || evince output_dmftmft_lco.pdf
cd ../../
# 1-3. La2CuO4 Example: Spinwave
# 1-3-a. Preparation for Spinwave (Files are already prepared in this file-set)
cd DMFT_MFT/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/prepare_magnon.jl ../../SPINWAVE/in
cd ../../
# 1-3-b. Edit LCO_kaiedj.toml : Calculation_mode="Spinwave"
cp $WORKDIR/scripts/LCO_kaiedj_spinwave.toml SPINWAVE/in/LCO_kaiedj_spinwave.toml
# 1-3-c. Edit kpath for the spinwave dispersion
cp $WORKDIR/scripts/kpath_spinwave_lco SPINWAVE/in/kpath
# 1-3-d. Running Spinwave calculation
cd SPINWAVE/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/kaiedj.jl -T LCO_kaiedj_spinwave.toml 2>&1 | tee log
cd ../../
# 1-3-e. Plotting and saving the Spinwave result in output_spinwave_lco.png
cd SPINWAVE/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/plot_spinwave_lco.jl
open output_spinwave_lco.png || evince output_spinwave_lco.pdf
cd ../../
# 2. Fe-bcc Example
cd $WORKDIR/examples/Fe/
# 2-1. Fe-bcc Example: QMC-DMFT (Results already obtained externally from eDMFT are prepared in this file-set)
# (Omitted)
# 2-2. Fe-bcc Example: DMFT+MFT
# 2-2-a. Preparation for DMFT+MFT (Files are already prepared in this file-set)
cd QMC_DMFT_SCF/out/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/prepare_mft_from_dmft.jl ../../DMFT_MFT/in
cd ../../
# 2-2-b. Edit .toml : Calculation_mode="DMFT+MFT"
cp $WORKDIR/scripts/fe_kaiedj_dmftmft.toml DMFT_MFT/in/fe_kaiedj_dmftmft.toml
# 2-2-c. Running DMFT+MFT
cd DMFT_MFT/in
julia --project=$JULIA_PROJECT_PATH $WORKDIR/kaiedj.jl -T fe_kaiedj_dmftmft.toml 2>&1 | tee log
cd ../../
# 2-2-d. Plotting and saving the DMFT+MFT result in output_mft_fe.png
cd DMFT_MFT/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/plot_j_fe.jl
open output_dmftmft_fe.png || evince output_dmftmft_fe.pdf
cd ../../
# 2-3. Fe-bcc Example: Spinwave
# 2-3-a. Preparation for Spinwave (Files are already prepared in this file-set)
cd DMFT_MFT/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/prepare_magnon.jl ../../SPINWAVE/in
cd ../../
# 2-3-b. Edit LCO_kaiedj.toml : Calculation_mode="Spinwave"
cp $WORKDIR/scripts/fe_kaiedj_spinwave.toml SPINWAVE/in/fe_kaiedj_spinwave.toml
# 2-3-c. Edit kpath for the spinwave dispersion
cp $WORKDIR/scripts/kpath_fe SPINWAVE/in/kpath
# 2-3-d. Running Spinwave calculation
cd SPINWAVE/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/kaiedj.jl -T fe_kaiedj_spinwave.toml 2>&1 | tee log
cd ../../
# 2-3-e. Plotting and saving the Spinwave result in output_spinwave_fe.png
cd SPINWAVE/in/
julia --project=$JULIA_PROJECT_PATH $WORKDIR/scripts/plot_spinwave_fe.jl
open output_spinwave_fe.png || evince output_spinwave_fe.pdf
cd ../../