Peano
Loading...
Searching...
No Matches
TPV16.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 randomly-generated heterogeneous initial stress conditions.
13
14 The description of the scenario can be found at: https://strike.scec.org/cvws/tpv16_17docs.html
15 """
16
17 domain_offset = [-5.92, 0., -5.92] #centers the fault which is at 20.
18 domain_size = [51.84, 51.84, 51.84] #leads to one cell outside of fault on each side (with 27 cells)
19
20 end_time = 15.0
21
22 tracer_coordinates = [
23 [26.0, 0.0, 11.0],
24 [26.0, 0.0, 20.0],
25 [26.0, 0.0, 29.0],
26 [20.4, 0.0, 11.0],
27 [20.4, 0.0, 20.0],
28 [20.4, 0.0, 29.0],
29 [19.6, 0.0, 11.0],
30 [19.6, 0.0, 20.0],
31 [19.6, 0.0, 29.0],
32 [14.0, 0.0, 11.0],
33 [14.0, 0.0, 20.0],
34 [14.0, 0.0, 29.0]
35 ]
36
37 fault_coordinates = [
38 [20.0, 0.0, 11.0],
39 [20.0, 0.0, 20.0],
40 [20.0, 0.0, 29.0],
41 [20.0, 9.0, 11.0],
42 [20.0, 9.0, 20.0],
43 [20.0, 9.0, 29.0],
44 [20.0, 0.0, 11.0],
45 [20.0, 0.0, 20.0],
46 [20.0, 0.0, 29.0],
47 [20.0, 9.0, 11.0],
48 [20.0, 9.0, 20.0],
49 [20.0, 9.0, 29.0]
50 ]
51
53 return """
54 Q[Shortcuts::rho] = 2.67;
55 Q[Shortcuts::cp ] = 6.0;
56 Q[Shortcuts::cs ] = 3.464;
57"""
58
59 def generate_required_files(self, order):
60
61 dictionary = { "MODE": order+1 }
63 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV16/tpv16.yaml.template",
64 "tpv16.yaml", dictionary
65 )
66
68 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV16/tpv16_fault.yaml",
69 "tpv16_fault.yaml"
70 )
71
73 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV16/tpv16_fault.nc",
74 "tpv16_fault.nc"
75 )
76
77 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 TPV16.py:7
generate_required_files(self, order)
Definition TPV16.py:59
initial_conditions(self)
Definition TPV16.py:52