exercise/04: Mixing enthalpy for bcc FeCrx alloy: FM
In this exercise we will practice how to get Mixing enthalpy of bcc \(Fe_{ (1-x) }Cr_x\) alloy with EMTO.
\[H = E_{Fe_{(1-x)}Cr_x} - ( 1-x )E_{Fe_{bcc}} - x E_{Cr_{bcc}}\]
The reference states are chosen as FM Fe and NM Cr, both in bcc structure. [1]
For each \(Fe_{ (1-x) }Cr_x\), we need its equilibrium volume and correspond energy.
alloy setup with CPA in kgrn
create an input files for \(Fe_{50}Cr_{50}\)
we could copy the kgrn input from exercise00 and make some changes.
JOBNAM=fecr_FM
FOR001=../kstr/smx/bcc.tfh
,FOR004=../bmdl/mdl/bcc.mdl
andIBZ..= 3
MNTA.= 2
AFM..= F
SOFC.= Y
AMIX...= 0.010
Symb IQ IT ITA NZ CONC Sm(s) S(ws) WS(wst) QTR SPLT Fix Fe 1 1 1 26 50.00 1.000 1.000 1.000 0.0 2.0 N Cr 1 1 2 24 50.00 1.000 1.000 1.000 0.0 -1.0 N
Fe Iz= 26 Norb= 10 Ion= 0 Config= 3d7_4s1 n 1 2 2 2 3 3 3 3 3 4 Kappa -1 -1 1 -2 -1 1 -2 2 -3 -1 Occup 2 2 2 4 2 2 4 4 3 1 Valen 0 0 0 0 0 0 0 1 1 1 Cr Iz= 24 Norb= 9 Ion= 0 Config= 3d4_4s2 n 1 2 2 2 3 3 3 3 4 Kappa -1 -1 1 -2 -1 1 -2 2 -1 Occup 2 2 2 4 2 2 4 4 2 Valen 0 0 0 0 0 0 0 1 1
Hint
--- /home/runner/work/emto-best-practices/emto-best-practices/content/exercise/solutions/00/kgrn/cu.dat
+++ /home/runner/work/emto-best-practices/emto-best-practices/content/exercise/solutions/04/kgrn/fecr_FM.dat
@@ -1,21 +1,21 @@
KGRN 13 Oct 12
-JOBNAM=cu
+JOBNAM=fecr_FM
STRT..= A MSGL.= 0 EXPAN.= S FCD..= Y FUNC..= SCA
-FOR001=../kstr/smx/fcc.tfh
-FOR001=../kstr/smx/fcc30.tfh
+FOR001=../kstr/smx/bcc.tfh
+FOR001=../kstr/smx/bcc30.tfh
DIR002=pot/
DIR003=pot/
-FOR004=../bmdl/mdl/fcc.mdl
+FOR004=../bmdl/mdl/bcc.mdl
DIR006=
DIR009=pot/
DIR010=chd/
DIR011=/tmp/
-Self-consistent KKR calculation for fcc Cu
+Self-consistent KKR calculation for bcc FeCrX
Band: 10 lines
-NITER.= 50 NLIN.= 31 NPRN.= 0 NCPA.= 7 NT...= 1 MNTA.= 1
-MODE..= 3D FRC..= N DOS..= N OPS..= N AFM..= P CRT..= M
-Lmaxh.= 8 Lmaxt= 4 NFI..= 31 FIXG.= 2 SHF..= 0 SOFC.= N
-KMSH...= G IBZ..= 2 NKX..= 0 NKY..= 13 NKZ..= 0 FBZ..= N
+NITER.= 50 NLIN.= 31 NPRN.= 0 NCPA.= 7 NT...= 1 MNTA.= 2
+MODE..= 3D FRC..= N DOS..= N OPS..= N AFM..= F CRT..= M
+Lmaxh.= 8 Lmaxt= 4 NFI..= 31 FIXG.= 2 SHF..= 0 SOFC.= Y
+KMSH...= G IBZ..= 3 NKX..= 0 NKY..= 13 NKZ..= 0 FBZ..= N
KMSH2..= G IBZ2.= 1 NKX2.= 4 NKY2.= 0 NKZ2.= 51
ZMSH...= C NZ1..= 16 NZ2..= 8 NZ3..= 8 NRES.= 4 NZD.=1500
DEPTH..= 1.000 IMAGZ.= 0.020 EPS...= 0.200 ELIM..= -1.000
@@ -25,15 +25,22 @@
Setup: 2 + NQ*NS lines
EFGS...= 0.000 HX....= 0.100 NX...= 5 NZ0..= 6 STMP..= N
Symb IQ IT ITA NZ CONC Sm(s) S(ws) WS(wst) QTR SPLT Fix
-Cu 1 1 1 29 1.000 1.000 1.000 1.000 0.0 0.0 N
+Fe 1 1 1 26 50.00 0.000 1.000 1.000 0.0 2.0 N
+Cr 1 1 2 24 50.00 0.000 1.000 1.000 0.0 -1.0 N
Atom: 4 lines + NT*NTA*6 lines
IEX...= 4 NP..= 251 NES..= 15 NITER=100 IWAT.= 0 NPRNA= 0
VMIX.....= 0.300000 RWAT....= 3.500000 RMAX....= 20.000000
DX.......= 0.030000 DR1.....= 0.002000 TEST....= 1.00E-12
TESTE....= 1.00E-12 TESTY...= 1.00E-12 TESTV...= 1.00E-12
-Cu
-Iz= 29 Norb= 10 Ion= 0 Config= 3d10_4s1
+Fe
+Iz= 26 Norb= 10 Ion= 0 Config= 3d7_4s1
n 1 2 2 2 3 3 3 3 3 4
Kappa -1 -1 1 -2 -1 1 -2 2 -3 -1
-Occup 2 2 2 4 2 2 4 4 6 1
+Occup 2 2 2 4 2 2 4 4 3 1
Valen 0 0 0 0 0 0 0 1 1 1
+Cr
+Iz= 24 Norb= 9 Ion= 0 Config= 3d4_4s2
+n 1 2 2 2 3 3 3 3 4
+Kappa -1 -1 1 -2 -1 1 -2 2 -1
+Occup 2 2 2 4 2 2 4 4 2
+Valen 0 0 0 0 0 0 0 1 1
kstr, bmdl, shape and kfcd input files
Hint
1KSTR HP......=N 22 Jan 08
2JOBNAM...=bcc MSGL.= 1 MODE...=B STORE..=Y HIGH...=Y
3DIR001=smx/
4DIR006=
5Slope matrices, bcc (spdf), (kappa*w)^2= 0.0
6NL.....= 4 NLH...=11 NLW...= 9 NDER..= 6 ITRANS= 3 NPRN..= 0
7(K*W)^2..= 0.000000 DMAX....= 2.2000 RWATS...= 0.10
8NQ3...= 1 LAT...= 3 IPRIM.= 0 NGHBP.=13 NQR2..= 0
9A........= 1.0000000 B.......= 1.0000000 C.......= 1.0000000
10BSX......= 0.5000000 BSY.....= 0.5000000 BSZ.....=-0.5000000
11BSX......= 0.5000000 BSY.....=-0.5000000 BSZ.....= 0.5000000
12BSX......=-0.5000000 BSY.....= 0.5000000 BSZ.....= 0.5000000
13QX.......= 0.0000000 QY......= 0.0000000 QZ......= 0.0000000
14a/w......= 0.70 0.70 0.70 0.70
15LAMDA....= 2.5000 AMAX....= 4.5000 BMAX....= 4.5000
1BMDL HP......=N 22 Jan 08
2JOBNAM...=bcc MSGL.= 1 NPRN.= 0
3DIR001=mdl/
4DIR006=
5Madelung potential for bcc bulk
6NL.....= 7
7LAMDA....= 2.50 AMAX....= 4.50 BMAX....= 4.50
8NQ....= 1 LAT...= 3 IPRIM.= 1 NQR2..= 0
9A........= 1.000 B.......= 1.000 C.......= 1.000
10ALFA.....= 90.0 BETA....= 90.0 GAMMA...= 90.0
11QX(1)....= 0.0 QY(1)...= 0.0 QZ(1)...= 0.0
run all calculations
tree . ├── bmdl │ ├── bcc.dat │ └── mdl ├── kfcd │ └── fecr_FM.dat ├── kgrn │ ├── chd │ ├── fecr_FM.dat │ └── pot ├── kstr │ ├── bcc.dat │ └── smx └── shape ├── bcc.dat └── shp 11 directories, 5 files
check
NOS
from kgrn/fecr_FM.prn
grep -H NOS *.prn fecr_FM.prn: KKRFCD: NOS(Ef) = 7.000025 ELT = 7.000000 fecr_FM.prn: KKRFCD: NOS(Ef) = 7.000025 ELT = 7.000000
Hint
increase
NCPA
to make sure cpa loop convergedsed -i 's/NCPA.= 7/NCPA.= 17/' fecr_FM.dat
create input files with different volumes for each \(Fe_{(1-x)}Cr_x\)
1#! /bin/bash
2# generate kgrn and kfcd input files based on kgrn/fecr_FM.dat
3for i in `seq 0 2 10` `seq 30 20 90` 100
4do
5 cr=$(printf "%03d" $i)
6 fe=$(printf "%03d" $((100-i)))
7 folder=FM/FeCr$cr
8 mkdir -p $folder/{kgrn,kfcd}
9
10 ln -s $(pwd)/kstr $folder/kstr
11 ln -s $(pwd)/bmdl $folder/bmdl
12 ln -s $(pwd)/shape $folder/shape
13
14 for sws in `seq 2.59 0.02 2.69`
15 do
16 # -e "s/NCPA.=.../NCPA.= 17/" \
17 # -e "s/NKY..=.../NKY..= 21/" \
18 sed -e "s/JOBNAM=.*/JOBNAM=fecr-$sws/" \
19 -e "28 s/ 50.00/$fe.00/" \
20 -e "29 s/ 50.00/$cr.00/" \
21 -e "s/SWS......=......../SWS......=${sws}0000/" \
22 kgrn/fecr_FM.dat > $folder/kgrn/fecr-$sws.dat
23
24 sed -e "s/JOBNAM...=.*/JOBNAM...=fecr-$sws/" \
25 kfcd/fecr_FM.dat > $folder/kfcd/fecr-$sws.dat
26 done
27done
get equilibrium state for each concentration.
Eos.sh FeCr* > eos cat eos