Makefile (1293B)
1 BIN = ../cngf-pf/cngf-pf 2 FIG != basename $(PWD) 3 4 default: \ 5 ../$(FIG).pdf \ 6 ../$(FIG)-porosity-evolution.pdf \ 7 8 strain_distribution_s7.0m-s_N50kPa.txt: $(BIN) Makefile 9 for N in 6 50; do \ 10 for s in 0.07 0.7 7.0; do \ 11 id="s$${s}m-s_N$${N}kPa"; \ 12 ./$(BIN) \ 13 -s "$$(awk -v s="$$s" 'BEGIN {print s/1000.0/60.0}')" \ 14 -I "$$(awk -v s="$$s" 'BEGIN {print 0.1/(s/1000.0/60.0)/100.0}')" \ 15 -e "$$(awk -v s="$$s" 'BEGIN {print 0.1/(s/1000.0/60.0)}')" \ 16 -n "$${N}e3" \ 17 -p 0.235 \ 18 -d 0.004 \ 19 -o -0.08 \ 20 -L 0.07 \ 21 -T \ 22 "$${id}" \ 23 > "strain_distribution_s$${s}m-s_N$${N}kPa.txt"; \ 24 > "$${id}-timeseries-mean.tsv"; \ 25 > "$${id}-timeseries-min.tsv"; \ 26 > "$${id}-timeseries-max.tsv"; \ 27 for f in "$${id}".output*.txt; do \ 28 mean < "$${f}" >> "$${id}-timeseries-mean.tsv"; \ 29 min < "$${f}" >> "$${id}-timeseries-min.tsv"; \ 30 max < "$${f}" >> "$${id}-timeseries-max.tsv"; \ 31 done; \ 32 done; \ 33 done 34 35 ../$(FIG).pdf: strain-distrib.gp strain_distribution_s7.0m-s_N50kPa.txt 36 gnuplot strain-distrib.gp > $@ 37 38 ../$(FIG)-porosity-evolution.pdf: porosity-evolution.gp strain_distribution_s7.0m-s_N50kPa.txt 39 gnuplot porosity-evolution.gp > $@ 40 41 clean: 42 rm -f *.txt 43 rm -f *.tsv 44 rm -f ../$(FIG).pdf ../$(FIG)-porosity-evolution.pdf 45 46 .PHONY: default clean 47 48