Peano
Loading...
Searching...
No Matches
TPV5.py
Go to the documentation of this file.
1# This file is part of the ExaHyPE2 project. For conditions of distribution and
2# use, please see the copyright notice at www.peano-framework.org
3from .Scenario import Scenario
4
5import os
6
8 """
9 Part of a series of benchmarks by the Statewide California Earthquake Center (SCEC)
10
11 Spontaneous rupture on a vertical strike-slip fault in a homogeneous halfspace.
12 There are slightly heterogeneous initial stress conditions.
13
14 The description of the scenario can be found at: https://strike.scec.org/cvws/tpv5docs.html
15 """
16
17 domain_offset = [3.8, 0.0, 3.8] #centers the fault which is at 20.
18 domain_size = [32.4, 32.4, 32.4] #leads to one cell outside of fault on each side (with 27 cells)
19
20 end_time = 10.0
21
22 tracer_coordinates = [
23 # off-fault at surface
24 [17.0, 0.0, 8.0],
25 [17.0, 0.0, 32.0],
26 [23.0, 0.0, 8.0],
27 [23.0, 0.0, 32.0],
28 # off-fault at hypocenter depth
29 [17.0, 7.5, 8.0],
30 [17.0, 7.5, 32.0],
31 [23.0, 7.5, 8.0],
32 [23.0, 7.5, 32.0],
33 ]
34
35 fault_coordinates = [
36 # on-fault at surface
37 [20.0, 0.0, 8.0],
38 [20.0, 0.0, 12.5],
39 [20.0, 0.0, 15.5],
40 [20.0, 0.0, 20.0], #surface above fault hypocenter
41 [20.0, 0.0, 24.5],
42 [20.0, 0.0, 27.5],
43 [20.0, 0.0, 32.0],
44 [20.0, 3.0, 20.0], #above fault hypocenter
45 [20.0, 12.0, 20.0], #below fault hypocenter
46 #on-fault at hypocenter depth
47 [20.0, 7.5, 8.0],
48 [20.0, 7.5, 12.5], #center of left patch
49 [20.0, 7.5, 15.5],
50 [20.0, 7.5, 20.0], #on fault hypocenter
51 [20.0, 7.5, 24.5],
52 [20.0, 7.5, 27.5], #center of right patch
53 [20.0, 7.5, 32.0]
54 ]
55
57 return """
58 Q[Shortcuts::rho] = 2.67;
59 Q[Shortcuts::cp ] = 6.0;
60 Q[Shortcuts::cs ] = 3.464;
61"""
62
63 def generate_required_files(self, order):
64
65 dictionary = { "MODE": order+1 }
67 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV5/tpv5.yaml.template",
68 "tpv5.yaml", dictionary
69 )
70
72 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV5/tpv5_fault.yaml",
73 "tpv5_fault.yaml"
74 )
75
76 return
copy_file_to_current_folder(self, current_filename, full_qualified_filename)
Definition Scenario.py:32
generate_file_from_template(self, template_file, full_qualified_filename, dictionary)
Definition Scenario.py:21
Part of a series of benchmarks by the Statewide California Earthquake Center (SCEC)
Definition TPV5.py:7
initial_conditions(self)
Definition TPV5.py:56
generate_required_files(self, order)
Definition TPV5.py:63