Skip to content

Commit d1653cd

Browse files
authored
Merge pull request #1792 from nqdu/fk_gpu_ac
implement stacey boundary condition for couple_with_injection on GPU, add
2 parents 5444b69 + c19d737 commit d1653cd

24 files changed

+6188
-759
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
XXXX2011 11 11 11 11 11 11 11 11 11.1111 111.1 1.1 1.1 EVENT1 EVENT111
2+
event name: SYNTHEVENT001
3+
time shift: 0.0
4+
half duration: 0.1
5+
latitude: 2000.0
6+
longitude: 200.0
7+
depth: -10.0
8+
Mrr: 1e23
9+
Mtt: 1e23
10+
Mpp: 1e23
11+
Mrt: 0
12+
Mrp: 0
13+
Mtp: 0
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
#
2+
# input file for embedded FK modeiling
3+
#
4+
# for each layer we give :
5+
# LAYER ilayer rho vp vs ztop
6+
# the last layer is the homogeneous half space
7+
#
8+
#
9+
# model description ---------------------
10+
NLAYER 5
11+
LAYER 1 1000. 1500. 0. 0.
12+
LAYER 2 2720. 5800. 3460. -5000.
13+
LAYER 3 2920. 6500. 3850. -20000.
14+
LAYER 4 3423. 8060. 4530. -35000.
15+
LAYER 5 3423. 8289. 4517. -120000.
16+
#----------------------------------------
17+
# incident wave p or sv
18+
INCIDENT_WAVE p
19+
#----------------------------------------
20+
# anlges of incomming wave
21+
BACK_AZIMUTH 68.
22+
TAKE_OFF 20.
23+
#----------------------------------------
24+
FREQUENCY_MAX 0.25
25+
#----------------------------------------
26+
TIME_WINDOW 100.
27+
#----------------------------------------
28+
# optional
29+
#ORIGIN_WAVEFRONT 1. 2. 3.
30+
#ORIGIN_TIME 0.

EXAMPLES/applications/small_example_coupling_FK_specfem_with_fluid/DATA/Par_file

Lines changed: 398 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
STA0001 XX 0. -100000.000000 0. -4000
2+
STA0002 XX 0. -68750.000000 0. -4000
3+
STA0003 XX 0. -37500.000000 0. -4000
4+
STA0004 XX 0. -6250.000000 0. -4000
5+
STA0005 XX 0. 25000.000000 0. -4000
6+
STA0006 XX 0. 56250.000000 0. -4000
7+
STA0007 XX 0. 87500.000000 0. -4000
8+
STA0008 XX 0. 118750.000000 0. -4000
9+
STA0009 XX 0. 150000.000000 0. -4000
10+
STA0010 XX 0. 25000.000000 0. -4999.9
11+
STA0011 XX 0. 25000.000000 0. -5000.1
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
#-----------------------------------------------------------
2+
#
3+
# Meshing input parameters
4+
#
5+
#-----------------------------------------------------------
6+
7+
# coordinates of mesh block in latitude/longitude and depth in km
8+
LATITUDE_MIN = -150000.0
9+
LATITUDE_MAX = 150000.0
10+
LONGITUDE_MIN = -150000.0
11+
LONGITUDE_MAX = 200000.0
12+
DEPTH_BLOCK_KM = 250.0
13+
UTM_PROJECTION_ZONE = 11
14+
SUPPRESS_UTM_PROJECTION = .true.
15+
16+
# file that contains the interfaces of the model / mesh
17+
INTERFACES_FILE = interfaces.dat
18+
19+
# file that contains the cavity
20+
CAVITY_FILE = no_cavity.dat
21+
22+
# number of elements at the surface along edges of the mesh at the surface
23+
# (must be 8 * multiple of NPROC below if mesh is not regular and contains mesh doublings)
24+
# (must be multiple of NPROC below if mesh is regular)
25+
NEX_XI = 16
26+
NEX_ETA = 16
27+
28+
# number of MPI processors along xi and eta (can be different)
29+
NPROC_XI = 2
30+
NPROC_ETA = 2
31+
32+
#-----------------------------------------------------------
33+
#
34+
# Doubling layers
35+
#
36+
#-----------------------------------------------------------
37+
38+
# Regular/irregular mesh
39+
USE_REGULAR_MESH = .true.
40+
# Only for irregular meshes, number of doubling layers and their position
41+
NDOUBLINGS = 0
42+
# NZ_DOUBLING_1 is the parameter to set up if there is only one doubling layer
43+
# (more doubling entries can be added if needed to match NDOUBLINGS value)
44+
NZ_DOUBLING_1 = 11
45+
NZ_DOUBLING_2 = 0
46+
47+
#-----------------------------------------------------------
48+
#
49+
# Visualization
50+
#
51+
#-----------------------------------------------------------
52+
53+
# create mesh files for visualisation or further checking
54+
CREATE_ABAQUS_FILES = .false.
55+
CREATE_DX_FILES = .false.
56+
CREATE_VTK_FILES = .true.
57+
58+
# stores mesh files as cubit-exported files into directory MESH/ (for single process run)
59+
SAVE_MESH_AS_CUBIT = .false.
60+
61+
# path to store the databases files
62+
LOCAL_PATH = ./DATABASES_MPI
63+
64+
#-----------------------------------------------------------
65+
#
66+
# CPML
67+
#
68+
#-----------------------------------------------------------
69+
70+
# CPML perfectly matched absorbing layers
71+
THICKNESS_OF_X_PML = 12.3
72+
THICKNESS_OF_Y_PML = 12.3
73+
THICKNESS_OF_Z_PML = 12.3
74+
75+
#-----------------------------------------------------------
76+
#
77+
# Domain materials
78+
#
79+
#-----------------------------------------------------------
80+
81+
# number of materials
82+
NMATERIALS = 5
83+
# define the different materials in the model as:
84+
# #material_id #rho #vp #vs #Q_Kappa #Q_mu #anisotropy_flag #domain_id
85+
# Q_Kappa : Q_Kappa attenuation quality factor
86+
# Q_mu : Q_mu attenuation quality factor
87+
# anisotropy_flag : 0 = no anisotropy / 1,2,... check the implementation in file aniso_model.f90
88+
# domain_id : 1 = acoustic / 2 = elastic
89+
1 2720 5800 3460 9999. 9999. 0 2
90+
2 2920 6500 3850 9999. 9999. 0 2
91+
3 3423 8060 4530 9999. 9999. 0 2
92+
4 3423 8289 4517 9999. 9999. 0 2
93+
5 1000 1500 0. 9999. 9999. 0 1
94+
95+
#-----------------------------------------------------------
96+
#
97+
# Domain regions
98+
#
99+
#-----------------------------------------------------------
100+
101+
# number of regions
102+
NREGIONS = 5
103+
# define the different regions of the model as :
104+
#NEX_XI_BEGIN #NEX_XI_END #NEX_ETA_BEGIN #NEX_ETA_END #NZ_BEGIN #NZ_END #material_id
105+
1 16 1 16 50 50 5
106+
1 16 1 16 47 49 1
107+
1 16 1 16 44 46 2
108+
1 16 1 16 27 43 3
109+
1 16 1 16 1 26 4
110+

0 commit comments

Comments
 (0)