| 1 | == Job Card Management Example == |
| 2 | |
| 3 | === Produce the 160 job cards === |
| 4 | |
| 5 | Copy 4 templates for 4 different nulcei |
| 6 | |
| 7 | {{{ |
| 8 | cd ~/scripts/jobcards/outgoing |
| 9 | cp el/* ./ |
| 10 | }}} |
| 11 | |
| 12 | Change them to Fermi Gas initialisation |
| 13 | |
| 14 | {{{ |
| 15 | replace_strings.py -p densitySwitch_Static=,5 *.job |
| 16 | }}} |
| 17 | |
| 18 | Create job cards with fixed momentum transfer of 1 GeV, varying the outgoing energy from 3 to 3.55 GeV |
| 19 | {{{ |
| 20 | create_values.py --low=3.0 --up=3.55 --steps=40 -q 1. *.job |
| 21 | rm y* |
| 22 | }}} |
| 23 | |
| 24 | === Submit the 160 job cards === |
| 25 | |
| 26 | {{{ |
| 27 | send_jobs.py -cp FIG3 *.job |
| 28 | }}} |
| 29 | |
| 30 | === Analyze the results === |
| 31 | |
| 32 | |
| 33 | {{{ |
| 34 | cd /home/hadron/FIG3/done/ |
| 35 | }}} |
| 36 | |
| 37 | Collect various results into single files |
| 38 | |
| 39 | {{{ |
| 40 | collect_data.py -co 012C.dat e*12C*dat |
| 41 | collect_data.py -co 027Al.dat e*27Al*dat |
| 42 | collect_data.py -co 056Fe.dat e*56Fe*dat |
| 43 | collect_data.py -co 197Au.dat e*197Au*dat |
| 44 | }}} |
| 45 | |
| 46 | Copy the resulting files to the parent directory and plot them to get a first impression |
| 47 | |
| 48 | {{{ |
| 49 | cp *.dat ../ |
| 50 | cd .. |
| 51 | plot_dat.py -s 'label "q=1.0, Ei=3.6 GeV"',"xrange [-2:1]","yrange [0:1.2]",'xlabel "Ψ"','ylabel "f(Ψ)"' *.dat |
| 52 | }}} |