tFix axes units for stick-slip plot - cngf-pf - continuum model for granular flows with pore-pressure dynamics (renamed from 1d_fd_simple_shear)
 (HTM) git clone git://src.adamsgaard.dk/cngf-pf
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 4eaf14a0a06f01b3c5a2b9a49f30c9a23620e2a0
 (DIR) parent 63a7aea187ad7c0c99223e065f93d93df89833e7
 (HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
       Date:   Fri, 10 May 2019 15:59:17 -0700
       
       Fix axes units for stick-slip plot
       
       Diffstat:
         M Makefile                            |       3 ++-
         M diurnal.timeseries.gp               |       6 +++---
       
       2 files changed, 5 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/Makefile b/Makefile
       t@@ -29,9 +29,10 @@ diurnal.output00000.txt: 1d_fd_simple_shear
                ./$< --resolution 50 --length 2.0 --normal-stress 150e3 --fluid --fluid-permeability 2e-17 --fluid-pressure-top 50e3 --fluid-pressure-ampl 50e3 --fluid-pressure-freq $$(( 1.0/(3600*24) )) --time-step 1e-1 --file-interval $$(( 60*10 )) --time-end $$(( 3600*24*7 )) diurnal'
        
        diurnal.timeseries.txt: diurnal.output00000.txt
       +        /bin/bash -c '\
                for f in diurnal.output*.txt; do \
                        tail -n 1 "$$f" | cut -f2- >> $@; \
       -        done
       +        done'
        
        diurnal.timeseries.png: diurnal.timeseries.gp diurnal.timeseries.txt
                gnuplot $< > $@
 (DIR) diff --git a/diurnal.timeseries.gp b/diurnal.timeseries.gp
       t@@ -1,11 +1,11 @@
        #!/usr/bin/env gnuplot
        
        set terminal pngcairo color size 18.6 cm, 10.0 cm
       -set xlabel "Time, t [s]"
       -set ylabel "Shear velocity, v [m/s]" offset 2
       +set xlabel "Time, t [d]"
       +set ylabel "Shear velocity, v [km/d]" offset 2
        
        # set xrange [0.0:0.7]
        # set yrange [0.0:0.01]
        # set key top left #samplen 0.9
        
       -plot "diurnal.timeseries.txt" u 1 w l lw 2 t ""
       +plot "diurnal.timeseries.txt" u ($0/1008*7):($1*60*60*24/1000) w l lw 2 t ""