Skip to content

Matlab codes/functions which controls SOFI3D

License

Notifications You must be signed in to change notification settings

brioglade/SOFI3Dmatlab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOFI3Dmatlab

Matlab codes/functions which controls SOFI3D.

SOFI3D is a finite-difference numerical simulation code which solves the elastic wave equation. The code is distributed here:https://git.scc.kit.edu/GPIAG-Software/SOFI3D.

We write a personal MATLAB code which control SOFI3D from Windows. The codes take care of converting matlab variable to SOFI3D formats. After the simulation, they also convert SOFI3D outputs, mainly seismograms, into matlab variables.

List of functions:

main__vxxx is the main matlab file that control all necessary parameters. Users have to run this matlab file to execute SOFI3D.

I/O functions

  1. examine_cube() Check the input cubes including velocities and density arrays. Return dimension of the cubes.

  2. define_core() Link to pre-determined seismic machines specifications. If core.NPROX, core.NPROY, and core.NPROZ are not defined, the function will parallelize the computaion using the maximum available number of cores in a specified machine number.

  3. create_source() Write a source file.

  4. create_receiver() Write a receiver file.

  5. create_cube() Write input files for SOFI3D.

  6. write_SOFI_json2() Write json file for SOFI3D.

  7. SSH_linux.py [NOT UPLOADED HERE!!] Take care of ssh process.

  8. export_seismograph2 Convert seismogram outputs from SOFI3D to matlab variables. Also, make correction to the seismograms to account for the padding. This function output "plt_params" which is a matlab structure variable. "plt_params" contains information about plotting axis of the seismograms.

display/plot functions

  1. display_single_seismogram(stack, plt_params.x_time, plt_params.cube_Lz) Only need first two arguments to plot a seismogram. However, if users provide the third parameter, the length of the domain, it will show a plot where we could manually pick the first arrival.

About

Matlab codes/functions which controls SOFI3D

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages