Guest User

Untitled

a guest
Jul 17th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. #python np.py $@ >data
  4. #gnuplot Ef.graph && mv graph.png Ef.png && gnuplot cond_part.graph && mv graph.png cond_part.png
  5. #gwenview Ef.png >/dev/null 2>&1
  6. #gwenview cond_part.png >/dev/null 2>&1
  7. #rm Ef.png
  8. #rm cond_part.png
  9.  
  10. rm -rf images/
  11. mkdir images
  12.  
  13. A="donor acceptor"
  14. VALUES="1e16 5e16 1e17 5e17 1e18"
  15. for y in $A ; do
  16. for x in $VALUES ; do
  17. python np.py $y $x >data
  18. gnuplot <<EOF
  19. #!/usr/bin/gnuplot -persist
  20. set title "Ef(T) $y $x"
  21. set xlabel "1/kT, kT in eV"
  22. set ylabel "Ef(T)"
  23. set grid
  24. set terminal png
  25. set output "images/$y-$x-Ef.png"
  26. set term png size 960, 640
  27. plot "data" u 1:3 w l
  28. EOF
  29. gnuplot <<EOF
  30. #!/usr/bin/gnuplot -persist
  31. set title "conductive_particles(T) $y $x"
  32. set xlabel "1/kT, kT in eV"
  33. set ylabel "log(conductive_particles)"
  34. set grid
  35. set terminal png
  36. set output "images/$y-$x-cond_part.png"
  37. set term png size 960, 640
  38. plot "data" u 1:2 w l
  39. EOF
  40. done
  41. done
  42. rm data
Add Comment
Please, Sign In to add comment