[cig-commits] commit: clean up examples

Mercurial hg at geodynamics.org
Tue Sep 20 12:13:12 PDT 2011


changeset:   15:777cc20187d0
user:        Sylvain Barbot <sylbar.vainbot at gmail.com>
date:        Thu May 12 17:04:47 2011 -0700
files:       examples/relax.sh examples/run1.sh examples/run1_proj.sh
description:
clean up examples


diff -r 2e102d067069 -r 777cc20187d0 examples/relax.sh
--- a/examples/relax.sh	Thu May 12 15:53:17 2011 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,53 +0,0 @@
-#!/bin/sh
-
-time ./relax <<EOF
-# grid size (sx1,sx2,sx3)
-256 256 256
-# sampling size & smoothing (dx1,dx2,dx3,beta)
-0.05 0.05 0.05 0.2
-# origin position
-0 0
-# observation depth
-0
-# output directory
-./output
-# elastic parameters (lambda,mu)
-1 1
-# integration time (t1)
-20 0.5
-# number of observation planes
-0
-# number of observation points
-0
-# number of prestress interfaces
-0
-# number of linear viscous interfaces
-2
-1 1.0 0 0.0
-2 9.0 0 0.0
-# number of powerlaw viscous interfaces
-2
-1 1.0 1e1 3.0 0.0
-2 9.0 1e1 3.0 0.0
-# number of friction faults
-0
-# number of interseismic loading stuff
-0
-0
-# number of coseismic events
-2
-# number of shear dislocations
-1
-# index slip   x1 x2 x3 length width strike dip rake
-      1    1 -1.0  0  0      1   0.8      0  90    0
-# number of tensile cracks
-0
-# time of second event
-10
-# number of shear dislocations
-1
-# index slip  x1 x2 x3 length width strike dip rake
-      1 0.02 0.0  0  0      1   0.8      0  90    0
-# number of tensile cracks
-0
-EOF
diff -r 2e102d067069 -r 777cc20187d0 examples/run1.sh
--- a/examples/run1.sh	Thu May 12 15:53:17 2011 -0700
+++ b/examples/run1.sh	Thu May 12 17:04:47 2011 -0700
@@ -75,6 +75,10 @@ 0.05 0.05 0.05 0.2 2
 # origin position & rotation
 0 0 0
 # geographic origin (longitude and latitude), UTM zone and real length unit (usually m or km)
+# displacements and stress are converted to lon/lat geographic coordinates
+# unit corresponds to a scaling from dx1,dx2,dx3 to real unit
+# use unit = 1   if dimensions are described in units of m
+# use unit = 1e3 if dimensions are described in units of km
 120 22 51 1e3
 # observation depth for displacement and for stress (stress in only exported in GRD)
 0 0.5
diff -r 2e102d067069 -r 777cc20187d0 examples/run1_proj.sh
--- a/examples/run1_proj.sh	Thu May 12 15:53:17 2011 -0700
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,86 +0,0 @@
-#!/bin/sh
-
-# linear viscoelastic relaxation following a strike-slip fault
-# followed by a second strike-slip event and a relaxation of
-# both stress perturbations.
-
-# output is exported in geographic coordintes in .xyz format
-
-# viscous substrate starts at 3 times the seismogenic depth.
-# output at each computation step (Dt = -1)
-
-# to visualize coseismic deformation (requires GRD output, or manual conversion to GRD format):
-# map.sh -b -3/3/-3/3 output1/000
-
-# to convert .xyz output in .grd output in post processing, type (requires GMT installed on your machine)
-# xyz2grd.sh output1/000
-
-# to visualize a time series of postseismic deformation (requires GRD output): 
-# map.sh -b -5/5/-5/5 -p -0.002/0.002/0.0001 -v 0.005 output1/0{01,02,03,04,05,06,07,08,09,10}-relax
-# or simply
-# map.sh -b -5/5/-5/5 -p -0.002/0.002/0.0001 -v 0.005 output1/0??-relax
-
-# type map.sh for a description of command-line options.
-
-time ../relax <<EOF
-# grid size (sx1,sx2,sx3)
-256 256 256
-# sampling size, smoothing & nyquist (dx1,dx2,dx3,beta,nq)
-0.05 0.05 0.05 0.2 2
-# origin position & rotation
-0 0 0
-# geographic origin (longitude, latitude, UTM zone, unit)
-# displacements and stress are converted to lon/lat geographic coordinates
-# unit corresponds to a scaling from dx1,dx2,dx3 to real unit
-# use unit = 1   if dimensions are described in units of m
-# use unit = 1e3 if dimensions are described in units of km
--115 37.5 11 1e3
-# observation depth (displacement and stress) (stress in only exported in GRD)
-0 0.5
-# output directory
-./output1_proj
-# elastic parameters and gamma = (1-nu) rho g / mu = 8.33e-7 /m = 8.33e-4 /km
-1 1 8.33e-4
-# integration time (t1)
-20 -1
-# number of observation planes
-0
-# number of observation points
-0
-# number of prestress interfaces
-0
-# number of linear viscous interfaces
-2
-# no depth gammadot0 cohesion
-   1   3.0       1.0      0.0
-   2   9.0       1.0      0.0
-# number of linear ductile zones
-0
-# number of powerlaw viscous interfaces
-0
-# number of friction faults
-0
-# number of interseismic loading strike-slip and opening
-0
-0
-# number of coseismic events
-2
-# number of shear dislocations
-1
-# no slip x1 x2 x3 length width strike dip rake
-   1    1 -1  0  0      1     1      0  90    0
-# number of tensile cracks
-0
-# number of dilatation sources
-0
-# time of second event
-1
-# number of shear dislocations
-1
-# no slip x1 x2 x3 length width strike dip rake
-   1    1  0  0  0      1     1      0  90    0
-# number of tensile cracks
-0
-# number of dilatation sources
-0
-EOF



More information about the CIG-COMMITS mailing list