Open cashccherry opened 3 months ago
Hi Cash,
I found that your tomo_file.xyz is created with a wrong order on x and z,
You file here is:
0 0 476800 476800
3200 3200
150 150
3050 8950 2526 4365 3000 3000
0 0 8000 4179 3000
0 3200 8000 4179 3000
0 6400 8000 4179 3000
0 9600 8000 4179 3000
but what specfem2d actually needs is
0 0 476800 476800
3200 3200
150 150
3050 8950 2526 4365 3000 3000
0.0 0.0 8000.0 4179.0 3000.0
3200.0 0.0 8000.0 4179.0 3000.0
6400.0 0.0 8000.0 4179.0 3000.0
9600.0 0.0 8000.0 4179.0 3000.0
Also in your Par_file
at the Velocity and density models
section, you need to modify the model like:
#-----------------------------------------------------------
#
# Velocity and density models
#
#-----------------------------------------------------------
# number of model materials
nbmodels = 1
# available material types (see user manual for more information)
...
# tomo: model_number -1 0 0 A 0 0 0 0 0 0 0 0 0 0
...
###1 -1 9999 9999 .5 0 0 9999 9999 0 0 0 0 0 0 #### REPLACED LINE HERE
1 -1 0 0 0.5 0 0 0 0 0 0 0 0 0 0
# external tomography file
TOMOGRAPHY_FILE = ./DATA/tomo_file_sorted.xyz
then your simulation will be fine :smiley:
FYI: here is the code which reads the tomo file. You can see the explanation on the file format.
Description
The mesher reads a tomographic file with differing velocities, but the wavefield looks like its run on a homogeneous model.
Tomo file model
Wavefield image
31f)
Included files:
DATA.zip run.sh.zip
Affected SPECFEM2D version
98741db1a0c8082ca57364f5b17ea95df6cbf1c2
Your software and hardware environment
FC=gfortran MPI=(can't find mpi on my computer and serial run) MacBook Pro 16 GB RAM macOS 14.0
Reproduction steps
Screenshots
Logs
OS
Mac