Peano
Loading...
Searching...
No Matches
TPV29.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 Single rough planar vertical strike-slip fault in a linear elastic medium.
12
13 The description of the scenario can be found at: https://strike.scec.org/cvws/tpv29_30docs.html
14 """
15
16 domain_offset = [-3.4, 0.0, -3.4] #Ensures that the fault, which is at 20., is between two cells at 13/27th of the domain
17 domain_size = [48.6, 48.6, 48.6] #leads to cs of 0.6 for 81 cells
18
19 end_time = 20.0
20
21 tracer_coordinates = [
22 # off-fault at surface
23 [ 0.0, 0.0, 0.0], #0
24 [40.0, 0.0, 0.0], #1
25 [17.0, 0.0, 5.0], #2
26 [23.0, 0.0, 5.0], #3
27 [ 0.0, 0.0, 20.0], #4
28 [17.0, 0.0, 20.0], #5
29 [23.0, 0.0, 20.0], #6
30 [40.0, 0.0, 20.0], #7
31 [17.0, 0.0, 35.0], #8
32 [23.0, 0.0, 35.0], #9
33 [ 0.0, 0.0, 40.0], #10
34 [40.0, 0.0, 40.0], #11
35 # on-fault at surface (3)
36 [20.0, 0.0, 15.0], #surface above fault hypocenter
37 [20.0, 0.0, 25.0],
38 [20.0, 0.0, 35.0],
39 #on-fault, general (21)
40 [20.0, 15.6, 2.0],
41 [20.0, 5.0, 5.0],
42 [20.0, 12.0, 5.0],
43 [20.0, 1.4, 9.0],
44 [20.0, 10.1, 11.1],
45 [20.0, 10.0, 15.0], #on fault hypocenter
46 [20.0, 16.0, 15.0],
47 [20.0, 6.1, 15.8],
48 [20.0, 12.0, 20.0],
49 [20.0, 6.2, 14.3],
50 [20.0, 6.0, 14.6],
51 [20.0, 12.0, 25.0],
52 [20.0, 5.7, 25.1],
53 [20.0, 4.7, 25.9],
54 [20.0, 15.3, 29.0],
55 [20.0, 15.3, 29.3],
56 [20.0, 5.0, 30.0],
57 [20.0, 11.0, 30.0],
58 [20.0, 13.0, 35.0],
59 [20.0, 10.5, 36.7],
60 [20.0, 4.5, 37.0]
61 ]
62
63 fault_coordinates = [
64 # on-fault at surface (3)
65 [20.0, 0.0, 15.0], #surface above fault hypocenter
66 [20.0, 0.0, 25.0],
67 [20.0, 0.0, 35.0],
68 #on-fault, general (21)
69 [20.0, 15.6, 2.0],
70 [20.0, 5.0, 5.0],
71 [20.0, 12.0, 5.0],
72 [20.0, 1.4, 9.0],
73 [20.0, 10.1, 11.1],
74 [20.0, 10.0, 15.0], #on fault hypocenter
75 [20.0, 16.0, 15.0],
76 [20.0, 6.1, 15.8],
77 [20.0, 12.0, 20.0],
78 [20.0, 6.2, 14.3],
79 [20.0, 6.0, 14.6],
80 [20.0, 12.0, 25.0],
81 [20.0, 5.7, 25.1],
82 [20.0, 4.7, 25.9],
83 [20.0, 15.3, 29.0],
84 [20.0, 15.3, 29.3],
85 [20.0, 5.0, 30.0],
86 [20.0, 11.0, 30.0],
87 [20.0, 13.0, 35.0],
88 [20.0, 10.5, 36.7],
89 [20.0, 4.5, 37.0]
90 ]
91
93 return """
94 Q[Shortcuts::rho] = 2.67;
95 Q[Shortcuts::cp ] = 6.0;
96 Q[Shortcuts::cs ] = 3.464;
97"""
98
99 def generate_required_files(self, order):
100
101 dictionary = { "MODE": order+1 }
103 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV29/tpv29.yaml.template",
104 "tpv29.yaml", dictionary
105 )
106
108 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV29/tpv29_fault.yaml",
109 "tpv29_fault.yaml"
110 )
111
113 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV29/tpv29_buffer_n.nc",
114 "tpv29_buffer_n.nc"
115 )
116
117 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 TPV29.py:7
generate_required_files(self, order)
Definition TPV29.py:99
initial_conditions(self)
Definition TPV29.py:92