You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

This guide is for someone who would like to run a simulation with current library and packaging.

Step-by-step guide

How to create a working folder

  1. get the current working version of gm_sim_pkg by using git clone:
    $ git clone git@github.com:ucgmsim/gm_sim_pkg.git
  2. download the lastest package from the FTP server:
    $ download script and ftpserver
  3. Go to the location where you cloned gm_sim_pkg, and use the install.sh to install the package just downloaded:
    $ ./install.sh gmsim_pack_latest.tar.gz event_date event_location event_magnitude
    e.g. $ ./install.sh gmsim_pack_latest.tar.gz 20100904 Darfield 7.1
  4. Follow the instruction shown on screen to create required Models and files.

How to create a Velocity Model

  1. Go to the VM directory that instruction has provided
    e.g. $ cd /home/jonney/20100904_Darfield_m7p1_201705181350/VM
  2. Create the config file that is needed for generating a Velocity Model
    $ config_vm.py magnitude centroid_Depth Latitude Longitude
    e.g. $ config_vm.py 7.1  46.00 172.3 -43.6
  3. Edit the parameter file to your requirements with prefered editor
    e.g. $ vim params_vel.py
  4. If you have edited the params_vel.py, please run test_vm_params.py
    $ test_vm_params.py
  5. Run make_vm.sh to create the Velocity Model
    $ make_vm.sh
  6. Follow the instruction given on the screen to provide a path to a admin.

How to create Rupture Model (Source)

  1. Go to the Src directory that instruction has provided
    e.g. $ cd /home/jonney/20100904_Darfield_m7p1_201705181350/Src
  2. Create the config file that is needed for generating a Rupture Model
    $ config_src.py type
    e.g. $ config_src.py 2
  3. Go to the folder provided by instrutions
    e.g. $ cd /home/jonney/20100904_Darfield_m7p1_201705181350/Src/Model/20100904_Darfield_m7p1/t2_103245_20170518_175214
  4. Edit the setSrfParams.py
    note: every variables with #!!!PLEASE SPECIFY!!!# must be provided
  5. Create the Model using make_src.sh
    e.g. $ make_src.sh
  6. Follow the instruction given on the screen to provide a path to a admin.

How to create observation files

note: you can skip this part if you are running for a future event (not yet happened)



  • No labels