-
Notifications
You must be signed in to change notification settings - Fork 12
/
load_combinations.py
1365 lines (1344 loc) · 118 KB
/
load_combinations.py
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
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
from typing import Union
import python_functions
class LoadCombination:
def __init__(
self,
etabs=None,
):
self.etabs = etabs
self.SapModel = etabs.SapModel
def select_load_combinations(self,
load_combinations : Union[bool, list] = None,
deselect_load_cases : bool = True,
) -> None:
if load_combinations is None:
load_combinations = self.get_load_combination_names()
if deselect_load_cases:
self.SapModel.DatabaseTables.SetLoadCasesSelectedForDisplay('')
self.SapModel.DatabaseTables.SetLoadCombinationsSelectedForDisplay(load_combinations)
def get_load_combination_names(self):
return self.SapModel.RespCombo.GetNameList()[1]
def add_load_combination(
self,
combo_name: str,
load_case_names: list = [],
scale_factor: float = 1,
type_: int = 0, # envelop: 1
):
'''
Add Envelop Load combination
'''
self.etabs.SapModel.RespCombo.add(combo_name, type_)
for case_name in load_case_names:
self.etabs.SapModel.RespCombo.SetCaseList(
combo_name,
type_, # loadcase=0, loadcombo=1
case_name, # cname
scale_factor, # sf
)
def get_load_combinations_of_type(
self,
type_: str = 'ALL', # 'GRAVITY' , 'SEISMIC
all_load_combos: Union[list, bool] = None,
):
'''
return load combinations with respect to type_
'''
if all_load_combos is None:
all_load_combos = self.SapModel.RespCombo.GetNameList()[1]
if type_ == 'ALL':
return all_load_combos
seismic_load_cases = self.etabs.load_cases.get_seismic_load_cases()
seismic_load_combos = []
for combo in all_load_combos:
if self.is_seismic(
combo,
seismic_load_cases=seismic_load_cases,
):
seismic_load_combos.append(combo)
if type_ == 'SEISMIC':
return seismic_load_combos
elif type_ == "GRAVITY":
return set(all_load_combos).difference(seismic_load_combos)
def is_seismic(
self,
combo: str,
seismic_load_cases: Union[list, bool] = None,
):
if seismic_load_cases is None:
seismic_load_cases = self.etabs.load_cases.get_seismic_load_cases()
load_cases = self.SapModel.RespCombo.GetCaseList(combo)[2]
for lc in load_cases:
if lc in seismic_load_cases:
return True
return False
def get_type_of_combo(self,
name : str,
):
map_dict = {
0 : 'Linear',
1 : 'Envelope',
2 : 'Absolute',
3 : 'SRSS',
4 : 'Range',
}
type_ = self.etabs.SapModel.RespCombo.GetTypeCombo(name)[0]
return map_dict[type_]
def get_expand_linear_load_combinations(self,
expanded_loads : dict,
):
combo_names = self.etabs.SapModel.RespCombo.GetNameList()[1]
seismic_load_cases = self.etabs.load_cases.get_seismic_load_cases()
new_combos = []
EX, EXN, EXP, EY, EYN, EYP = self.etabs.load_patterns.get_seismic_load_patterns()
for combo in combo_names:
type_ = self.get_type_of_combo(combo)
if type_ == 'Linear':
number_items, cases, scale_factores = self.etabs.SapModel.RespCombo.GetCaseList(combo)[1:4]
max_sf = 0
# for models that has
max_sf_cases = []
for case, sf in zip(cases, scale_factores):
if case in seismic_load_cases and abs(sf) > max_sf:
max_sf = abs(sf)
if max_sf == 0:
continue
for case, sf in zip(cases, scale_factores):
if case in seismic_load_cases and abs(sf) == max_sf:
max_sf_cases.append(case)
equal_cases = expanded_loads[max_sf_cases[0]]
# don't get existance load case, only load case that generated with expand
# load pattern or expand load case
index = cases.index(max_sf_cases[0])
load_pats = [i[0] for i in equal_cases if i[0] != max_sf_cases[0]]
n = len(load_pats)
for i, load in enumerate(load_pats, start=1):
name = f'{combo}({i}/{n}'
new_cases = list(cases)
new_cases[index] = load
# search for other compact load pattern in case of multi earthquake
# applied to structure for example EX1 and EX2
if len(max_sf_cases) > 1:
dir_ = None
for e in (EX, EXN, EXP, EY, EYN, EYP):
if load in e:
dir_ = e
for case in max_sf_cases:
equal_cases = expanded_loads[case]
index = cases.index(case)
load_pats = [pats[0] for pats in equal_cases if pats[0] != case]
for load in load_pats:
if load in dir_:
new_cases[index] = load
new_combos.append(
(name, number_items, new_cases, scale_factores)
)
# elif type_ == 'Envelope':
# pass
return new_combos
def apply_linear_load_combinations(self,
new_combos : list,
):
for combo in new_combos:
name = combo[0]
self.etabs.SapModel.RespCombo.Add(name, 0)
for number_item, case, scale_factore in zip(*combo[1:]):
self.etabs.SapModel.RespCombo.SetCaseList(
name,
number_item,
case,
scale_factore,
)
return True
def generate_concrete_load_combinations(self,
equivalent_loads : dict,
prefix : str = 'COMBO',
suffix : str = '',
rho_x : float = 1,
rho_y : float = 1,
type_ : str = 'Linear Add',
design_type: str = 'LRFD',
separate_direction: bool = False,
ev_negative: bool = True,
A: float = 0.3,
I: float = 1,
sequence_numbering: bool = False,
add_notional_loads: bool = False,
retaining_wall: bool = False,
omega_x: float=0,
omega_y: float=0,
rho_x1 : float = 1,
rho_y1 : float = 1,
omega_x1: float=0,
omega_y1: float=0,
code: str="ACI",
dynamic: str="", # '100-30' , 'angular'
):
data, notional_loads = generate_concrete_load_combinations(
equivalent_loads=equivalent_loads,
prefix=prefix,
suffix=suffix,
rho_x=rho_x,
rho_y=rho_y,
type_=type_,
design_type=design_type,
separate_direction=separate_direction,
ev_negative=ev_negative,
A=A,
I=I,
sequence_numbering=sequence_numbering,
add_notional_loads=add_notional_loads,
retaining_wall=retaining_wall,
omega_x=omega_x,
omega_y=omega_y,
rho_x1=rho_x1,
rho_y1=rho_y1,
omega_x1=omega_x1,
omega_y1=omega_y1,
code=code,
dynamic=dynamic,
)
if notional_loads:
self.etabs.load_patterns.add_notional_loads(notional_loads)
return data
def create_load_combinations_from_loads(self,
load_names: list,
suffix: str='',
prefix: str='',
type_: str = 'Concrete', # 'Steel'
code : Union[str, None] = None,
):
combos = []
load_cases = []
for load in load_names:
if load:
self.SapModel.RespCombo.Add(f'{prefix}{load}{suffix}', 0)
self.SapModel.RespCombo.SetCaseList(f'{prefix}{load}{suffix}', 0, load, 1)
combos.append(['Strength', f'{prefix}{load}{suffix}'])
load_cases.append(load)
# set overwrite for columns
if code is None:
code = self.etabs.design.get_code(type_)
code_string = self.etabs.design.get_code_string(type_, code)
# set design combo
import pandas as pd
if self.etabs.etabs_main_version < 20:
cols = ['Combo Type', 'Combo Name']
cols1 = ['Design Type']
else:
cols = ['ComboType', 'ComboName']
cols1 = ['DesignType']
if type_ == 'Concrete':
columns = self.etabs.frame_obj.set_column_dns_overwrite(code=code_string, type_=type_)
df = pd.DataFrame(combos,columns=cols)
table_key = 'Concrete Frame Design Load Combination Data'
elif type_ == 'Steel':
for c in combos:
c.insert(0, 'Steel Frame')
# self.etabs.set_infinite_bending_capacity_for_steel_columns(code_string)
df = pd.DataFrame(combos,
columns=cols1 + cols
)
table_key = 'Steel Design Load Combination Data'
columns = self.etabs.frame_obj.get_beams_columns(type_=1)[1]
self.etabs.database.apply_data(table_key, df)
return load_cases, columns, code
def get_mabhas6_load_combinations(
way='LRFD', # 'ASD'
separate_direction: bool = False,
retaining_wall: bool = False,
code: str = 'ACI',
dynamic: str= '',
):
'''
separate_direction: For 100-30 earthquake
'''
if separate_direction:
if retaining_wall:
if way == "LRFD":
if code.lower() == "aci":
if dynamic:
gravity = {
'11' : {'Dead':1.4, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'21' : {'Dead':1.2, 'L':1.6, 'L_5':1.6, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'22' : {'Dead':1.2, 'L':1.6, 'L_5':1.6, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'31' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'32' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'41' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'42' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
}
if dynamic == '100-30':
seismic = {
'51' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'52' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'53' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'54' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'71' : {'Dead':0.9, 'SXE': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'72' : {'Dead':0.9, 'SXE': 1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'73' : {'Dead':0.9, 'SYE': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'74' : {'Dead':0.9, 'SYE': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'81' : {'EV':-1},
}
elif dynamic == 'angular':
seismic = {
'5_1' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'5_2' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'5_3' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'5_4' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'7_1' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'7_2' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'7_3' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'7_4' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'81' : {'EV':-1},
}
gravity.update(seismic)
return gravity
else:
return {
'11' : {'Dead':1.4, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'21' : {'Dead':1.2, 'L':1.6, 'L_5':1.6, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'22' : {'Dead':1.2, 'L':1.6, 'L_5':1.6, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'31' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'32' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'41' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'42' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'51' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP': 1, 'EXP1': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'52' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN': 1, 'EXN1': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'53' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP':-1, 'EXP1':-1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'54' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN':-1, 'EXN1':-1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'55' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP': 1, 'EYP1': 1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'56' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN': 1, 'EYN1': 1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'57' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP':-1, 'EYP1':-1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'58' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN':-1, 'EYN1':-1, 'EV':1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'71' : {'Dead':0.9, 'EXP': 1, 'EXP1': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'72' : {'Dead':0.9, 'EXN': 1, 'EXN1': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 1.6},
'73' : {'Dead':0.9, 'EXP':-1, 'EXP1':-1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'74' : {'Dead':0.9, 'EXN':-1, 'EXN1':-1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'75' : {'Dead':0.9, 'EYP': 1, 'EYP1': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'76' : {'Dead':0.9, 'EYN': 1, 'EYN1': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'77' : {'Dead':0.9, 'EYP':-1, 'EYP1':-1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'78' : {'Dead':0.9, 'EYN':-1, 'EYN1':-1, 'EV':-1, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'81' : {'EV':-1},
}
elif code.lower() == "csa":
if dynamic:
gravity = {
'11' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'RoofLive':1.5},
'12' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'Snow':1.5},
'41' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'RoofLive':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'42' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'Snow':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'51' : {'Dead':0.85, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
}
if dynamic == '100-30':
seismic = {
'21' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'SXE': 0.84, 'EV':0.84},
'22' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'SXE': 0.84, 'EV':0.84},
'23' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'SYE': 0.84, 'EV':0.84},
'24' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'SYE': 0.84, 'EV':0.84},
'31' : {'Dead':0.85, 'SXE': 0.84, 'EV':-0.84},
'32' : {'Dead':0.85, 'SYE': 0.84, 'EV':-0.84},
'81' : {'EV':-0.84},
}
elif dynamic == 'angular':
seismic = {
'2_1' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'AngularDynamic': 0.84, 'EV':0.84},
'2_2' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'AngularDynamic': 0.84, 'EV':0.84},
'3_1' : {'Dead':0.85, 'AngularDynamic': 0.84, 'EV':-0.84},
'81' : {'EV':-0.84},
}
gravity.update(seismic)
return gravity
else:
return {
'11' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'RoofLive':1.5},
'12' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'Snow':1.5},
'21' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EV':0.84},
'22' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EV':0.84},
'23' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EV':0.84},
'24' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EV':0.84},
'25' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EV':0.84},
'26' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EV':0.84},
'27' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EV':0.84},
'28' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EV':0.84},
'29' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EV':0.84},
'210' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EV':0.84},
'211' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EV':0.84},
'212' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EV':0.84},
'213' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EV':0.84},
'214' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EV':0.84},
'215' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EV':0.84},
'216' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EV':0.84},
'31' : {'Dead':0.85, 'EXP': 0.84, 'EXP1': 0.84, 'EV':-0.84},
'32' : {'Dead':0.85, 'EXN': 0.84, 'EXN1': 0.84, 'EV':-0.84},
'33' : {'Dead':0.85, 'EXP':-0.84, 'EXP1':-0.84, 'EV':-0.84},
'34' : {'Dead':0.85, 'EXN':-0.84, 'EXN1':-0.84, 'EV':-0.84},
'35' : {'Dead':0.85, 'EYP': 0.84, 'EYP1': 0.84, 'EV':-0.84},
'36' : {'Dead':0.85, 'EYN': 0.84, 'EYN1': 0.84, 'EV':-0.84},
'37' : {'Dead':0.85, 'EYP':-0.84, 'EYP1':-0.84, 'EV':-0.84},
'38' : {'Dead':0.85, 'EYN':-0.84, 'EYN1':-0.84, 'EV':-0.84},
'41' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'RoofLive':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'42' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'Snow':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'51' : {'Dead':0.85, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'81' : {'EV':-0.84},
}
elif way == "ASD":
if dynamic:
gravity = {
'11' : {'Dead':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'21' : {'Dead':1, 'L':1, 'L_5':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'31' : {'Dead':1, 'Snow':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'32' : {'Dead':1, 'RoofLive':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'41' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'42' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'RoofLive':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
}
if dynamic == "100-30":
seismic = {
'71' : {'Dead':1, 'SXE': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'72' : {'Dead':1, 'SXE': 0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'73' : {'Dead':1, 'SYE': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'74' : {'Dead':1, 'SYE': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'81' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'82' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'83' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'84' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'101' : {'Dead':0.6, 'SXE': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'102' : {'Dead':0.6, 'SXE': 0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'103' : {'Dead':0.6, 'SYE': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'104' : {'Dead':0.6, 'SYE': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
}
elif dynamic == 'angular':
seismic = {
'7_1' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'7_2' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'7_3' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'7_4' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'8_1' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'8_2' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'8_3' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'8_4' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'10_1' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'10_2' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'10_3' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'10_4' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
}
gravity.update(seismic)
return gravity
else:
return {
'11' : {'Dead':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'21' : {'Dead':1, 'L':1, 'L_5':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'31' : {'Dead':1, 'Snow':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'32' : {'Dead':1, 'RoofLive':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'41' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'42' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'RoofLive':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'71' : {'Dead':1, 'EXP': 0.7, 'EXP1': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'72' : {'Dead':1, 'EXN': 0.7, 'EXN1': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'73' : {'Dead':1, 'EXP':-0.7, 'EXP1':-0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'74' : {'Dead':1, 'EXN':-0.7, 'EXN1':-0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'75' : {'Dead':1, 'EYP': 0.7, 'EYP1': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'76' : {'Dead':1, 'EYN': 0.7, 'EYN1': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'77' : {'Dead':1, 'EYP':-0.7, 'EYP1':-0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'78' : {'Dead':1, 'EYN':-0.7, 'EYN1':-0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'79' : {'Dead':1, 'EX': 0.7, 'EX1': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'710' : {'Dead':1, 'EX':-0.7, 'EX1':-0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'711' : {'Dead':1, 'EY': 0.7, 'EY1': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'712' : {'Dead':1, 'EY':-0.7, 'EY1':-0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'81' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP': 0.525, 'EXP1': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'82' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN': 0.525, 'EXN1': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'83' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP':-0.525, 'EXP1':-0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'84' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN':-0.525, 'EXN1':-0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'85' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP': 0.525, 'EYP1': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'86' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN': 0.525, 'EYN1': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'87' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP':-0.525, 'EYP1':-0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'88' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN':-0.525, 'EYN1':-0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'89' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' : 0.525, 'EX1' : 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'810' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' :-0.525, 'EX1' :-0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'811' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' : 0.525, 'EY1' : 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'812' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' :-0.525, 'EY1' :-0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'101' : {'Dead':0.6, 'EXP': 0.7, 'EXP1': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'102' : {'Dead':0.6, 'EXN': 0.7, 'EXN1': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'103' : {'Dead':0.6, 'EXP':-0.7, 'EXP1':-0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'104' : {'Dead':0.6, 'EXN':-0.7, 'EXN1':-0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'105' : {'Dead':0.6, 'EYP': 0.7, 'EYP1': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'106' : {'Dead':0.6, 'EYN': 0.7, 'EYN1': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'107' : {'Dead':0.6, 'EYP':-0.7, 'EYP1':-0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'108' : {'Dead':0.6, 'EYN':-0.7, 'EYN1':-0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'109' : {'Dead':0.6, 'EX' : 0.7, 'EX1' : 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 1.0},
'1010' : {'Dead':0.6, 'EX' :-0.7, 'EX1' :-0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'1011' : {'Dead':0.6, 'EY' : 0.7, 'EY1' : 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'1012' : {'Dead':0.6, 'EY' :-0.7, 'EY1' :-0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
}
else:
if way == "LRFD":
if code == 'ACI':
if dynamic:
gravity = {
'11' : {'Dead':1.4},
'21' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'RoofLive':0.5},
'22' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'Snow':0.5},
'31' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':1.6},
'32' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':1.6},
'41' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':0.5},
'42' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.5},
}
if dynamic == '100-30':
seismic = {
'51' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'EV':1},
'52' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'EV':1},
'71' : {'Dead':0.9, 'SXE': 1, 'EV':-1},
'72' : {'Dead':0.9, 'SYE': 1, 'EV':-1},
'81' : {'EV':-1},
}
elif dynamic == 'angular':
seismic = {
'5_1' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1},
'7_1' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1},
'81' : {'EV':-1},
}
gravity.update(seismic)
return gravity
else:
return {
'11' : {'Dead':1.4},
'21' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'RoofLive':0.5},
'22' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'Snow':0.5},
'31' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':1.6},
'32' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':1.6},
'41' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':0.5},
'42' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.5},
'51' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP': 1, 'EXP1': 1, 'EV':1},
'52' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN': 1, 'EXN1': 1, 'EV':1},
'53' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP':-1, 'EXP1':-1, 'EV':1},
'54' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN':-1, 'EXN1':-1, 'EV':1},
'55' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP': 1, 'EYP1': 1, 'EV':1},
'56' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN': 1, 'EYN1': 1, 'EV':1},
'57' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP':-1, 'EYP1':-1, 'EV':1},
'58' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN':-1, 'EYN1':-1, 'EV':1},
'71' : {'Dead':0.9, 'EXP': 1, 'EXP1': 1, 'EV':-1},
'72' : {'Dead':0.9, 'EXN': 1, 'EXN1': 1, 'EV':-1},
'73' : {'Dead':0.9, 'EXP':-1, 'EXP1':-1, 'EV':-1},
'74' : {'Dead':0.9, 'EXN':-1, 'EXN1':-1, 'EV':-1},
'75' : {'Dead':0.9, 'EYP': 1, 'EYP1': 1, 'EV':-1},
'76' : {'Dead':0.9, 'EYN': 1, 'EYN1': 1, 'EV':-1},
'77' : {'Dead':0.9, 'EYP':-1, 'EYP1':-1, 'EV':-1},
'78' : {'Dead':0.9, 'EYN':-1, 'EYN1':-1, 'EV':-1},
'81' : {'EV':-1},
}
elif code.lower() == "csa":
if dynamic:
gravity = {
'11' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'RoofLive':1.5},
'12' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'Snow':1.5},
'41' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'RoofLive':1.5},
'42' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'Snow':1.5},
}
if dynamic == "100-30":
seismic = {
'21' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'SXE': 0.84, 'EV':0.84},
'22' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'SYE': 0.84, 'EV':0.84},
'23' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'SXE': 0.84, 'EV':0.84},
'24' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'SYE': 0.84, 'EV':0.84},
'31' : {'Dead':0.85, 'SXE': 0.84, 'EV':-0.84},
'32' : {'Dead':0.85, 'SYE': 0.84, 'EV':-0.84},
'81' : {'EV':-0.84},
}
elif dynamic == 'angular':
seismic = {
'2_1' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'AngularDynamic': 0.84, 'EV':0.84},
'2_2' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'AngularDynamic': 0.84, 'EV':0.84},
'3_1' : {'Dead':0.85, 'AngularDynamic': 0.84, 'EV':-0.84},
'81' : {'EV':-0.84},
}
gravity.update(seismic)
return gravity
else:
return {
'11' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'RoofLive':1.5},
'12' : {'Dead':1.25, 'L':1.5, 'L_5':1.5, 'Snow':1.5},
'21' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EV':0.84},
'22' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EV':0.84},
'23' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EV':0.84},
'24' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EV':0.84},
'25' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EV':0.84},
'26' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EV':0.84},
'27' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EV':0.84},
'28' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EV':0.84},
'29' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EV':0.84},
'210' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EV':0.84},
'211' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EV':0.84},
'212' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EV':0.84},
'213' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EV':0.84},
'214' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EV':0.84},
'215' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EV':0.84},
'216' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EV':0.84},
'31' : {'Dead':0.85, 'EXP': 0.84, 'EXP1': 0.84, 'EV':-0.84},
'32' : {'Dead':0.85, 'EXN': 0.84, 'EXN1': 0.84, 'EV':-0.84},
'33' : {'Dead':0.85, 'EXP':-0.84, 'EXP1':-0.84, 'EV':-0.84},
'34' : {'Dead':0.85, 'EXN':-0.84, 'EXN1':-0.84, 'EV':-0.84},
'35' : {'Dead':0.85, 'EYP': 0.84, 'EYP1': 0.84, 'EV':-0.84},
'36' : {'Dead':0.85, 'EYN': 0.84, 'EYN1': 0.84, 'EV':-0.84},
'37' : {'Dead':0.85, 'EYP':-0.84, 'EYP1':-0.84, 'EV':-0.84},
'38' : {'Dead':0.85, 'EYN':-0.84, 'EYN1':-0.84, 'EV':-0.84},
'41' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'RoofLive':1.5},
'42' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'Snow':1.5},
'81' : {'EV':-0.84},
}
elif way == "ASD":
if dynamic:
gravity = {
'11' : {'Dead':1},
'21' : {'Dead':1, 'L':1, 'L_5':1},
'31' : {'Dead':1, 'Snow':1},
'32' : {'Dead':1, 'RoofLive':1},
'41' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75},
'42' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'RoofLive':0.75},
}
if dynamic == "100-30":
seismic = {
'71' : {'Dead':1, 'SXE': 0.7, 'EV':0.7},
'72' : {'Dead':1, 'SYE': 0.7, 'EV':0.7},
'81' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'EV':0.525},
'82' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'EV':0.525},
'101' : {'Dead':0.6, 'SXE': 0.7, 'EV':-0.7},
'102' : {'Dead':0.6, 'SYE': 0.7, 'EV':-0.7},
}
if dynamic == "angular":
seismic = {
'7_1' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7},
'8_1' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525},
'10_1' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7},
}
gravity.update(seismic)
return gravity
return {
'11' : {'Dead':1},
'21' : {'Dead':1, 'L':1, 'L_5':1},
'31' : {'Dead':1, 'Snow':1},
'32' : {'Dead':1, 'RoofLive':1},
'41' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75},
'42' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'RoofLive':0.75},
'71' : {'Dead':1, 'EXP': 0.7, 'EXP1': 0.7, 'EV':0.7},
'72' : {'Dead':1, 'EXN': 0.7, 'EXN1': 0.7, 'EV':0.7},
'73' : {'Dead':1, 'EXP':-0.7, 'EXP1':-0.7, 'EV':0.7},
'74' : {'Dead':1, 'EXN':-0.7, 'EXN1':-0.7, 'EV':0.7},
'75' : {'Dead':1, 'EYP': 0.7, 'EYP1': 0.7, 'EV':0.7},
'76' : {'Dead':1, 'EYN': 0.7, 'EYN1': 0.7, 'EV':0.7},
'77' : {'Dead':1, 'EYP':-0.7, 'EYP1':-0.7, 'EV':0.7},
'78' : {'Dead':1, 'EYN':-0.7, 'EYN1':-0.7, 'EV':0.7},
'79' : {'Dead':1, 'EX': 0.7, 'EX1': 0.7, 'EV':0.7},
'710' : {'Dead':1, 'EX':-0.7, 'EX1':-0.7, 'EV':0.7},
'711' : {'Dead':1, 'EY': 0.7, 'EY1': 0.7, 'EV':0.7},
'712' : {'Dead':1, 'EY':-0.7, 'EY1':-0.7, 'EV':0.7},
'81' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP': 0.525, 'EXP1': 0.525, 'EV':0.525},
'82' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN': 0.525, 'EXN1': 0.525, 'EV':0.525},
'83' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP':-0.525, 'EXP1':-0.525, 'EV':0.525},
'84' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN':-0.525, 'EXN1':-0.525, 'EV':0.525},
'85' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP': 0.525, 'EYP1': 0.525, 'EV':0.525},
'86' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN': 0.525, 'EYN1': 0.525, 'EV':0.525},
'87' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP':-0.525, 'EYP1':-0.525, 'EV':0.525},
'88' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN':-0.525, 'EYN1':-0.525, 'EV':0.525},
'89' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' : 0.525, 'EX1' : 0.525, 'EV':0.525},
'810' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' :-0.525, 'EX1' :-0.525, 'EV':0.525},
'811' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' : 0.525, 'EY1' : 0.525, 'EV':0.525},
'812' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' :-0.525, 'EY1' :-0.525, 'EV':0.525},
'101' : {'Dead':0.6, 'EXP': 0.7, 'EXP1': 0.7, 'EV':-0.7},
'102' : {'Dead':0.6, 'EXN': 0.7, 'EXN1': 0.7, 'EV':-0.7},
'103' : {'Dead':0.6, 'EXP':-0.7, 'EXP1':-0.7, 'EV':-0.7},
'104' : {'Dead':0.6, 'EXN':-0.7, 'EXN1':-0.7, 'EV':-0.7},
'105' : {'Dead':0.6, 'EYP': 0.7, 'EYP1': 0.7, 'EV':-0.7},
'106' : {'Dead':0.6, 'EYN': 0.7, 'EYN1': 0.7, 'EV':-0.7},
'107' : {'Dead':0.6, 'EYP':-0.7, 'EYP1':-0.7, 'EV':-0.7},
'108' : {'Dead':0.6, 'EYN':-0.7, 'EYN1':-0.7, 'EV':-0.7},
'109' : {'Dead':0.6, 'EX' : 0.7, 'EX1' : 0.7, 'EV':-0.7},
'1010' : {'Dead':0.6, 'EX' :-0.7, 'EX1' :-0.7, 'EV':-0.7},
'1011' : {'Dead':0.6, 'EY' : 0.7, 'EY1' : 0.7, 'EV':-0.7},
'1012' : {'Dead':0.6, 'EY' :-0.7, 'EY1' :-0.7, 'EV':-0.7},
}
else:
if retaining_wall:
if way == "LRFD":
if code == 'ACI':
if dynamic:
gravity = {
'11' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'12' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'31' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'32' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'41' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'42' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
}
if dynamic == "100-30":
seismic = {
'51' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'SY': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'52' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'SY': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'53' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'SY': 0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'54' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SXE': 1, 'SY': 0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'55' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'SX': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'56' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'SX': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'57' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'SX': 0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'58' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'SYE': 1, 'SX': 0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'71' : {'Dead':0.9, 'SXE': 1, 'SY': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'72' : {'Dead':0.9, 'SXE': 1, 'SY': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'73' : {'Dead':0.9, 'SXE': 1, 'SY': 0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'74' : {'Dead':0.9, 'SXE': 1, 'SY': 0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'75' : {'Dead':0.9, 'SYE': 1, 'SX': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'76' : {'Dead':0.9, 'SYE': 1, 'SX': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'77' : {'Dead':0.9, 'SYE': 1, 'SX': 0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'78' : {'Dead':0.9, 'SYE': 1, 'SX': 0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'81' : {'EV':-1},
}
if dynamic == "angular":
seismic = {
'5_1' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'5_2' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'5_3' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'5_4' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'5_5' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'5_6' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'5_7' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'5_8' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'AngularDynamic': 1, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'7_1' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'7_2' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'7_3' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'7_4' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'7_5' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'7_6' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'7_7' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'7_8' : {'Dead':0.9, 'AngularDynamic': 1, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'81' : {'EV':-1},
}
gravity.update(seismic)
return gravity
return {
'11' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'12' : {'Dead':1.2 , 'L':1.6, 'L_5':1.6, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'31' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'32' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'41' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'42' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'51' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP': 1, 'EXP1': 1, 'EY': 0.3, 'EY1': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'52' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN': 1, 'EXN1': 1, 'EY': 0.3, 'EY1': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'53' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP': 1, 'EXP1': 1, 'EY':-0.3, 'EY1':-0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'54' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN': 1, 'EXN1': 1, 'EY':-0.3, 'EY1':-0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'55' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP':-1, 'EXP1':-1, 'EY': 0.3, 'EY1': 0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'56' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN':-1, 'EXN1':-1, 'EY': 0.3, 'EY1': 0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'57' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXP':-1, 'EXP1':-1, 'EY':-0.3, 'EY1':-0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'58' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EXN':-1, 'EXN1':-1, 'EY':-0.3, 'EY1':-0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'59' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP': 1, 'EYP1': 1, 'EX': 0.3, 'EX1': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'510' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN': 1, 'EYN1': 1, 'EX': 0.3, 'EX1': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'511' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP': 1, 'EYP1': 1, 'EX':-0.3, 'EX1':-0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'512' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN': 1, 'EYN1': 1, 'EX':-0.3, 'EX1':-0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'513' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP':-1, 'EYP1':-1, 'EX': 0.3, 'EX1': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'514' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN':-1, 'EYN1':-1, 'EX': 0.3, 'EX1': 0.3, 'EV':1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'515' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYP':-1, 'EYP1':-1, 'EX':-0.3, 'EX1':-0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'516' : {'Dead':1.2, 'L':1, 'L_5':0.5, 'Snow':0.2, 'EYN':-1, 'EYN1':-1, 'EX':-0.3, 'EX1':-0.3, 'EV':1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'71' : {'Dead':0.9, 'EXP': 1, 'EXP1': 1, 'EY': 0.3, 'EY1': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'72' : {'Dead':0.9, 'EXN': 1, 'EXN1': 1, 'EY': 0.3, 'EY1': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'73' : {'Dead':0.9, 'EXP': 1, 'EXP1': 1, 'EY':-0.3, 'EY1':-0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'74' : {'Dead':0.9, 'EXN': 1, 'EXN1': 1, 'EY':-0.3, 'EY1':-0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'75' : {'Dead':0.9, 'EXP':-1, 'EXP1':-1, 'EY': 0.3, 'EY1': 0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'76' : {'Dead':0.9, 'EXN':-1, 'EXN1':-1, 'EY': 0.3, 'EY1': 0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'77' : {'Dead':0.9, 'EXP':-1, 'EXP1':-1, 'EY':-0.3, 'EY1':-0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'78' : {'Dead':0.9, 'EXN':-1, 'EXN1':-1, 'EY':-0.3, 'EY1':-0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'79' : {'Dead':0.9, 'EYP': 1, 'EYP1': 1, 'EX': 0.3, 'EX1': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'710' : {'Dead':0.9, 'EYN': 1, 'EYN1': 1, 'EX': 0.3, 'EX1': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 1.6, 'HYN': 0.9},
'711' : {'Dead':0.9, 'EYP': 1, 'EYP1': 1, 'EX':-0.3, 'EX1':-0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'712' : {'Dead':0.9, 'EYN': 1, 'EYN1': 1, 'EX':-0.3, 'EX1':-0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 0.9},
'713' : {'Dead':0.9, 'EYP':-1, 'EYP1':-1, 'EX': 0.3, 'EX1': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'714' : {'Dead':0.9, 'EYN':-1, 'EYN1':-1, 'EX': 0.3, 'EX1': 0.3, 'EV':-1, 'HXP': 1.6, 'HXN': 0.9, 'HYP': 0.9, 'HYN': 1.6},
'715' : {'Dead':0.9, 'EYP':-1, 'EYP1':-1, 'EX':-0.3, 'EX1':-0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'716' : {'Dead':0.9, 'EYN':-1, 'EYN1':-1, 'EX':-0.3, 'EX1':-0.3, 'EV':-1, 'HXP': 0.9, 'HXN': 1.6, 'HYP': 0.9, 'HYN': 1.6},
'81' : {'EV':-1},
}
elif code == 'CSA':
if dynamic:
gravity = {
'11' : {'Dead':1.25 , 'L':1.5, 'L_5':1.6, 'RoofLive':1.5}, #'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'12' : {'Dead':1.25 , 'L':1.5, 'L_5':1.6, 'Snow':1.5}, #'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'41' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'RoofLive':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'42' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'Snow':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'51' : {'Dead':0.85, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
}
if dynamic == "100-30":
seismic = {
'21' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'SXE': 0.84, 'SY': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'22' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'SYE': 0.84, 'SX': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'23' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'SXE': 0.84, 'SY': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'24' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'SYE': 0.84, 'SX': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'31' : {'Dead':0.85, 'SXE': 0.84, 'SY': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'32' : {'Dead':0.85, 'SYE': 0.84, 'SX': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'81' : {'EV':-0.84},
}
if dynamic == "angular":
seismic = {
'2_1' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'AngularDynamic': 0.84, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'2_2' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'AngularDynamic': 0.84, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'3_1' : {'Dead':0.85, 'AngularDynamic': 0.84, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'81' : {'EV':-0.84},
}
gravity.update(seismic)
return gravity
return {
'11' : {'Dead':1.25 , 'L':1.5, 'L_5':1.6, 'RoofLive':1.5}, #'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'12' : {'Dead':1.25 , 'L':1.5, 'L_5':1.6, 'Snow':1.5}, #'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
# '31' : {'Dead':1.0, 'L':1, 'L_5':0.5, 'RoofLive':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
# '32' : {'Dead':1.0, 'L':1, 'L_5':0.5, 'Snow':1.6, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
# '41' : {'Dead':1.0, 'L':1, 'L_5':0.5, 'RoofLive':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
# '42' : {'Dead':1.0, 'L':1, 'L_5':0.5, 'Snow':0.5, 'HXP': 1.6, 'HXN': 1.6, 'HYP': 1.6, 'HYN': 1.6},
'21' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'22' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'23' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'24' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'25' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'26' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'27' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'28' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'29' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'210' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'211' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'212' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'213' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'214' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'215' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'216' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'RoofLive':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'217' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'218' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'219' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP': 0.84, 'EXP1': 0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'220' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN': 0.84, 'EXN1': 0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'221' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'222' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'223' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXP':-0.84, 'EXP1':-0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'224' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EXN':-0.84, 'EXN1':-0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'225' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'226' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'227' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP': 0.84, 'EYP1': 0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'228' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN': 0.84, 'EYN1': 0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'229' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'230' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'231' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYP':-0.84, 'EYP1':-0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'232' : {'Dead':1.0, 'L':1.2, 'L_5':0.6, 'Snow':1.2, 'EYN':-0.84, 'EYN1':-0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'31' : {'Dead':0.85, 'EXP': 0.84, 'EXP1': 0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'32' : {'Dead':0.85, 'EXN': 0.84, 'EXN1': 0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'33' : {'Dead':0.85, 'EXP': 0.84, 'EXP1': 0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'34' : {'Dead':0.85, 'EXN': 0.84, 'EXN1': 0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'35' : {'Dead':0.85, 'EXP':-0.84, 'EXP1':-0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'36' : {'Dead':0.85, 'EXN':-0.84, 'EXN1':-0.84, 'EY': 0.252, 'EY1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'37' : {'Dead':0.85, 'EXP':-0.84, 'EXP1':-0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'38' : {'Dead':0.85, 'EXN':-0.84, 'EXN1':-0.84, 'EY':-0.252, 'EY1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'39' : {'Dead':0.85, 'EYP': 0.84, 'EYP1': 0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'310' : {'Dead':0.85, 'EYN': 0.84, 'EYN1': 0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'311' : {'Dead':0.85, 'EYP': 0.84, 'EYP1': 0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'312' : {'Dead':0.85, 'EYN': 0.84, 'EYN1': 0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'313' : {'Dead':0.85, 'EYP':-0.84, 'EYP1':-0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'314' : {'Dead':0.85, 'EYN':-0.84, 'EYN1':-0.84, 'EX': 0.252, 'EX1': 0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'315' : {'Dead':0.85, 'EYP':-0.84, 'EYP1':-0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'316' : {'Dead':0.85, 'EYN':-0.84, 'EYN1':-0.84, 'EX':-0.252, 'EX1':-0.252, 'EV':-0.84, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'41' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'RoofLive':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'42' : {'Dead':1.25, 'L':1.5, 'L_5':0.6, 'Snow':1.5, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'51' : {'Dead':0.85, 'HXP': 1.5, 'HXN': 1.5, 'HYP': 1.5, 'HYN': 1.5},
'81' : {'EV':-0.84},
}
elif way == "ASD":
if dynamic:
gravity = {
'11' : {'Dead':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'21' : {'Dead':1, 'L':1, 'L_5':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'31' : {'Dead':1, 'Snow':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'32' : {'Dead':1, 'RoofLive':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'41' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'42' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'RoofLive':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
}
if dynamic == "100-30":
seismic = {
'71' : {'Dead':1, 'SXE': 0.7, 'SY': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'72' : {'Dead':1, 'SXE': 0.7, 'SY': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'73' : {'Dead':1, 'SXE': 0.7, 'SY': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'74' : {'Dead':1, 'SXE': 0.7, 'SY': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'75' : {'Dead':1, 'SYE': 0.7, 'SX': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'76' : {'Dead':1, 'SYE': 0.7, 'SX': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'77' : {'Dead':1, 'SYE': 0.7, 'SX': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'78' : {'Dead':1, 'SYE': 0.7, 'SX': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'81' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'SY': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'82' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'SY': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'83' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'SY': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'84' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SXE': 0.525, 'SY': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'85' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'SX': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'86' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'SX': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'87' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'SX': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'88' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'SYE': 0.525, 'SX': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'101' : {'Dead':0.6, 'SXE': 0.7, 'SY': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'103' : {'Dead':0.6, 'SXE': 0.7, 'SY': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'105' : {'Dead':0.6, 'SXE': 0.7, 'SY': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'107' : {'Dead':0.6, 'SXE': 0.7, 'SY': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'109' : {'Dead':0.6, 'SYE': 0.7, 'SX': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'1011' : {'Dead':0.6, 'SYE': 0.7, 'SX': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'1013' : {'Dead':0.6, 'SYE': 0.7, 'SX': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'1015' : {'Dead':0.6, 'SYE': 0.7, 'SX': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
}
elif dynamic == 'angular':
seismic = {
'7_1' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'7_2' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'7_3' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'7_4' : {'Dead':1, 'AngularDynamic': 0.7, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'8_1' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'8_2' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'8_3' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'8_4' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'AngularDynamic': 0.525, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'10_1' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'10_2' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'10_3' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'10_4' : {'Dead':0.6, 'AngularDynamic': 0.7, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
}
gravity.update(seismic)
return gravity
return {
'11' : {'Dead':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'21' : {'Dead':1, 'L':1, 'L_5':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'31' : {'Dead':1, 'Snow':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'32' : {'Dead':1, 'RoofLive':1, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'41' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'42' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'RoofLive':0.75, 'HXP': 1.0, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 1.0},
'71' : {'Dead':1, 'EXP': 0.7, 'EXP1': 0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'72' : {'Dead':1, 'EXN': 0.7, 'EXN1': 0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'73' : {'Dead':1, 'EXP': 0.7, 'EXP1': 0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'74' : {'Dead':1, 'EXN': 0.7, 'EXN1': 0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'75' : {'Dead':1, 'EXP':-0.7, 'EXP1':-0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'76' : {'Dead':1, 'EXN':-0.7, 'EXN1':-0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'77' : {'Dead':1, 'EXP':-0.7, 'EXP1':-0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'78' : {'Dead':1, 'EXN':-0.7, 'EXN1':-0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'79' : {'Dead':1, 'EYP': 0.7, 'EYP1': 0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'710' : {'Dead':1, 'EYN': 0.7, 'EYN1': 0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'711' : {'Dead':1, 'EYP': 0.7, 'EYP1': 0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'712' : {'Dead':1, 'EYN': 0.7, 'EYN1': 0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'713' : {'Dead':1, 'EYP':-0.7, 'EYP1':-0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'714' : {'Dead':1, 'EYN':-0.7, 'EYN1':-0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'715' : {'Dead':1, 'EYP':-0.7, 'EYP1':-0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'716' : {'Dead':1, 'EYN':-0.7, 'EYN1':-0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'717' : {'Dead':1, 'EX': 0.7, 'EX1': 0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'718' : {'Dead':1, 'EX':-0.7, 'EX1':-0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'719' : {'Dead':1, 'EX': 0.7, 'EX1': 0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'720' : {'Dead':1, 'EX':-0.7, 'EX1':-0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'721' : {'Dead':1, 'EY': 0.7, 'EY1': 0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'722' : {'Dead':1, 'EY':-0.7, 'EY1':-0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'723' : {'Dead':1, 'EY': 0.7, 'EY1': 0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'724' : {'Dead':1, 'EY':-0.7, 'EY1':-0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'81' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP': 0.525, 'EXP1': 0.525, 'EY': 0.1575, 'EY1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'82' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN': 0.525, 'EXN1': 0.525, 'EY': 0.1575, 'EY1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'83' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP': 0.525, 'EXP1': 0.525, 'EY':-0.1575, 'EY1':-0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'84' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN': 0.525, 'EXN1': 0.525, 'EY':-0.1575, 'EY1':-0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'85' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP':-0.525, 'EXP1':-0.525, 'EY': 0.1575, 'EY1': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'86' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN':-0.525, 'EXN1':-0.525, 'EY': 0.1575, 'EY1': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'87' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXP':-0.525, 'EXP1':-0.525, 'EY':-0.1575, 'EY1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'88' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EXN':-0.525, 'EXN1':-0.525, 'EY':-0.1575, 'EY1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'89' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP': 0.525, 'EYP1': 0.525, 'EX': 0.1575, 'EX1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'810' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN': 0.525, 'EYN1': 0.525, 'EX': 0.1575, 'EX1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'811' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP': 0.525, 'EYP1': 0.525, 'EX':-0.1575, 'EX1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'812' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN': 0.525, 'EYN1': 0.525, 'EX':-0.1575, 'EX1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'813' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP':-0.525, 'EYP1':-0.525, 'EX': 0.1575, 'EX1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'814' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN':-0.525, 'EYN1':-0.525, 'EX': 0.1575, 'EX1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'815' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYP':-0.525, 'EYP1':-0.525, 'EX':-0.1575, 'EX1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'816' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EYN':-0.525, 'EYN1':-0.525, 'EX':-0.1575, 'EX1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'817' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' : 0.525, 'EX1' : 0.525, 'EY': 0.1575, 'EY1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'818' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' : 0.525, 'EX1' : 0.525, 'EY':-0.1575, 'EY1':-0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'819' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' :-0.525, 'EX1' :-0.525, 'EY': 0.1575, 'EY1': 0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'820' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EX' :-0.525, 'EX1' :-0.525, 'EY':-0.1575, 'EY1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'821' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' : 0.525, 'EY1' : 0.525, 'EX': 0.1575, 'EX1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'822' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' : 0.525, 'EY1' : 0.525, 'EX':-0.1575, 'EX1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'823' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' :-0.525, 'EY1' :-0.525, 'EX': 0.1575, 'EX1': 0.1575, 'EV':0.525, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'824' : {'Dead':1, 'L':0.75, 'L_5':0.75, 'Snow':0.75, 'EY' :-0.525, 'EY1' :-0.525, 'EX':-0.1575, 'EX1':-0.1575, 'EV':0.525, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'101' : {'Dead':0.6, 'EXP': 0.7, 'EXP1': 0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'102' : {'Dead':0.6, 'EXN': 0.7, 'EXN1': 0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'103' : {'Dead':0.6, 'EXP': 0.7, 'EXP1': 0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'104' : {'Dead':0.6, 'EXN': 0.7, 'EXN1': 0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'105' : {'Dead':0.6, 'EXP':-0.7, 'EXP1':-0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'106' : {'Dead':0.6, 'EXN':-0.7, 'EXN1':-0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'107' : {'Dead':0.6, 'EXP':-0.7, 'EXP1':-0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'108' : {'Dead':0.6, 'EXN':-0.7, 'EXN1':-0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'109' : {'Dead':0.6, 'EYP': 0.7, 'EYP1': 0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'1010' : {'Dead':0.6, 'EYN': 0.7, 'EYN1': 0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'1011' : {'Dead':0.6, 'EYP': 0.7, 'EYP1': 0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'1012' : {'Dead':0.6, 'EYN': 0.7, 'EYN1': 0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'1013' : {'Dead':0.6, 'EYP':-0.7, 'EYP1':-0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'1014' : {'Dead':0.6, 'EYN':-0.7, 'EYN1':-0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'1015' : {'Dead':0.6, 'EYP':-0.7, 'EYP1':-0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'1016' : {'Dead':0.6, 'EYN':-0.7, 'EYN1':-0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'1017' : {'Dead':0.6, 'EX' : 0.7, 'EX1' : 0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'1018' : {'Dead':0.6, 'EX' : 0.7, 'EX1' : 0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'1019' : {'Dead':0.6, 'EX' :-0.7, 'EX1' :-0.7, 'EY': 0.21, 'EY1': 0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'1020' : {'Dead':0.6, 'EX' :-0.7, 'EX1' :-0.7, 'EY':-0.21, 'EY1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
'1021' : {'Dead':0.6, 'EY' : 0.7, 'EY1' : 0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 1.0, 'HYN': 0.6},
'1022' : {'Dead':0.6, 'EY' : 0.7, 'EY1' : 0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 1.0, 'HYN': 0.6},
'1023' : {'Dead':0.6, 'EY' :-0.7, 'EY1' :-0.7, 'EX': 0.21, 'EX1': 0.21, 'EV':-0.7, 'HXP': 1.0, 'HXN': 0.6, 'HYP': 0.6, 'HYN': 1.0},
'1024' : {'Dead':0.6, 'EY' :-0.7, 'EY1' :-0.7, 'EX':-0.21, 'EX1':-0.21, 'EV':-0.7, 'HXP': 0.6, 'HXN': 1.0, 'HYP': 0.6, 'HYN': 1.0},
}
else:
if way == "LRFD":
if code.lower() == "aci":
if dynamic:
gravity = {
'11' : {'Dead':1.4},