Last active
March 21, 2020 18:08
-
-
Save Asif-Iqbal-Bhatti/49ca01c968928d696800ad165ead3f22 to your computer and use it in GitHub Desktop.
Stacking fault energy for bcc crystal
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
#!/bin/bash | |
#------------------------------------------------------------------------------------------ | |
# |||--> b means burger vector | |
# |||--> b = a*1/2[111] ;|b| = a*sqrt(3)/2 | |
# |||--> On the (110) plane the slip occur at <1-11> | |
# |||--> For gamma surface vary b form 0b to 1b | |
# Some bcc materials (e.g. α-Fe) can contain up to 48 slip systems. | |
# There are six slip planes of type {110}, each with two <111> directions (12 systems). | |
# There are 24 {123} and 12 {112} planes each with one <111> direction (36 systems, | |
# for a total of 48). While the {123} and {112} planes are not exactly identical in | |
# activation energy to {110}, they are so close in energy that for all intents and | |
# purposes they can be treated as identical. example: | |
# slip plane and direction are (110) and [-111], respectively | |
#------------------------------------------------------------------------------------------ | |
count=00; | |
ax=9.3860; # Lattice parameter change according to your situation | |
b=$(echo "scale=6; $ax*sqrt(3.0)/2" | bc -l); | |
echo "burger vectors b:: " $b "and lattice vector:: " $ax | |
# change this value for # of displacement for burger vector | |
for i in `seq -w 0.0 0.1 1.0` | |
do | |
j=$(echo "$b*$i" | bc -l); | |
echo "i=$i::$count::" $j | |
#touch b_$j | |
#echo $j > b_$j | |
atomsk POSCAR.cif -shift above 0.2*box Z 0 $j 0 -wrap -fix X -fix Y POSCAR | |
mv POSCAR POSCAR_$count | |
#count=$(echo "$count+1" | bc -l); | |
count=`echo $count | awk '{printf "%02d", $1+1 }'` | |
done | |
#atomsk POSCAR110.cif -shift above 0.5*box Z 2.8 0.0 0.0 -wrap POSCAR2.8.cif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment