tAdd diurnal simulation to default make target - 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 dc908a0d9a1f0e89e5886214fb3bcfce8e8d9459
(DIR) parent 1eecab9a5fd73c345affb20a8453ec101735828d
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 7 May 2019 12:30:35 -0700
Add diurnal simulation to default make target
Diffstat:
M Makefile | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -12,16 +12,21 @@ plots: 1d_fd_simple_shear.png \
1d_fd_simple_shear_rheology.png \
1d_fd_simple_shear_rheology_kamb.png \
1d_fd_simple_shear_rheology_iverson.png \
- 1d_fd_simple_shear_rheology_tulaczyk.png
+ 1d_fd_simple_shear_rheology_tulaczyk.png \
+ diurnal.output00000.txt
-diurnal.mp4: 1d_fd_simple_shear 1d_fd_simple_shear_fluid.gp
- /usr/bin/env zsh -c '\
- ./$< --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*4 )) diurnal'
+diurnal.mp4: diurnal.output00000.txt.png
+ ffmpeg -i diurnal.output%05d.txt.png -y diurnal.mp4
+
+diurnal.output00000.txt.png: diurnal.output00000.txt 1d_fd_simple_shear_fluid.gp
/bin/bash -c '\
for f in diurnal.output*.txt; do \
gnuplot -e "filename=\"$$f\"; p_min=\"0\"; p_max=\"100e3\"" $<_fluid.gp > $$f.png; \
done'
- ffmpeg -i diurnal.output%05d.txt.png -y diurnal.mp4
+
+diurnal.output00000.txt: 1d_fd_simple_shear
+ /usr/bin/env zsh -c '\
+ ./$< --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*4 )) diurnal'
diurnal.gif: diurnal.mp4
convert diurnal.output*.txt.png \