Peano
Loading...
Searching...
No Matches
TPV6.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 bimaterial halfspace,
12 with high shear modulus contrast across the fault (a "well-posed" problem).
13
14 The description of the scenario can be found at: https://strike.scec.org/cvws/tpv6docs.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
24 ]
25
26 fault_coordinates = [
27 # Surface
28 [20., 0.0, 8.0],
29 [20., 0.0, 20.0],
30 [20., 0.0, 32.0],
31 # Underground
32 [20., 7.5, 8.0],
33 [20., 7.5, 32.0]
34 ]
35
37 return """
38 //Look on Curve_grid if x coord is >=20
39 if(x[0] >= 20.0)
40 { //Far Side
41 Q[Shortcuts::rho] = 2.225;
42 Q[Shortcuts::cp ] = 3.75;
43 Q[Shortcuts::cs ] = 2.165;
44 } else {
45 //Near Side
46 Q[Shortcuts::rho] = 2.67;
47 Q[Shortcuts::cp ] = 6.0;
48 Q[Shortcuts::cs ] = 3.464;
49 }
50"""
51
52 def generate_required_files(self, order):
53
54 dictionary = { "MODE": order+1 }
56 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV6/tpv6.yaml.template",
57 "tpv6.yaml", dictionary
58 )
59
61 os.path.dirname(os.path.realpath(__file__))+"/specs/TPV6/tpv6_fault.yaml",
62 "tpv6_fault.yaml"
63 )
64
65 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 TPV6.py:7
initial_conditions(self)
Definition TPV6.py:36
generate_required_files(self, order)
Definition TPV6.py:52