-
Notifications
You must be signed in to change notification settings - Fork 1
/
info_Comp_Fragility_Structural.m
599 lines (413 loc) · 29.9 KB
/
info_Comp_Fragility_Structural.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
function [PDS_ij_EDP, xm_Cost, numCompPerStory] = info_Comp_Fragility_Structural(i_n, i_m, x_PSDR_pdf, system, i_story)
% This function file returns from story number IDs (for each story):
% n = number of damage states a component may experience (this is per m)
% i_m = ID of component
% % % % % % % % % % % % % % % %
if i_m == 1
% % % % % % % % % % % % % % % %
numCompPerStory = 16; % below each SCBF
if i_n == 0
xm_EDP=0.04; beta_EDP=0.40; xm_Cost=0.; % 19224.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.04; beta_EDP=0.40;
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=19224.;
elseif system == 2 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=2)
xm_Cost=20082.;
elseif system == 5 % Isolated SMRF (RI=1)
xm_Cost=21363.;
end
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.07; beta_EDP=0.40;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.07; beta_EDP=0.40;
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=27263.;
elseif system == 2 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=2)
xm_Cost=29395.;
elseif system == 5 % Isolated SMRF (RI=1)
xm_Cost=32567.;
end
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.10; beta_EDP=0.40;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.10; beta_EDP=0.40;
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=32423.;
elseif system == 2 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=2)
xm_Cost=36657.;
elseif system == 5 % Isolated SMRF (RI=1)
xm_Cost=41890.;
end
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
% % % % % % % % % % % % % % % %
elseif i_m == 2
% % % % % % % % % % % % % % % %
numCompPerStory = 32;
if i_n == 0
xm_EDP=0.04; beta_EDP=0.40; xm_Cost=0.; % 9446.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.04; beta_EDP=0.40;
if i_story == 3
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=9446.;
elseif system == 2 || system == 5 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=1 or 2)
xm_Cost=(10246. + 9446.)/2.0; % Corrected to account for size of elements in gravity frames
end
elseif i_story == 5
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=9446.;
elseif system == 2 || system == 5 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=1 or 2)
xm_Cost=9446.;
end
end
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.07; beta_EDP=0.40;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.07; beta_EDP=0.40;
if i_story == 3
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=11246.;
elseif system == 2 || system == 5 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=1 or 2)
xm_Cost=(13012. + 11246.) / 2.0; % Corrected to account for size of elements in gravity frames
end
elseif i_story == 5
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=11246.;
elseif system == 2 || system == 5 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=1 or 2)
xm_Cost=11246.;
end
end
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.10; beta_EDP=0.40;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.10; beta_EDP=0.40;
if i_story == 3
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=38473.;
elseif system == 2 || system == 5 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=1 or 2)
xm_Cost=42533.;
end
elseif i_story == 5
if system == 1 || system == 3 || system == 4 % Non-isolated SCBF or Isolated SCBF (RI=1 or 2)
xm_Cost=38473.;
elseif system == 2 || system == 5 || system == 6 % Non-isolated SMRF or Isolated SMRF (RI=1 or 2)
xm_Cost=38473.;
end
end
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
% % % % % % % % % % % % % % % %
elseif i_m == 3
% % % % % % % % % % % % % % % %
numCompPerStory = 32;
if i_n == 0 % Column (W<=W27)
xm_EDP=0.03; beta_EDP=0.30; xm_Cost=0.% 16033.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.03; beta_EDP=0.30; xm_Cost=16033.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.04; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.04; beta_EDP=0.30; xm_Cost=25933.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.05; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.05; beta_EDP=0.30; xm_Cost=25933.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
% % % % % % % % % % % % % % % %
elseif i_m == 4
% % % % % % % % % % % % % % % %
numCompPerStory = 24;
% Determining different global slenderness ratio x_GP (=KL/r; Lignos and Karamanci, 2013)
% for different systems and different stories (K=1; L=all same; r=varies) - - - - - - - - -
K=1.0; L = 0.70*sqrt((15*12)^2+(12*12)^2);% Unit=in
if (i_story == 1 && system == 1) || (i_story == 2 && system == 1)
r = 2.89;
elseif (i_story == 3 && system == 1) || (i_story == 4 && system == 1)
r = 2.32;
elseif (i_story == 5 && system == 1)
r = 1.96;
elseif (i_story == 6 && system == 1)
r = 1.69;
elseif (i_story == 1 && system == 3) || (i_story == 2 && system == 3)
r = 2.89;
elseif (i_story == 3 && system == 3) || (i_story == 4 && system == 3)
r = 2.49;
elseif (i_story == 5 && system == 3)
r = 1.96;
elseif (i_story == 6 && system == 3)
r = 1.48;
elseif (i_story == 1 && system == 4) || (i_story == 2 && system == 4)
r = 2.18;
elseif (i_story == 3 && system == 4) || (i_story == 4 && system == 4)
r = 1.96;
elseif (i_story == 5 && system == 4)
r = 1.61;
elseif (i_story == 6 && system == 4)
r = 1.34;
end
x_GP = K*L/r;
% - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
if (i_story == 1 && system == 1) || (i_story == 2 && system == 1) || (i_story == 1 && system == 3) || (i_story == 2 && system == 3) % for first story non-isolated SCBF & isolated SCBF w. Ri=1, thicker HSS is more expensive for DS2 & DS3.
if i_n == 0 % Round HSS (60kg/m < brace weight < 147kg/m); Round HSS
xm_EDP=0.41 /100.; beta_EDP=0.51; xm_Cost=0.; % added "/100." on 22.Apr.2020
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (KL/r) - - - - -
xm_GP=63.6; beta_GP=0.46;
F_DS_ij_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = 1.0 - F_DS_ij*F_DS_ij_GP; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.41 /100.; beta_EDP=0.51; xm_Cost=29983.; % added "/100." on 22.Apr.2020
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.96 /100.; beta_EDP=0.45; % added "/100." on 22.Apr.2020
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (KL/r) - - - - -
xm_GP=63.6; beta_GP=0.46;
F_DS_i1_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
xm_GP=66.1; beta_GP=0.45;
F_DS_i2_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = F_DS_i1*F_DS_i1_GP - F_DS_i2*F_DS_i2_GP; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.96 /100.; beta_EDP=0.45; xm_Cost=47115.; % added "/100." on 22.Apr.2020
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=2.75 /100.; beta_EDP=0.51; % added "/100." on 22.Apr.2020
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (D/t/lambda_hd) - - - - -
xm_GP=66.1; beta_GP=0.45;
F_DS_i1_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
xm_GP=68.9; beta_GP=0.40;
F_DS_i2_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = F_DS_i1*F_DS_i1_GP - F_DS_i2*F_DS_i2_GP; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=2.75 /100.; beta_EDP=0.51; xm_Cost=47882.; % added "/100." on 22.Apr.2020
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (D/t/lambda_hd) - - - - -
xm_GP=68.9; beta_GP=0.40;
F_DS_ij_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = F_DS_ij*F_DS_ij_GP; % j=n, i.e. biggest damage
end
else % for others, the price will be lower.
if i_n == 0 % Round HSS (brace weight < 60kg/m); Round HSS
xm_EDP=0.41 /100.; beta_EDP=0.51; xm_Cost=0.% 29983.; % added "/100." on 22.Apr.2020
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (D/t/lambda_hd) - - - - -
xm_GP=63.6; beta_GP=0.46;
F_DS_ij_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = 1.0 - F_DS_ij*F_DS_ij_GP; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.41 /100.; beta_EDP=0.51; xm_Cost=29983.; % added "/100." on 22.Apr.2020
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.96 /100.; beta_EDP=0.45; % added "/100." on 22.Apr.2020
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (D/t/lambda_hd) - - - - -
xm_GP=63.6; beta_GP=0.46;
F_DS_i1_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
xm_GP=66.1; beta_GP=0.45;
F_DS_i2_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = F_DS_i1*F_DS_i1_GP - F_DS_i2*F_DS_i2_GP; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.96 /100.; beta_EDP=0.45; xm_Cost=37014.; % added "/100." on 22.Apr.2020
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=2.75 /100.; beta_EDP=0.51; % added "/100." on 22.Apr.2020
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (D/t/lambda_hd) - - - - -
xm_GP=66.1; beta_GP=0.45;
F_DS_i1_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
xm_GP=68.9; beta_GP=0.40;
F_DS_i2_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = F_DS_i1*F_DS_i1_GP - F_DS_i2*F_DS_i2_GP; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=2.75 /100.; beta_EDP=0.51; xm_Cost=36480.; % added "/100." on 22.Apr.2020
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
% Geometric parameters (D/t/lambda_hd) - - - - -
xm_GP=68.9; beta_GP=0.40;
F_DS_ij_GP = normcdf((log(x_GP/xm_GP))/beta_GP); % compute fragility function using Eq. 1 and estimated parameters
% - - - - - - - - - - - - - - - - - - - - - - -
PDS_ij_EDP = F_DS_ij*F_DS_ij_GP; % j=n, i.e. biggest damage
end
end
% % % % % % % % % % % % % % % %
elseif i_m == 5
% % % % % % % % % % % % % % % %
numCompPerStory = 8;
if system == 1 || system == 3 || system == 4 % if SCBF (isolated OR non-isolated)
if i_n == 0 % Moment connection; one-sided; <= W27
xm_EDP=0.03; beta_EDP=0.30; xm_Cost=0.% 16033.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.03; beta_EDP=0.30; xm_Cost=16033.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.04; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.04; beta_EDP=0.30; xm_Cost=25933.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.05; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.05; beta_EDP=0.30; xm_Cost=25933.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
elseif system == 2 || system == 5 || system == 6 % if SMRF (isolated OR non-isolated)
if i_n == 0 % one-sided; <= W27
xm_EDP=0.01; beta_EDP=0.17; xm_Cost=0.% 16033.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.01; beta_EDP=0.17; xm_Cost=0.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.0216; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.0216; beta_EDP=0.30; xm_Cost=16033.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.05; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.05; beta_EDP=0.30; xm_Cost=25933.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
end
% % % % % % % % % % % % % % % %
elseif i_m == 6
% % % % % % % % % % % % % % % %
numCompPerStory = 8; % only located at odd-numbered stories (= 1, 3, 5)
if system == 1 || system == 3 || system == 4 % if SCBF (isolated OR non-isolated)
if i_n == 0 % Moment connection; two-sided; <= W27
xm_EDP=0.03; beta_EDP=0.30; xm_Cost=0.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.03; beta_EDP=0.30; xm_Cost=30400.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.04; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.04; beta_EDP=0.30; xm_Cost=47000.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.05; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.05; beta_EDP=0.30; xm_Cost=47000.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
elseif system == 2 || system == 5 || system == 6 % if SMRF (isolated OR non-isolated)
if i_n == 0 % Moment connection; two-sided; <= W27
xm_EDP=0.01; beta_EDP=0.17; xm_Cost=0.% 30400.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.01; beta_EDP=0.17; xm_Cost=0.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.0216; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.0216; beta_EDP=0.30; xm_Cost=26567.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.05; beta_EDP=0.30;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.05; beta_EDP=0.30; xm_Cost=46999.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
end
% % % % % % % % % % % % % % % %
elseif i_m == 7
% % % % % % % % % % % % % % % %
% Added on 30Jan2021
if system == 1 || system == 3 || system == 4
numCompPerStory = 104; % SCBF
elseif system == 2 || system == 5 || system == 6
numCompPerStory = 80; % SMF
end
if i_n == 0 % Shear tab connections
xm_EDP=0.04; beta_EDP=0.40; xm_Cost=0.% 12107.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.04; beta_EDP=0.40; xm_Cost=12107.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.08; beta_EDP=0.40;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.08; beta_EDP=0.40; xm_Cost=12357.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.11; beta_EDP=0.40;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.11; beta_EDP=0.40; xm_Cost=12357.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
% % % % % % % % % % % % % % % %
elseif i_m == 8
% % % % % % % % % % % % % % % %
numCompPerStory = 21*(9.144*9.144); % total area of each floor (including area of elevator shafts for simplicity)
if i_n == 0 % Corrugated slab
xm_EDP=0.00375; beta_EDP=0.13; xm_Cost=0.;% 180.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = 1.0 - F_DS_ij; % j=0, i.e. no damage
elseif i_n == 1
xm_EDP=0.00375; beta_EDP=0.13; xm_Cost=18.; % xm_Cost=180.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.01; beta_EDP=0.22;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 2
xm_EDP=0.01; beta_EDP=0.22; xm_Cost=33.; % xm_Cost=330.;
F_DS_i1 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
xm_EDP=0.05; beta_EDP=0.35;
F_DS_i2 = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_i1 - F_DS_i2; % 1<=j<=n, i.e. some damage
elseif i_n == 3
xm_EDP=0.05; beta_EDP=0.35; xm_Cost=57.; % xm_Cost=570.;
F_DS_ij = normcdf((log(x_PSDR_pdf/xm_EDP))/beta_EDP); % compute fragility function using Eq. 1 and estimated parameters
PDS_ij_EDP = F_DS_ij; % j=n, i.e. biggest damage
end
end
end