generated from ENCCS/sphinx-lesson-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
40ba9c9
commit 46187d4
Showing
12 changed files
with
168 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#! /bin/bash | ||
# generate kgrn and kfcd input files based on kgrn/fecr_FM.dat | ||
for i in `seq 0 2 10` `seq 30 20 90` 100 | ||
do | ||
cr=$(printf "%03d" $i) | ||
fe=$(printf "%03d" $((100-i))) | ||
folder=FM/FeCr$cr | ||
mkdir -p $folder/{kgrn,kfcd} | ||
|
||
ln -s $(pwd)/kstr $folder/kstr | ||
ln -s $(pwd)/bmdl $folder/bmdl | ||
ln -s $(pwd)/shape $folder/shape | ||
|
||
for sws in `seq 2.59 0.02 2.69` | ||
do | ||
# -e "s/NCPA.=.../NCPA.= 17/" \ | ||
# -e "s/NKY..=.../NKY..= 21/" \ | ||
sed -e "s/JOBNAM=.*/JOBNAM=fecr-$sws/" \ | ||
-e "28 s/ 50.00/$fe.00/" \ | ||
-e "29 s/ 50.00/$cr.00/" \ | ||
-e "s/SWS......=......../SWS......=${sws}0000/" \ | ||
kgrn/fecr_FM.dat > $folder/kgrn/fecr-$sws.dat | ||
|
||
sed -e "s/JOBNAM...=.*/JOBNAM...=fecr-$sws/" \ | ||
kfcd/fecr_FM.dat > $folder/kfcd/fecr-$sws.dat | ||
done | ||
done |
2 changes: 1 addition & 1 deletion
2
content/exercise/solutions/04/kfcd/fecr.dat → ...nt/exercise/solutions/04/kfcd/fecr_FM.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
KFCD MSGL..= 0 22 Jan 08 | ||
JOBNAM...=fecr | ||
JOBNAM...=fecr_FM | ||
STRNAM...=bcc | ||
DIR001=../kstr/smx/ | ||
DIR002=../kgrn/chd/ | ||
|
2 changes: 1 addition & 1 deletion
2
content/exercise/solutions/04/kgrn/fecr.dat → ...nt/exercise/solutions/04/kgrn/fecr_FM.dat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
rm -fvr Fe* | ||
rm -fv */*.{prn,out,kgrn,kfcd} */*/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
KFCD MSGL..= 0 22 Jan 08 | ||
JOBNAM...=fecr_PM | ||
STRNAM...=bcc | ||
DIR001=../kstr/smx/ | ||
DIR002=../kgrn/chd/ | ||
DIR003=../shape/shp/ | ||
DIR004=../bmdl/mdl/ | ||
DIR006=./ | ||
Lmaxs.= 30 NTH..= 41 NFI..= 81 FPOT..= N | ||
OVCOR.= Y UBG..= N NPRN.= 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
KGRN 13 Oct 12 | ||
JOBNAM=fecr_PM | ||
STRT..= A MSGL.= 0 EXPAN.= S FCD..= Y FUNC..= SCA | ||
FOR001=../kstr/smx/bcc.tfh | ||
FOR001=../kstr/smx/bcc30.tfh | ||
DIR002=pot/ | ||
DIR003=pot/ | ||
FOR004=../bmdl/mdl/bcc.mdl | ||
DIR006= | ||
DIR009=pot/ | ||
DIR010=chd/ | ||
DIR011=/tmp/ | ||
Self-consistent KKR calculation for bcc FeCrX | ||
Band: 10 lines | ||
NITER.= 50 NLIN.= 31 NPRN.= 0 NCPA.= 7 NT...= 1 MNTA.= 4 | ||
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 | ||
AMIX...= 0.100 EFMIX.= 1.000 VMTZ..= 0.000 MMOM..= 0.000 | ||
TOLE...= 1.d-07 TOLEF.= 1.d-07 TOLCPA= 1.d-06 TFERMI= 500.0 (K) | ||
SWS......=2.686842 NSWS.= 1 DSWS..= 0.05 ALPCPA= 0.6020 | ||
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 | ||
Fe 1 1 1 26 25.00 0.000 1.000 1.000 0.0 2.0 N | ||
Fe 1 1 2 26 25.00 0.000 1.000 1.000 0.0 -2.0 N | ||
Cr 1 1 3 24 25.00 0.000 1.000 1.000 0.0 -1.0 N | ||
Cr 1 1 4 24 25.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 | ||
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 | ||
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 | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# exercise/05: Mixing enthalpy for bcc FeCrx alloy: PM | ||
|
||
In this exercise we will practice how to treat magnetic disorder with CPA. | ||
It is the same story as exercise/04[^1], but here we treat the system within paramagnetic (PM) state. | ||
|
||
```{math} | ||
H = E_{Fe^\uparrow_{(1-x/2)}Fe^\downarrow_{(1-x/2)}Cr^\uparrow_{x/2}Cr^\downarrow_{x/2} } - ( 1-x )E_{Fe^\uparrow_{50}Fe^\downarrow_{50}} - x E_{Cr^\uparrow_{50}Cr^\downarrow_{50}} | ||
``` | ||
|
||
[^1]: [ Electronic origin of the anomalous stability of Fe-rich bcc Fe-Cr alloys ](https://journals.aps.org/prb/abstract/10.1103/PhysRevB.73.104416) | ||
|
||
- copy kgrn and kfcd input form exercise/04 and reuse its kstr, bmdl and shape. | ||
```bash | ||
cp -r ../04/{kgrn,kfcd} 05/ | ||
cd 05 | ||
ln -s ../04/kstr | ||
ln -s ../04/bmdl | ||
ln -s ../04/shape | ||
cp kgrn/{fecr_FM,fecr_PM}.dat | ||
cp kfcd/{fecr_FM,fecr_PM}.dat | ||
``` | ||
- spin {math}`\uparrow` and {math}`\downarrow` as "alloy components". | ||
|
||
```{literalinclude} kgrn/fecr_PM.dat | ||
:caption: split the components to half in kgrn input | ||
:lineno-match: | ||
:lines: 27-31 | ||
``` | ||
* remember change `MNTA.= 4`. | ||
- add "atomic config" for the extra components. | ||
```{literalinclude} kgrn/fecr_PM.dat | ||
:caption: split the components to half in kgrn input | ||
:lineno-match: | ||
:lines: 37-60 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters