Skip to content

Commit cbbb662

Browse files
authored
Merge pull request #8 from hgp297/convert_pelicun
Pelicun conversion module
2 parents 4cde053 + 2f9c071 commit cbbb662

15 files changed

Lines changed: 2589 additions & 33 deletions

‎README.md‎

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ You should see the command help output with available options.
4040

4141
An assessment can be run directly from the command line, or as imported within a Python workflow. If `simulated_inputs.json` does not exist, it will be created using default inputs within `src/atc138/data`. Various assessment options can be overridden by placing them in file `optional_inputs.json` file within the input directory. This file can be customized for each assessment if desired and will be set as default values if not specified.
4242

43+
If `simulated_inputs.json` exists, the input builder will not re-run unless `--force_rebuild` is used in the CLI command.
44+
4345
### Running from the command line
4446

4547
With the input directory containing the necessary inputs, perform an assessment by running:
@@ -67,6 +69,24 @@ output_dir = './examples/ICSB/output'
6769
driver.run_analysis(example_dir, output_dir, seed=985)
6870
```
6971

72+
If `simulated_inputs.json` exists, the input builder will not re-run unless the argument `force_rebuild=True` is used for `driver.run_analysis`.
73+
74+
### Plotting outputs
75+
76+
Several basic plotting tools are provided in `plotters/`, which can be used after an analysis generates results. This is run with
77+
78+
```python
79+
from plotters.main_plot_functionality import plot_results
80+
output_dir = './examples/ICSB/output'
81+
plot_results(output_dir, p_gantt=50) # plot median realization
82+
```
83+
84+
which will plot:
85+
- Component and system-level breakdowns of hinderance to reoccupancy and functional status per day
86+
- Distribution of realizations achieving reoccupancy and functional status per day
87+
- Mean and per-realization breakdown of recovery trajectories
88+
- Gantt chart of impeding factors, repair work, number of workers, and recovery status of building per day for the realization with `p_gantt`-th percentile of functional recovery day.
89+
7090
## Example Inputs
7191
Four example inputs are provided to help illustrate both the construction of the inputs file and the implementation. These files are located in the `examples/` directory and can be run through the assessment by setting the variable names accordingly above.
7292

@@ -135,7 +155,6 @@ The file(s) listed below contain data that is optional for the assessment. If th
135155
The Python file listed below defines additional assessment inputs based on set of default values. Place this file in the input directory of your analysis.
136156
- **optional_inputs.json**: Defines default variables for the impedance_options, repair_time_options, functionality_options, and regional_impact variables listed in the inputs schema.
137157

138-
<!-- How does a user modify the static tables (now data) without touching the original data files? -->
139158

140159
### Static Data
141160
The csv tables listed below contain default component, damage state, system, and tenant function attributes that can be used to populate the required assessment inputs according to the methodology. These are located in the _data_ directory. To override the static data with custom versions, copy modified sheets and place them in the input directory.
@@ -145,3 +164,29 @@ The csv tables listed below contain default component, damage state, system, and
145164
- **tenant_function_requirements.csv**: Default tenant requirements for function for various occupancy classes.
146165
- **systems.csv**: Attributes of each default ssytem considered in the method.
147166
- **temp_repair_class.csv**: Attributes of each temprary repair class considered in the method.
167+
168+
## Building from Pelicun outputs
169+
This conversion module is compatible with PBE Application version ~=4.4 and pelicun~=3.5. To build and rebuild raw ATC-138 input files from Pelicun outputs, ensure that simulated_inputs.json does not currently exist in the model directory. Then, the following Pelicun files are required as input:
170+
- **CMP_QNT.csv**: component sheet
171+
- **DL_summary.csv**: summary of damage and loss, to read in irreparable cases
172+
- **DMG_sample.csv**: damage sample of all realizations
173+
- **DV_repair_sample.csv**: decision variable sample of all realizations. The legacy name **DV_bldg_repair_sample.csv** is supported as a fallback name.
174+
- **general_inputs.json**: egress, occupancy, dimensions, ratio of engineering cost as a fraction of total repair cost. Number of elevators or stairs per story can also be explicitly specified here if it is desired to override the quantity in CMP_QNT.
175+
- **input.json**: JSON file with number of stories, replacement cost, plan area
176+
- **side_damage_ratio.csv** (optional): CSV of size num_reals x 2, specifies the damage distributed to each side for cladding components. This fraction is constant across the height of the building. Column 1 is the fraction of damaged components in direction 0, side 1. Column 2 is the fraction of damaged components in direction 1, side 1. These should sum up to 0.5. Parallel sides will have the same fraction of damage. If not provided, these ratios will be sampled uniformly for all realizations.
177+
178+
Additionally, the following inputs are required similar to the raw build procedure, but are not generated by Pelicun:
179+
- **tenant_unit_list.csv**
180+
181+
Then, the either the CLI or import method can be used to run the analysis as before, which will detect the presence of Pelicun files to use as build inputs. An example is provided in the model directory `RCSW_4story_pelicun`.
182+
183+
_Cladding damage:_ Current implementation of Pelicun inputs will randomly distribute the damage across 4 sides of the building for the purpose of cladding damage assignment. Custom side-assignment is planned for a future implementation.
184+
185+
```python
186+
from src.atc138 import driver
187+
188+
example_dir = './examples/RCSW_4story_pelicun'
189+
output_dir = './examples/RCSW_4story_pelicun/output'
190+
191+
driver.run_analysis(example_dir, output_dir, seed=985)
192+
```
Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
ID,Units,Location,Direction,Theta_0,Blocks,Family,Theta_1,Comment
2+
B.20.22.001,SF,4,"1,2",4320,144,,0.6,"B2022.001 Curtain Walls - Generic Midrise Stick-Built Curtain wall, Config: Monolithic, Lamination: Unknown, Glass Type: Unknown, Details: Aspect ratio = 6:5, Other details Unknown"
3+
B.30.11.011,SF,4,0,3888,38,,1.3,"B3011.011 Concrete tile roof, tiles secured and compliant with UBC94"
4+
C.10.11.001a,LF,4,"1,2",1440,14,,0.2,"C1011.001a Wall Partition, Type: Gypsum with metal studs, Full Height, Fixed Below, Fixed Above"
5+
C.30.11.001a,LF,4,"1,2",108.9,1,,0.7,"C3011.001a Wall Partition, Type: Gypsum + Wallpaper, Full Height, Fixed Below, Fixed Above"
6+
C.30.27.001,SF,4,0,10800,108,,0.2,"C3027.001 Raised Access Floor, non seismically rated."
7+
C.30.32.001a,SF,4,0,12960,51,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
8+
C.30.32.001a,SF,4,0,720,2,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
9+
C.30.32.001a,SF,4,0,432,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
10+
C.30.32.001a,SF,4,0,288,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
11+
D.20.21.011a,LF,4,0,604.8,1,,0.7,"D2021.011a Cold or Hot Potable - Small Diameter Threaded Steel - (2.5 inches in diameter or less), SDC A or B, PIPING FRAGILITY"
12+
D.30.41.012a,LF,4,0,288,1,,0.2,"D3041.012a HVAC Galvanized Sheet Metal Ducting - 6 sq. ft cross sectional area or greater, SDC A or B"
13+
D.30.41.011a,LF,4,0,1080,1,,0.2,"D3041.011a HVAC Galvanized Sheet Metal Ducting less than 6 sq. ft in cross sectional area, SDC A or B"
14+
D.30.41.031a,EA,4,0,129.6,12,,0.5,"D3041.031a HVAC Drops / Diffusers in suspended ceilings - No independent safety wires, SDC A or B"
15+
D.30.41.041a,EA,4,0,72,7,,0.2,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
16+
D.30.41.041a,EA,4,0,28.8,2,,0.5,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
17+
C.30.34.001,EA,4,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
18+
C.30.34.001,EA,4,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
19+
D.40.11.021a,LF,4,0,2880,2,,0.1,"D4011.021a Fire Sprinkler Water Piping - Horizontal Mains and Branches - Old Style Victaulic - Thin Wall Steel - No bracing, SDC A or B, PIPING FRAGILITY"
20+
D.40.11.031a,EA,4,0,129.6,1,,0.2,"D4011.031a Fire Sprinkler Drop Standard Threaded Steel - Dropping into unbraced lay-in tile SOFT ceiling - 6 ft. long drop maximum, SDC A or B"
21+
B.20.22.001,SF,3,"1,2",4320,144,,0.6,"B2022.001 Curtain Walls - Generic Midrise Stick-Built Curtain wall, Config: Monolithic, Lamination: Unknown, Glass Type: Unknown, Details: Aspect ratio = 6:5, Other details Unknown"
22+
B.30.11.011,SF,3,0,3888,38,,1.3,"B3011.011 Concrete tile roof, tiles secured and compliant with UBC94"
23+
C.10.11.001a,LF,3,"1,2",1440,14,,0.2,"C1011.001a Wall Partition, Type: Gypsum with metal studs, Full Height, Fixed Below, Fixed Above"
24+
C.30.11.001a,LF,3,"1,2",108.9,1,,0.7,"C3011.001a Wall Partition, Type: Gypsum + Wallpaper, Full Height, Fixed Below, Fixed Above"
25+
C.30.27.001,SF,3,0,10800,108,,0.2,"C3027.001 Raised Access Floor, non seismically rated."
26+
C.30.32.001a,SF,3,0,12960,51,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
27+
C.30.32.001a,SF,3,0,720,2,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
28+
C.30.32.001a,SF,3,0,432,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
29+
C.30.32.001a,SF,3,0,288,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
30+
D.20.21.011a,LF,3,0,604.8,1,,0.7,"D2021.011a Cold or Hot Potable - Small Diameter Threaded Steel - (2.5 inches in diameter or less), SDC A or B, PIPING FRAGILITY"
31+
D.30.41.012a,LF,3,0,288,1,,0.2,"D3041.012a HVAC Galvanized Sheet Metal Ducting - 6 sq. ft cross sectional area or greater, SDC A or B"
32+
D.30.41.011a,LF,3,0,1080,1,,0.2,"D3041.011a HVAC Galvanized Sheet Metal Ducting less than 6 sq. ft in cross sectional area, SDC A or B"
33+
D.30.41.031a,EA,3,0,129.6,12,,0.5,"D3041.031a HVAC Drops / Diffusers in suspended ceilings - No independent safety wires, SDC A or B"
34+
D.30.41.041a,EA,3,0,72,7,,0.2,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
35+
D.30.41.041a,EA,3,0,28.8,2,,0.5,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
36+
C.30.34.001,EA,3,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
37+
C.30.34.001,EA,3,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
38+
D.40.11.021a,LF,3,0,2880,2,,0.1,"D4011.021a Fire Sprinkler Water Piping - Horizontal Mains and Branches - Old Style Victaulic - Thin Wall Steel - No bracing, SDC A or B, PIPING FRAGILITY"
39+
D.40.11.031a,EA,3,0,129.6,1,,0.2,"D4011.031a Fire Sprinkler Drop Standard Threaded Steel - Dropping into unbraced lay-in tile SOFT ceiling - 6 ft. long drop maximum, SDC A or B"
40+
B.20.22.001,SF,2,"1,2",4320,144,,0.6,"B2022.001 Curtain Walls - Generic Midrise Stick-Built Curtain wall, Config: Monolithic, Lamination: Unknown, Glass Type: Unknown, Details: Aspect ratio = 6:5, Other details Unknown"
41+
B.30.11.011,SF,2,0,3888,38,,1.3,"B3011.011 Concrete tile roof, tiles secured and compliant with UBC94"
42+
C.10.11.001a,LF,2,"1,2",1440,14,,0.2,"C1011.001a Wall Partition, Type: Gypsum with metal studs, Full Height, Fixed Below, Fixed Above"
43+
C.30.11.001a,LF,2,"1,2",108.9,1,,0.7,"C3011.001a Wall Partition, Type: Gypsum + Wallpaper, Full Height, Fixed Below, Fixed Above"
44+
C.30.27.001,SF,2,0,10800,108,,0.2,"C3027.001 Raised Access Floor, non seismically rated."
45+
C.30.32.001a,SF,2,0,12960,51,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
46+
C.30.32.001a,SF,2,0,720,2,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
47+
C.30.32.001a,SF,2,0,432,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
48+
C.30.32.001a,SF,2,0,288,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
49+
D.20.21.011a,LF,2,0,604.8,1,,0.7,"D2021.011a Cold or Hot Potable - Small Diameter Threaded Steel - (2.5 inches in diameter or less), SDC A or B, PIPING FRAGILITY"
50+
D.30.41.012a,LF,2,0,288,1,,0.2,"D3041.012a HVAC Galvanized Sheet Metal Ducting - 6 sq. ft cross sectional area or greater, SDC A or B"
51+
D.30.41.011a,LF,2,0,1080,1,,0.2,"D3041.011a HVAC Galvanized Sheet Metal Ducting less than 6 sq. ft in cross sectional area, SDC A or B"
52+
D.30.41.031a,EA,2,0,129.6,12,,0.5,"D3041.031a HVAC Drops / Diffusers in suspended ceilings - No independent safety wires, SDC A or B"
53+
D.30.41.041a,EA,2,0,72,7,,0.2,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
54+
D.30.41.041a,EA,2,0,28.8,2,,0.5,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
55+
C.30.34.001,EA,2,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
56+
C.30.34.001,EA,2,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
57+
D.40.11.021a,LF,2,0,2880,2,,0.1,"D4011.021a Fire Sprinkler Water Piping - Horizontal Mains and Branches - Old Style Victaulic - Thin Wall Steel - No bracing, SDC A or B, PIPING FRAGILITY"
58+
D.40.11.031a,EA,2,0,129.6,1,,0.2,"D4011.031a Fire Sprinkler Drop Standard Threaded Steel - Dropping into unbraced lay-in tile SOFT ceiling - 6 ft. long drop maximum, SDC A or B"
59+
B.20.22.001,SF,1,"1,2",4320,144,,0.6,"B2022.001 Curtain Walls - Generic Midrise Stick-Built Curtain wall, Config: Monolithic, Lamination: Unknown, Glass Type: Unknown, Details: Aspect ratio = 6:5, Other details Unknown"
60+
B.30.11.011,SF,1,0,3888,38,,1.3,"B3011.011 Concrete tile roof, tiles secured and compliant with UBC94"
61+
C.10.11.001a,LF,1,"1,2",1440,14,,0.2,"C1011.001a Wall Partition, Type: Gypsum with metal studs, Full Height, Fixed Below, Fixed Above"
62+
C.30.11.001a,LF,1,"1,2",108.9,1,,0.7,"C3011.001a Wall Partition, Type: Gypsum + Wallpaper, Full Height, Fixed Below, Fixed Above"
63+
C.30.27.001,SF,1,0,10800,108,,0.2,"C3027.001 Raised Access Floor, non seismically rated."
64+
C.30.32.001a,SF,1,0,12960,51,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
65+
C.30.32.001a,SF,1,0,720,2,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
66+
C.30.32.001a,SF,1,0,432,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
67+
C.30.32.001a,SF,1,0,288,1,,0,"C3032.001a Suspended Ceiling, SDC A,B,C, Area (A): A < 250, Vert support only"
68+
D.20.21.011a,LF,1,0,604.8,1,,0.7,"D2021.011a Cold or Hot Potable - Small Diameter Threaded Steel - (2.5 inches in diameter or less), SDC A or B, PIPING FRAGILITY"
69+
D.30.41.012a,LF,1,0,288,1,,0.2,"D3041.012a HVAC Galvanized Sheet Metal Ducting - 6 sq. ft cross sectional area or greater, SDC A or B"
70+
D.30.41.011a,LF,1,0,1080,1,,0.2,"D3041.011a HVAC Galvanized Sheet Metal Ducting less than 6 sq. ft in cross sectional area, SDC A or B"
71+
D.30.41.031a,EA,1,0,129.6,12,,0.5,"D3041.031a HVAC Drops / Diffusers in suspended ceilings - No independent safety wires, SDC A or B"
72+
D.30.41.041a,EA,1,0,72,7,,0.2,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
73+
D.30.41.041a,EA,1,0,28.8,2,,0.5,"D3041.041a Variable Air Volume (VAV) box with in-line coil, SDC A or B"
74+
C.30.34.001,EA,1,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
75+
C.30.34.001,EA,1,0,216,216,,0.3,C3034.001 Independent Pendant Lighting - non seismic
76+
D.40.11.021a,LF,1,0,2880,2,,0.1,"D4011.021a Fire Sprinkler Water Piping - Horizontal Mains and Branches - Old Style Victaulic - Thin Wall Steel - No bracing, SDC A or B, PIPING FRAGILITY"
77+
D.40.11.031a,EA,1,0,129.6,1,,0.2,"D4011.031a Fire Sprinkler Drop Standard Threaded Steel - Dropping into unbraced lay-in tile SOFT ceiling - 6 ft. long drop maximum, SDC A or B"
78+
C.20.11.001a,EA,4,"1,2",2.9,2,,0.2,C2011.001a Prefabricated steel stair with steel treads and landings with seismic joints that accommodate drift.
79+
D.50.12.021a,EA,4,0,1,1,,0.4,D5012.021a Low Voltage Switchgear - Capacity: 100 to <350 Amp - Unanchored equipment that is not vibration isolated - Equipment fragility only
80+
C.20.11.001a,EA,3,"1,2",2.9,2,,0.2,C2011.001a Prefabricated steel stair with steel treads and landings with seismic joints that accommodate drift.
81+
D.50.12.021a,EA,3,0,1,1,,0.4,D5012.021a Low Voltage Switchgear - Capacity: 100 to <350 Amp - Unanchored equipment that is not vibration isolated - Equipment fragility only
82+
C.20.11.001a,EA,2,"1,2",2.9,2,,0.2,C2011.001a Prefabricated steel stair with steel treads and landings with seismic joints that accommodate drift.
83+
D.50.12.021a,EA,2,0,1,1,,0.4,D5012.021a Low Voltage Switchgear - Capacity: 100 to <350 Amp - Unanchored equipment that is not vibration isolated - Equipment fragility only
84+
C.20.11.001a,EA,1,"1,2",2.9,2,,0.2,C2011.001a Prefabricated steel stair with steel treads and landings with seismic joints that accommodate drift.
85+
D.50.12.021a,EA,1,0,1,1,,0.4,D5012.021a Low Voltage Switchgear - Capacity: 100 to <350 Amp - Unanchored equipment that is not vibration isolated - Equipment fragility only
86+
D.10.14.011,EA,roof,0,2,2,,0.7,"D1014.011 Traction Elevator - Applies to most California Installations 1976 or later, most western states installations 1982 or later and most other U.S installations 1998 or later."
87+
D.30.31.011a,EA,roof,0,3,3,,0.1,D3031.011a Chiller - Capacity: < 100 Ton - Unanchored equipment that is not vibration isolated - Equipment fragility only
88+
D.30.31.021a,EA,roof,0,3,3,,0.1,D3031.021a Cooling Tower - Capacity: < 100 Ton - Unanchored equipment that is not vibration isolated - Equipment fragility only
89+
D.30.52.011a,EA,roof,0,13,13,,0.2,D3052.011a Air Handling Unit - Capacity: <5000 CFM - Unanchored equipment that is not vibration isolated - Equipment fragility only
90+
D.50.12.013a,EA,roof,0,2.9,2,,0.5,D5012.013a Motor Control Center - Capacity: all - Unanchored equipment that is not vibration isolated - Equipment fragility only
91+
B.10.44.101,SF,1--4,"1,2",288,2,,,Slender concrete wall
92+
B.10.49.012,EA,1--4,"1,2",21,21,,,RC slab-column connections

0 commit comments

Comments
 (0)