Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file removed .DS_Store
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file needs to be deleted in the git repository, I believe.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What I did for the .DS_Store was

git rm --cached .DS_Store
git commit -m "Remove tracked .DS_Store"

and then making sure it's in the .gitignore file.

Binary file not shown.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
*.ipynb_checkpoints/
.DS_Store
../.DS_Store
45 changes: 45 additions & 0 deletions quakeworx/earthquake-tsunami/fault.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
!Switch
[mu_s, mu_d, d_c]: !ConstantMap
map:
mu_s: 0.575
mu_d: 0.450
d_c: 0.18
[forced_rupture_time, cohesion, T_n, T_s, T_d]: !LuaMap
returns: [forced_rupture_time, cohesion, T_n, T_s, T_d]
function: |
function f (x)
xh = 17387.0
yh = 0.0
zh = -4658.0
r_crit = 4000.0
r = math.sqrt((x["x"]-xh)^2 + (x["y"]-yh)^2 + (x["z"]-zh)^2 )
Vs = 3464.0
if (r <= r_crit) then
forced_rupture_time = r/(0.7*Vs)+(0.081*r_crit/(0.7*Vs))*(1.0/(1.0-(r/r_crit)^2)-1.0)
else
forced_rupture_time = 1000000000.0
end

pi = 4.0 * math.atan(1.0)
depth = math.abs(x["z"])
w = depth/math.sin(15.0*pi/180.)

if (w < 8000) then
cohesion = -500.0 * math.max(8000.0-w,0)
else
cohesion = 0.0
end

return {
forced_rupture_time = forced_rupture_time,
cohesion = cohesion,
T_n = -4240.0 * w,
T_s = 0.0,
T_d = 2120.0 * w,
}
end
[Tnuc_n, Tnuc_s, Tnuc_d]: !ConstantMap
map:
Tnuc_n: 0
Tnuc_s: 0
Tnuc_d: 0
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added quakeworx/earthquake-tsunami/figures/launch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
17 changes: 17 additions & 0 deletions quakeworx/earthquake-tsunami/material_WL.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
!Switch
[rho, mu, lambda]: !Any
components:
- !GroupFilter
groups: [0]
components: !ConstantMap
map:
rho: 1000
mu: 0.0
lambda: 2.250e9
- !GroupFilter
groups: [1]
components: !ConstantMap
map:
rho: 2670
mu: 32038120320
lambda: 32043759360
Binary file not shown.
Binary file not shown.
99 changes: 99 additions & 0 deletions quakeworx/earthquake-tsunami/parameters.par
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
&equations
MaterialFileName = 'material_WL.yaml'
Plasticity = 0
!numflux = 'godunov'
!numfluxnearfault = 'godunov'
/

&IniCondition
/

&DynamicRupture
FL = 16 ! Friction law
ModelFileName = 'fault.yaml'

!characteristic time of the forced nucleation
t_0 = 0.5

!reference vector for defining strike and dip direction
XRef = -0.1
YRef = 0.0
ZRef = -1.0
refPointMethod = 1

OutputPointType = 4 ! Type (0: no output, 3: ascii file, 4: paraview file, 5: 3+4)
SlipRateOutputType=1 ! 0: (smoother) slip rate output evaluated from the difference between the velocity on both side of the fault
! 1: slip rate output evaluated from the fault tractions and the failure criterion (less smooth but usually more accurate where the rupture front is well developped)
/

!see: https://seissol.readthedocs.io/en/latest/fault-output.html
!parameterize paraview file output
&Elementwise
printtimeinterval_sec = 1.0 ! Time interval at which output will be written
OutputMask = 1 1 1 1 1 1 1 1 1 1 1 ! turn on and off fault outputs
refinement_strategy = 2
refinement = 1
vtkorder = -1 ! positive values enable the high-order VTKHDF format for the elementwise fault output
/

! parameterize ascii fault file outputs
&Pickpoint
printtimeinterval = 100 ! Index of printed info at timesteps
OutputMask = 1 1 1 1 1 1 1 1 1 1 1 1 ! turn on and off fault outputs
!pickdt = 0.005 ! not yet implemented
PPFileName = 'onfault_receivers.dat'
/

&SourceType
/

&MeshNml
MeshFile = 'mesh_ttpv1_small_18k.puml.h5'
!MeshFile = 'mesh_ttpv2_225k.puml.h5'
meshgenerator = 'PUML' ! Name of meshgenerator (Gambit3D-fast, Netcdf or PUML)
pumlboundaryformat='i32' ! the boundary data type for PUML files ('auto', 'i32', 'i64', 'i32x4')
/

&Discretization
CFL = 0.4 ! CFL number (<=1.0)
ClusteredLTS = 2 ! Enable local time-stepping
/

&Output
OutputFile = 'outputs/ttpv1'
!OutputFile = 'outputs/ttpv2'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment I left in on purpose for the Quakeworx Training, such that participants easily spot what to change for TTPV2.

WavefieldOutput = 0 ! disable/enable volumne wavefield output (right now, format=6 needs to be set as well)
Format = 10 ! Format (10=no output, 6=hdf5 output)
! |stress |vel
iOutputMask = 1 1 1 1 1 1 1 1 1
TimeInterval = 1.0 ! Index of printed info at time
refinement = 1

! Free surface output
SurfaceOutput = 1
SurfaceOutputRefinement = 1
SurfaceOutputInterval = 1.0

ReceiverOutput = 0 !1
pickdt = 0.01 ! Pickpoint Sampling
RFileName = '' ! Record Points in extra file
ReceiverOutputInterval = 10.0
ReceiverComputeStrain = 0

xdmfWriterBackend = 'hdf5' ! (optional) The backend used in fault, wavefield,
! and free-surface output. The HDF5 backend is only supported when SeisSol is compiled with
! HDF5 support.

EnergyOutput = 1 ! Computation of energy, written in csv file
EnergyTerminalOutput = 1 ! Write energy to standard output
EnergyOutputInterval = 1.0

wavefieldvtkorder = -1
surfacevtkorder = -1

Checkpoint = 0
/

&AbortCriteria
EndTime = 240.0
/
Loading
Loading