this will create all the parameters needed to run adv_ims, either manually or using automated workflow

Suppose $gmsim is where your environment is. 

Edit root_defaults.yaml 

Suppose the workflow code is located at $gmsim/workflow 

root_defaults.yaml is located under $gmsim/workflow/templates/gmsim/20.4.1.4, where 20.4.1.4 is the version name of the GMSIM. Let's assume that we are using this version for this demo.

This file will be used for automated workflow.

Since we are not re-running simulation for ground motions, we only care about the value under "advanced_IM". 
Add the name of models to the list [ ] 
Edit match_obs_stations to the observed_data directory. This should be the full path to the observation that contains all the fault  (or event) subdirectories : eg. 

advanced_IM:
    models: [Steel_MF_5Story,SAC_Steel_MF_3Story,SAC_Steel_MF_9Story]
    match_obs_stations: /nesi/nobackup/nesi00213/RunFolder/ykh22/Adv_IM/v20p5p8_test/ObservedGroundMotions/

This is needed to skip running advanced_IM calculation for stations that do not have observed data.


(Optional) Edit adv_config

Update the timeout threshold. We are setting ATC_Steel_SCBF_12Story to 21600 seconds (= 6 hours). This is separate from SLURM wall-clock time limit.

vim $gmsim/IM_calculation/IM_calculation/Advanced_IM/advanced_im_config.yaml



# Contains the extra parameters needed to configure each FEM

# script location: path to the run script for the FEM.
#                  Relative paths are from the advanced_IM folder.
#                  Absolute paths also work
# timeout_threshold: the time(seconds) for each OpenSees call before getting killed.
#                    since each component is a separate call, this value is per-component-based.
#                    set to null if no timeout is needed.

Steel_MF_5Story:
  script_location: 'Models/Steel_MF_5Story/run.py'
  timeout_threshold: None
SAC_Steel_MF_3Story:
  script_location: 'Models/SAC_Steel_MF_3Story/run.py'
  timeout_threshold: 30
SAC_Steel_MF_9Story:
  script_location: 'Models/SAC_Steel_MF_9Story/run.py'
  timeout_threshold: null
Spear_3D_Model:
  script_location: 'Models/Spear_3D_Model/run.py'
  timeout_threshold: null
ATC_Steel_SCBF_3Story:
  script_location: 'Models/ATC_Steel_SCBF_3Story/run.py'
  timeout_threshold: null
ATC_Steel_SCBF_6Story:
  script_location: 'Models/ATC_Steel_SCBF_6Story/run.py'
  timeout_threshold: null
ATC_Steel_SCBF_12Story:
  script_location: 'Models/ATC_Steel_SCBF_12Story/run.py'
  timeout_threshold: 21600
Taghavi_Miranda_2005:
  script_location: 'Models/Taghavi_Miranda_2005/run.py'
  timeout_threshold: null

Create the directory structures for Automatic Workflow

1. path to the root working directory  2. list of events to run.  3. gmsim template version

python $gmsim/workflow/scripts/cybershake/install_cybershake.py /nesi/nobackup/nesi00213/RunFolder/ykh22/Adv_IM/v20p5p8_test /nesi/nobackup/nesi00213/RunFolder/ykh22/Adv_IM/v20p5p8_test/list_all_r 20.4.1.4

This will install all the directory structure and database for status management etc.

The gmsim template version should match the root_defaults.yaml  that you edited above.


  • No labels