forked from denavit/OpenSees-Tcl-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
rcftSection.tcl
564 lines (499 loc) · 23.6 KB
/
rcftSection.tcl
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
proc OpenSeesComposite::rcftSection { secID startMatID nf1 nf2 units D B t Fy Fu Es fc args} {
# ###################################################################
# rcftSection $secID $startMatID $nf1 $nf2 $units $D $B $t $Fy $Fu $Es $fc
# ###################################################################
# tcl procedure for creating a steel reinforced concrete fiber section
#
# input parameters:
# secID - section ID number
# startMatID - starting number for the material that will be defined
# nf1 = number of fibers along the primary bending axis (strong axis for 3d)
# nf2 = number of fibers along the secondary bending axis
# - strong = creates a 2d section for strong axis bending
# - weak = creates a 2d section for weak axis bending
# units - unit system
# US = United States customary units (i.e., kips, inches, ksi)
# SI = International System of Units (i.e., N, mm, MPa)
# D = depth of the steel tube
# B = width of the steel tube
# t = thickness of the steel tube
# Fy = yield strength of the steel section
# Fu = ultimate strength of the steel section
# - calc = use a value calculated based on Fy
# Es = modulus of elasticity of the steel section
# - calc = use a customary value
# fc = concrete compressive strength
# Added Elastic Stiffness
# - "-AddedElastic $EA $EI" for 2D sections
# - "-AddedElastic $EA $EIz $EIy $GJ" for 3D sections
# ########### Set Constants and Default Values ###########
set pi [expr 2*asin(1.0)]
set concMaterialType ProposedForBehavior
set steelMaterialType ProposedForBehavior
set AddedElastic no
set GJ steelonly
set AbdelRahmanResidualStressParameter 0.75
set AbdelRahmanHardeningRatio 0.005
set DefineSteelFibers true
set DefineConcreteFibers true
# ########### Check Required Input ###########
set D [expr double($D)]
set B [expr double($B)]
set t [expr double($t)]
set Fy [expr double($Fy)]
if { $Fu != "calc" } { set Fu [expr double($Fu)] }
if { $Es != "calc" } { set Es [expr double($Es)] }
set fc [expr double($fc)]
set nf1 [expr int($nf1)]
if { $nf1 <= 0 } {
error "Error - rcftSection: the number of fibers (nf1) should be positive"
}
if { [string compare -nocase $nf2 "strong"] == 0 } {
set bendingType 2dStrong
} elseif { [string compare -nocase $nf2 "weak"] == 0 } {
set bendingType 2dWeak
} else {
set bendingType 3d
set nf2 [expr int($nf2)]
if { $nf2 <= 0 } {
error "Error - rcftSection: the number of fibers (nf2) should be positive"
}
}
if { $D <= 0.0 } {
error "Error - rcftSection: D should be input as a posititve value"
}
if { $B <= 0.0 } {
error "Error - rcftSection: B should be input as a posititve value"
}
if { $t <= 0.0 } {
error "Error - rcftSection: t should be input as a posititve value"
}
if { $t >= [expr 0.5*$D] || $t >= [expr 0.5*$B]} {
error "Error - rcftSection: t is too large compared to D or B"
}
if { $Fy <= 0.0 } {
error "Error - rcftSection: Steel yield strength should be input as a posititve value"
}
if { $Fu <= 0.0 && $Fu != "calc" } {
error "Error - rcftSection: Steel ultimate strength should be input as a posititve values or calc"
}
if { $Es <= 0.0 && $Es != "calc" } {
error "Error - rcftSection: Steel elastic modulus should be input as a posititve values or calc"
}
if { $fc <= 0.0 } {
error "Error - rcftSection: Concrete compressive strength should be input as a posititve value"
}
# ########### Read Optional Input ###########
for { set i 0 } { $i < [llength $args] } { incr i } {
set param [lindex $args $i]
if { $param == "-ConcreteMaterialType" } {
set concMaterialType [lindex $args [expr $i+1]]
incr i 1
continue
}
if { $param == "-SteelMaterialType" } {
set steelMaterialType [lindex $args [expr $i+1]]
incr i 1
if { $steelMaterialType == "ModifiedAbdelRahman" } {
set AbdelRahmanResidualStressParameter [lindex $args [expr $i+1]]
set AbdelRahmanHardeningRatio [lindex $args [expr $i+2]]
incr i 2
}
continue
}
if { $param == "-GJ" } {
set GJ [lindex $args [expr $i+1]]
incr i 1
continue
}
if { $param == "-AddedElastic" } {
set AddedElastic yes
if { $bendingType == "2dStrong" || $bendingType == "2dWeak" } {
incr i
set AddedElasticEA [lindex $args $i]
incr i
set AddedElasticEI [lindex $args $i]
} elseif { $bendingType == "3d" } {
incr i
set AddedElasticEA [lindex $args $i]
incr i
set AddedElasticEIz [lindex $args $i]
incr i
set AddedElasticEIy [lindex $args $i]
incr i
set AddedElasticGJ [lindex $args $i]
}
continue
}
if { $param == "-noSteel" } {
set DefineSteelFibers false
incr i 1
continue
}
if { $param == "-noConcrete" } {
set DefineConcreteFibers false
incr i 1
continue
}
error "Error - rcftSection: unknown optional parameter: $param"
}
# ########### Compute Fu and Es if necessary ###########
if { $Fu == "calc" } {
set Fu [defaultValue_Fu $Fy $units]
}
if { $Es == "calc" } {
set Es [defaultValue_Es $units]
}
# ########### Compute Material Properties ###########
if { $D > $B } {
set H $D
} else {
set H $B
}
set rn_post [expr 1.7*($H/$t)*sqrt($Fy/$Es)*($fc/$Fy)]
set R1 [expr ($H/$t)*sqrt($Fy/$Es)]
set R2 [expr ($H/$t)*($Fy/$Es)]
set localBucklingStrain [expr -3.14*pow($R1,-1.48)*($Fy/$Es)]
set eu [expr 120.0*$Fy/$Es]
set Ksft [expr 3.22*(0.08-$R2)*$Es]
if { $Ksft > [expr -$Es/30.0] } { set Ksft [expr -$Es/30.0]}
set frs [expr 1.0+7.31*(0.08-$R2)]
if { $frs > 1.0 } { set frs 1.0 }
set epo_flat 0.0004
set epo_corner 0.0006
set Fy_corner [expr 1.09*$Fy]
set Fu_corner [expr 1.03*$Fu]
if { $Fu_corner < $Fy_corner } {
set Fu_corner $Fy_corner
}
# ########### Compute GJ if necessary ###########
if { $GJ == "steelonly" } {
set G [expr $Es/(2*(1+0.3))]
set J [expr 2*$t*$D*$D*$B*$B/($D+$B)]
set GJ [expr $G*$J]
}
# ########### Define Section by calling itself with secID = noSection ###########
if { [string is integer -strict $secID] } {
section Fiber $secID -GJ $GJ {
eval rcftSection noSection $startMatID $nf1 $nf2 $units $D $B $t $Fy $Fu $Es $fc $args
}
return
}
# ########### Define Steel Materials ###########
if { $DefineSteelFibers } {
set stlFlatID $startMatID
set stlCornerID [expr $startMatID+1]
switch -exact -- $steelMaterialType {
ProposedForBehavior {
shenSteelMaterial $stlFlatID $Es $Fy $Fu $eu $units \
-type CFT -initialPlasticStrain $epo_flat \
-localBuckling $localBucklingStrain $Ksft $frs Fy \
-localBucklingDegradationEp [expr 20.0*$R2] 0.05 \
-localBucklingDegradationKappa [expr 30.0*$R2] 0.05
shenSteelMaterial $stlCornerID $Es $Fy_corner $Fu_corner $eu $units \
-type CFT -initialPlasticStrain $epo_corner \
-localBuckling $localBucklingStrain $Ksft $frs Fy \
-localBucklingDegradationEp [expr 20.0*$R2] 0.05 \
-localBucklingDegradationKappa [expr 30.0*$R2] 0.05
}
ProposedForBehavior_noLB {
shenSteelMaterial $stlFlatID $Es $Fy $Fu $eu $units \
-type CFT -initialPlasticStrain $epo_flat
shenSteelMaterial $stlCornerID $Es $Fy_corner $Fu_corner $eu $units \
-type CFT -initialPlasticStrain $epo_corner
}
AbdelRahman {
hssSteelAbdelRahman $stlFlatID $Fy $Es
hssSteelAbdelRahman $stlCornerID $Fy $Es -corner $Fu $t $t
# r (internal radius) = t (wall thickness)
}
ModifiedAbdelRahman {
hssSteelAbdelRahman $stlFlatID $Fy $Es -ResidualStressParameter $AbdelRahmanResidualStressParameter -HardeningRatio $AbdelRahmanHardeningRatio
hssSteelAbdelRahman $stlCornerID $Fy $Es -corner $Fu $t $t -ResidualStressParameter $AbdelRahmanResidualStressParameter -HardeningRatio $AbdelRahmanHardeningRatio
# r (internal radius) = t (wall thickness)
}
Elastic {
uniaxialMaterial Elastic $stlFlatID $Es
uniaxialMaterial Elastic $stlCornerID $Es
}
ElasticPP {
uniaxialMaterial ElasticPP $stlFlatID $Es [expr $Fy/$Es]
uniaxialMaterial ElasticPP $stlCornerID $Es [expr $Fy/$Es]
}
Sakino {
rcftSteelSakino $stlFlatID $Fy $Es $H $t
rcftSteelSakino $stlCornerID $Fy $Es $H $t
}
default {
error "ERROR: rcftSection: unknown steel material type: $steelMaterialType"
}
}
# ########### Define Steel Fibers: 2d Strong ###########
if { $bendingType == "2dStrong" } {
# Steel Flat, Webs
patchRect2d $stlFlatID [expr ceil(($D-4*$t)*($nf1/$D))] [expr 2*$t] [expr -$D/2+2*$t] [expr $D/2-2*$t]
# Steel Flat, Top Flange
patchRect2d $stlFlatID [expr ceil($t*($nf1/$D))] [expr $B-4*$t] [expr $D/2-$t] [expr $D/2]
# Steel Flat, Botton Flange
patchRect2d $stlFlatID [expr ceil($t*($nf1/$D))] [expr $B-4*$t] [expr -$D/2] [expr -$D/2+$t]
# Steel Corners, Top Flange
patchHalfCircTube2d $stlCornerID [expr ceil(2*$t*($nf1/$D))] [expr $D/2-2*$t] top [expr 4*$t] $t
# Steel Corners, Bottom Flange
patchHalfCircTube2d $stlCornerID [expr ceil(2*$t*($nf1/$D))] [expr -$D/2+2*$t] bottom [expr 4*$t] $t
# ########### Define Steel Fibers: 2d Weak ###########
} elseif { $bendingType == "2dWeak" } {
# Steel Flat, Webs
patchRect2d $stlFlatID [expr ceil(($B-4*$t)*($nf1/$B))] [expr 2*$t] [expr -$B/2+2*$t] [expr $B/2-2*$t]
# Steel Flat, Top Flange
patchRect2d $stlFlatID [expr ceil($t*($nf1/$B))] [expr $D-4*$t] [expr $B/2-$t] [expr $B/2]
# Steel Flat, Botton Flange
patchRect2d $stlFlatID [expr ceil($t*($nf1/$B))] [expr $D-4*$t] [expr -$B/2] [expr -$B/2+$t]
# Steel Corners, Top Flange
patchHalfCircTube2d $stlCornerID [expr ceil(2*$t*($nf1/$B))] [expr $B/2-2*$t] top [expr 4*$t] $t
# Steel Corners, Bottom Flange
patchHalfCircTube2d $stlCornerID [expr ceil(2*$t*($nf1/$B))] [expr -$B/2+2*$t] bottom [expr 4*$t] $t
# ########### Define Steel Fibers: 3d ###########
} elseif { $bendingType == "3d" } {
##### STEEL #####
### Flat ###
# Top (positive Y) Flange
set yTop [expr $D/2]
set yBottom [expr $D/2 - $t]
set zLeft [expr -$B/2 + 2*$t]
set zRight [expr $B/2 - 2*$t]
set nfiy [expr round(ceil(($t)*($nf1/$D)))]
set nfiz [expr round(ceil(($B-4*$t)*($nf2/$B)))]
patch quad $stlFlatID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
# Bottom (negative Y) Flange
set yTop [expr -$D/2 + $t]
set yBottom [expr -$D/2]
set zLeft [expr -$B/2 + 2*$t]
set zRight [expr $B/2 - 2*$t]
set nfiy [expr round(ceil(($t)*($nf1/$D)))]
set nfiz [expr round(ceil(($B-4*$t)*($nf2/$B)))]
patch quad $stlFlatID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
# Left (negative Y) Web
set yTop [expr $D/2 - 2*$t]
set yBottom [expr -$D/2 + 2*$t]
set zLeft [expr -$B/2]
set zRight [expr -$B/2 + $t]
set nfiy [expr round(ceil(($D-4*$t)*($nf1/$D)))]
set nfiz [expr round(ceil(($t)*($nf2/$B)))]
patch quad $stlFlatID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
# Right (positive Y) Web
set yTop [expr $D/2 - 2*$t]
set yBottom [expr -$D/2 + 2*$t]
set zLeft [expr $B/2 - $t]
set zRight [expr $B/2]
set nfiy [expr round(ceil(($D-4*$t)*($nf1/$D)))]
set nfiz [expr round(ceil(($t)*($nf2/$B)))]
patch quad $stlFlatID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
### Corner ###
if { [expr $D/double($nf1)] < [expr $B/double($nf2)] } {
set cornerFiberSize [expr $D/double($nf1)]
} else {
set cornerFiberSize [expr $B/double($nf2)]
}
# Top Right (positive Y, positive Z)
set yCenter [expr $D/2 - 2*$t]
set zCenter [expr $B/2 - 2*$t]
set intRad [expr $t]
set extRad [expr 2*$t]
set startAng [expr 0]
set endAng [expr 90]
set nfic [expr round(ceil(($t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $stlCornerID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
# Top Left (positive Y, negative Z)
set yCenter [expr $D/2 - 2*$t]
set zCenter [expr -$B/2 + 2*$t]
set intRad [expr $t]
set extRad [expr 2*$t]
set startAng [expr 270]
set endAng [expr 360]
set nfic [expr round(ceil(($t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $stlCornerID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
# Bottom Left (negative Y, negative Z)
set yCenter [expr -$D/2 + 2*$t]
set zCenter [expr -$B/2 + 2*$t]
set intRad [expr $t]
set extRad [expr 2*$t]
set startAng [expr 180]
set endAng [expr 270]
set nfic [expr round(ceil(($t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $stlCornerID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
# Bottom Right (negative Y, positive Z)
set yCenter [expr -$D/2 + 2*$t]
set zCenter [expr $B/2 - 2*$t]
set intRad [expr $t]
set extRad [expr 2*$t]
set startAng [expr 90]
set endAng [expr 180]
set nfic [expr round(ceil(($t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $stlCornerID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
} else {
error "Error - rcftSection: unknown bendingAxis"
}
}
# ########### Define Concrete Materials ###########
if { $DefineConcreteFibers } {
set concID [expr $startMatID+2]
switch -exact -- $concMaterialType {
ProposedForBehavior {
changManderConcreteMaterial $concID $fc $units \
-rn_post $rn_post
}
ProposedForDesign {
changManderConcreteMaterial $concID $fc $units \
-r Popovics -tension none
}
ProposedForDesign_EI {
changManderConcreteMaterial $concID $fc $units \
-r Popovics -tension Popovics
}
Elastic {
switch -exact -- $units {
US { set Ec [expr 1802.5*sqrt($fc)] }
SI { set Ec [expr 4733.0*sqrt($fc)] }
default { error "ERROR: units not recgonized" }
}
uniaxialMaterial Elastic $concID $Ec
}
ElasticNoTension {
switch -exact -- $units {
US { set Ec [expr 1802.5*sqrt($fc)] }
SI { set Ec [expr 4733.0*sqrt($fc)] }
default { error "ERROR: units not recgonized" }
}
uniaxialMaterial ENT $concID $Ec
}
Sakino {
rcftConcreteSakino $concID $fc $H $t $Fy $units
}
default {
error "ERROR: rcftSection: unknown concrete material type: $concMaterialType"
}
}
# ########### Define Concrete Fibers: 2d Strong ###########
if { $bendingType == "2dStrong" } {
# Concrete, Near Top Flange
patchRect2d $concID [expr ceil($t*($nf1/$D))] [expr $B-4*$t] [expr $D/2-2*$t] [expr $D/2-$t]
# Concrete, Near Bottom Flange
patchRect2d $concID [expr ceil($t*($nf1/$D))] [expr $B-4*$t] [expr -$D/2+$t] [expr -$D/2+2*$t]
# Concrete, Corners Near Top Flange
patchHalfCircTube2d $concID [expr ceil($t*($nf1/$D))] [expr $D/2-2*$t] top [expr 2*$t] $t
# Concrete, Corners Near Bottom Flange
patchHalfCircTube2d $concID [expr ceil($t*($nf1/$D))] [expr -$D/2+2*$t] bottom [expr 2*$t] $t
# Concrete, Middle
patchRect2d $concID [expr ceil(($D-4*$t)*($nf1/$D))] [expr $B-2*$t] [expr -$D/2+2*$t] [expr $D/2-2*$t]
# ########### Define Concrete Fibers: 2d Weak ###########
} elseif { $bendingType == "2dWeak" } {
# Concrete, Near Top Flange
patchRect2d $concID [expr ceil($t*($nf1/$B))] [expr $D-4*$t] [expr $B/2-2*$t] [expr $B/2-$t]
# Concrete, Near Bottom Flange
patchRect2d $concID [expr ceil($t*($nf1/$B))] [expr $D-4*$t] [expr -$B/2+$t] [expr -$B/2+2*$t]
# Concrete, Corners Near Top Flange
patchHalfCircTube2d $concID [expr ceil($t*($nf1/$B))] [expr $B/2-2*$t] top [expr 2*$t] $t
# Concrete, Corners Near Bottom Flange
patchHalfCircTube2d $concID [expr ceil($t*($nf1/$B))] [expr -$B/2+2*$t] bottom [expr 2*$t] $t
# Concrete, Middle
patchRect2d $concID [expr ceil(($B-4*$t)*($nf1/$B))] [expr $D-2*$t] [expr -$B/2+2*$t] [expr $B/2-2*$t]
# ########### Define Concrete Fibers: 3d ###########
} elseif { $bendingType == "3d" } {
### Corners ###
if { [expr $D/double($nf1)] < [expr $B/double($nf2)] } {
set cornerFiberSize [expr $D/double($nf1)]
} else {
set cornerFiberSize [expr $B/double($nf2)]
}
# Top Right (positive Y, positive Z)
set yCenter [expr $D/2 - 2*$t]
set zCenter [expr $B/2 - 2*$t]
set intRad [expr 0]
set extRad [expr $t]
set startAng [expr 0]
set endAng [expr 90]
set nfic [expr round(ceil((0.5*$t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $concID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
# Top Left (positive Y, negative Z)
set yCenter [expr $D/2 - 2*$t]
set zCenter [expr -$B/2 + 2*$t]
set intRad [expr 0]
set extRad [expr $t]
set startAng [expr 270]
set endAng [expr 360]
set nfic [expr round(ceil((0.5*$t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $concID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
# Bottom Left (negative Y, negative Z)
set yCenter [expr -$D/2 + 2*$t]
set zCenter [expr -$B/2 + 2*$t]
set intRad [expr 0]
set extRad [expr $t]
set startAng [expr 180]
set endAng [expr 270]
set nfic [expr round(ceil((0.5*$t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $concID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
# Bottom Right (negative Y, positive Z)
set yCenter [expr -$D/2 + 2*$t]
set zCenter [expr $B/2 - 2*$t]
set intRad [expr 0]
set extRad [expr $t]
set startAng [expr 90]
set endAng [expr 180]
set nfic [expr round(ceil((0.5*$t*$pi)/$cornerFiberSize))]
set nfir [expr round(ceil(($t)/$cornerFiberSize))]
patch circ $concID $nfic $nfir $yCenter $zCenter $intRad $extRad $startAng $endAng
### Along Steel Flanges in Corner Radius ###
# Top (positive Y) Flange
set yTop [expr $D/2 - $t]
set yBottom [expr $D/2 - 2*$t]
set zLeft [expr -$B/2 + 2*$t]
set zRight [expr $B/2 - 2*$t]
set nfiy [expr round(ceil(($t)*($nf1/$D)))]
set nfiz [expr round(ceil(($B-4*$t)*($nf2/$B)))]
patch quad $concID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
# Bottom (negative Y) Flange
set yTop [expr -$D/2 + 2*$t]
set yBottom [expr -$D/2 + $t]
set zLeft [expr -$B/2 + 2*$t]
set zRight [expr $B/2 - 2*$t]
set nfiy [expr round(ceil(($t)*($nf1/$D)))]
set nfiz [expr round(ceil(($B-4*$t)*($nf2/$B)))]
patch quad $concID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
### Core ###
set yTop [expr $D/2 - 2*$t]
set yBottom [expr -$D/2 + 2*$t]
set zLeft [expr -$B/2 + $t]
set zRight [expr $B/2 - $t]
set nfiy [expr round(ceil(($D-4*$t)*($nf1/$D)))]
set nfiz [expr round(ceil(($B-2*$t)*($nf2/$B)))]
patch quad $concID $nfiz $nfiy $yTop $zLeft $yTop $zRight $yBottom $zRight $yBottom $zLeft
} else {
error "Error - rcftSection: unknown bendingAxis"
}
}
# ########### Add elastic stiffness if necessary ###########
if { $AddedElastic == "yes" } {
set ElasticE 1.0;
set matID [expr $startMatID+2]
incr currentMatTag
uniaxialMaterial Elastic $matID $ElasticE
if { $bendingType == "2dStrong" || $bendingType == "2dWeak" } {
twoFiberSection noSection $matID \
[expr $AddedElasticEA/$ElasticE] \
[expr $AddedElasticEI/$ElasticE]
} elseif { $bendingType == "3d" } {
fourFiberSectionGJ noSection $matID \
[expr $AddedElasticEA/$ElasticE] \
[expr $AddedElasticEIy/$ElasticE] \
[expr $AddedElasticEIz/$ElasticE] \
$AddedElasticGJ
}
}
}