Command: python HazardSimulation.py --hazard_config "PATH/TO/HazardConfiguration_EQ2.json"
User input:
- A configuration json file (e.g., HazardConfiguration_EQ1.json)
- A csv file for site locations and Vs30 values (e.g., SiteFile.csv The configuration json file contains 4 sections:
(1) Site list - providing the csv filename and specifying the site ID range
"Site": {
"Type": "From_CSV",
"input_file": "SiteFile.csv",
"min_ID": 1,
"max_ID": 2
}
(2) Scenario information - specifying scenario type, number of scenarios, generator type, and earthquake rupture. Currently, two types of EqRupture are supported: "ERF" (earthquake rupture forecast) and "PointSource" "ERF" provides users to select historical earthquakes as the scenarios to run. Historical earthquake data are available from 4 supported "Model"s: "WGCEP (2007) UCERF2 - Single Branch", "Mean UCERF3", "Mean UCERF3 FM3.1", and "Mean UCERF3 FM3.2". Users can specify keywords in "Name" to search earthquakes. "min_Mag", "max_Mag", and "max_Dist" are optional to filter earthquakes.
"Scenario": {
"Type": "Earthquake",
"Number": 1,
"Generator": "Selection",
"EqRupture": {
"Type": "ERF",
"Model": "WGCEP (2007) UCERF2 - Single Branch",
"Name": "San Andreas",
"min_Mag": 7.0,
"max_Mag": 8.0,
"max_Dist": 200.0
}
}
"PointSource" lets users to directly prescribe the earthquake properties including magnitude, earthquake focus location, average rake, and average dip.
"Scenario": {
"Type": "Earthquake",
"Number": 1,
"Generator": "Selection",
"EqRupture": {
"Type": "PointSource",
"Magnitude": 6.0,
"Location": {
"Latitude": 37.9,
"Longitude": -122.3,
"Depth": 0.0
},
"AverageRake": 0.0,
"AverageDip": 90.0
}
}
(3) Event configuration - configuring how many ground motion records per site in each scenario ("NumberPerSite"), which ground motion prediction equation to be used ("GMPE"), which correlation models to be used ("CorrelationModel"), which intensity measures to be computed ("IntensityMeasure"), how much records can be scaled to be fit the target intensity measures ("ScalingFactor"), whether to save simulated IM ("SaveIM"), and whether to download records from "Database".
"Event": {
"NumberPerSite": 10,
"GMPE": {
"Type": "Chiou & Youngs (2014)",
"Parameters": {}
},
"CorrelationModel": {
"SaInterEvent": "Baker & Jayaram (2008)",
"SaIntraEvent": "Markhvida et al. (2017)"
},
"IntensityMeasure": {
"Type": "SA",
"Periods": [0.01, 0.02, 0.05, 0.1, 0.2, 0.5, 1.0, 2.0, 3.0, 4.0, 5.0, 7.5, 10.0]
},
"ScalingFactor": {
"Maximum": 20.0,
"Minimum": 0.1
},
"SaveIM": true,
"Database": "NGAWest2",
"UserName": "[email protected]",
"UserPassword": "123456",
"OutputFormat": "SimCenterEvent"
}
Currently supported GMPEs: "Abrahamson, Silva & Kamai (2014)", "Boore, Stewart, Seyhan & Atkinson (2014)", "Campbell & Bozorgnia (2014)", and "Chiou & Youngs (2014)". Currently supported correlation models: "Baker & Jayaram (2008)" (for inter-event), "Jayaram & Baker (2009)", "Loth & Baker (2013)", and "Markhvida et al. (2017)" (for intra-event).
(4) Directory - defining the working, input, and output directories.
"Directory":{
"Work": "PATH/TO/HazardSimulation/",
"Input": "PATH/TO/HazardSimulation/test/eq_input/",
"Output": "PATH/TO/HazardSimulation/test/records/"
}
Output files:
- A "SiteIM.json" file (if "SaveIM" is true) for simulated response spectra
- A "records" folder (if "UserName", "UserPassword", and "Output" directory are provided) of selected ground motion records for the user-defined earthquake scenario(s).
License:
- OpenSHA-1.5.2 is subjected to Apache-2.0 License
- chromedriver is subjected to Apache-2.0 License