forked from rclab-auth/gidopensees
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathHTData.bas
148 lines (148 loc) · 4.81 KB
/
HTData.bas
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
ID composite slab protection_material tf tw h b dp dps ts bs plt FireExposure tFinal dt hfire hamb {section_material}
*set var HTtime=GenData(fire_duration,real)
*set var HTtimestep=GenData(HT_time_step,real)
*set var override=GenData(override_default_h,int)
*set var globalhfire=GenData(convective_h_fire,real)
*set var globalhamb=GenData(convective_h_ambient,real)
*if(strcmp(GenData(Exposure_type),"standard_fire")==0)
*set var fire=1
*elseif(strcmp(GenData(Exposure_type),"Hydrocarbon")==0)
*set var fire=2
*elseif(strcmp(GenData(Exposure_type),"FDS")==0)
*set var fire=3
*else
*set var fire=4
*endif
*loop intervals
*#beam-column elements
*set cond Line_Gas_Temperatures_Central *elems
*loop elems *OnlyInCond
*if(strcmp(ElemsMatProp(Element_type:),"dispBeamColumn")==0)
*set var DomainNum=6
*set var SelectedSection=tcl(FindMaterialNumber *ElemsMatProp(Section) *DomainNum)
*loop materials *NotUsed
*set var SectionID=tcl(FindMaterialNumber *MatProp(0) *DomainNum)
*if(SelectedSection==SectionID)
*set var dummy=tcl(AddUsedMaterials *SelectedSection)
*if(strcmp(MatProp(Section:),"Fiber")==0)
*if(strcmp(MatProp(Cross_section),"Stiffened_I_Section")==0)
*set var plt=MatProp(Plate_t,real)
*else
*set var plt = 0.0
*endif
*if(strcmp(MatProp(heat_transfer),"carbon_steel")==0)
*set var secMat=1
*else
*set var secMat=2
*endif
*set var tf=MatProp(Flange_thickness_tf,real)
*set var tw=MatProp(Web_thickness_tw,real)
*set var h=MatProp(Height_h,real)
*set var b=MatProp(Flange_width_b,real)
*set var pmat=cond(protection_material,int)
*set var dp=cond(protection_thickness,real)
*if(Matprop(Web_plate_stiffened,int)==1)
*set var wpt = MatProp(Web_plate_t,real)
*set var tw=operation(tw+wpt*2)
*if(tw>b)
*set var tw=b
*endif
*endif
*else
*MessageBox Error: Cannot grab section properties from anything other than a Fiber section
*endif
*break
*endif
*end materials
*if(*override == 1)
*set var hf = globalhfire
*set var ha = globalhamb
*else
*set var hf = cond(convective_coefficient,real)
*set var ha = globalhamb
*endif
*format "%d%d%g%g%g%g%g%g%d%g%g%g%g
*cond(ID,int) 0 0 *pmat *tf *tw *h *b *dp 0.0 0.1 0.9 *plt *fire *HTtime *HTtimestep *hf *ha *secMat
*endif
*end elems
*#slabs
*set cond Surface_Gas_Temperatures_central *elems
*loop elems *OnlyInCond
*if(strcmp(ElemsMatProp(Element_type:),"Shell")==0 || strcmp(ElemsMatProp(Element_type:),"ShellDKGQ")==0)
*set var DomainNum=6
*set var SelectedSection=tcl(FindMaterialNumber *ElemsMatProp(Type) *DomainNum)
*loop materials *NotUsed
*set var SectionID=tcl(FindMaterialNumber *MatProp(0) *DomainNum)
*if(SelectedSection==SectionID)
*set var dummy=tcl(AddUsedMaterials *SelectedSection)
*if(strcmp(MatProp(Section:),"LayeredShell")==0)
*set var plt = 0.0
*set var ts=MatProp(Slab_thickness,real)
*set var pmat=cond(protection_material,int)
*set var dps=MatProp(protection_thickness,real)
*else
*MessageBox Error: Cannot grab section properties from anything other than a LayeredShell section
*endif
*break
*endif
*end materials
*if(*override == 1)
*set var hf = globalhfire
*set var ha = globalhamb
*else
*set var hf = cond(convective_coefficient,real)
*set var ha = globalhamb
*endif
*format "%d%d%g%g%d%g%g%g%g
*cond(ID,int) 0 1 *pmat 0.025 0.08 0.3 0.15 0.0 *dps *ts 1.0 0.0 *fire *HTtime *HTtimestep *hf *ha
*endif
*end elems
*#composite beams
*set cond Line_Composite_Section_Beam_central *elems
*loop elems *OnlyInCond
*if(strcmp(ElemsMatProp(Element_type:),"dispBeamColumn")==0)
*set var DomainNum=6
*set var SelectedSection=tcl(FindMaterialNumber *ElemsMatProp(Section) *DomainNum)
*loop materials *NotUsed
*set var SectionID=tcl(FindMaterialNumber *MatProp(0) *DomainNum)
*if(SelectedSection==SectionID)
*set var dummy=tcl(AddUsedMaterials *SelectedSection)
*if(strcmp(MatProp(Section:),"Fiber")==0)
*if(strcmp(MatProp(Cross_section),"Stiffened_I_Section")==0)
*set var plt=MatProp(Plate_t,real)
*MessageBox Error: Cannot use use a stiffened section with a composite section assignment. HT will crash.
*else
*set var plt = 0.0
*endif
*set var tf=MatProp(Flange_thickness_tf,real)
*set var tw=MatProp(Web_thickness_tw,real)
*set var h=MatProp(Height_h,real)
*set var b=MatProp(Flange_width_b,real)
*set var pmat=cond(protection_material,int)
*set var dp=cond(protection_thickness,real)
*set var dps=cond(slab_protection,real)
*set var ts=cond(slab_depth,real)
*set var bs=cond(slab_width,real)
*if(strcmp(MatProp(heat_transfer),"carbon_steel")==0)
*set var secMat=1
*else
*set var secMat=2
*endif
*else
*MessageBox Error: Cannot grab section properties from anything other than a Fiber section
*endif
*break
*endif
*end materials
*if(*override == 1)
*set var hf = globalhfire
*set var ha = globalhamb
*else
*set var hf = cond(convective_coefficient,real)
*set var ha = globalhamb
*endif
*format "%d%d%g%g%g%g%g%g%g%g%g%d%g%g%g%g
*cond(ID,int) 1 0 *pmat *tf *tw *h *b *dp *dps *ts *bs *plt *fire *HTtime *HTtimestep *hf *ha
*endif
*end elems
*end intervals