You are on page 1of 4

h a n g e Pro h a n g e Pro

XC d XC d
F- F-
1

uc

uc
PD

PD
!

!
W

W
t

t
O

O
2 # #####################################################################
N

N
y

y
bu

bu
3 # --Example # 1 - "A single bay single story Frame supported by two square footings"
to

to
ww

ww
om

om
k

k
lic

lic
C

C
4 # --Written by Prishati Raychowdhury (UCSD)
.c

.c
w

w
tr r e tr re
.

.
ac ac
k e r- s o ft w a k e r- s o ft w a
5 # --units: N,m
6 # #######################################################################
7
8 wipe
9 wipeAnalysis
10
11 # Create ModelBuilder
12
13 model BasicBuilder -ndm 2 -ndf 3
14
15 # Set column dimensions
16
17 set LengthCol1 0.5; # Column 1
18 set WidthCol1 0.5;
19 set LengthCol2 0.4; # Column 2
20 set WidthCol2 0.4;
21 set HeightCol 5.0; # Height of each column
22
23 et ColSpacing 3.0; # @c/c column spacing
24
25 set HeightBeam 0.4; # Beam
26 set WidthBeam 0.4;
27
28 # Set structural nodes
29
30 #node Tag X Y
31 node 1 0. 0.
32 node 2 0. $HeightCol
33 node 3 $ColSpacing 0.
34 node 4 $ColSpacing $HeightCol
35
36 # set wall properties
37
38 set ACol1 [expr $WidthCol1*$LengthCol1]
39 set ICol1 [expr $WidthCol1*pow($LengthCol1,3)/12.]
40 set ACol2 [expr $WidthCol2*$LengthCol2]
41 set ICol2 [expr $WidthCol2*pow($LengthCol2,3)/12.]
42 set ABeam [expr $WidthBeam*$HeightBeam]
43 set IBeam [expr $WidthBeam*pow($HeightBeam,3)/12.]
44 set E [expr 2.15*pow(10,10)]; #----[N/m^2] concrete
45
46 # set wall material
47
48 uniaxialMaterial Elastic 1 $E
49
50 # set geometric transformation
51
52 geomTransf Linear 1
53 geomTransf Linear 2
54
55 # set column and beam elements
56
57 #element elasticBeamColumn $eleTag $iNode $jNode $A $E $Iz $tranfTag
58
59 element elasticBeamColumn 1 1 2 $ACol1 $E $ICol1 1
60 element elasticBeamColumn 2 3 4 $ACol2 $E $ICol2 1
61 element elasticBeamColumn 3 2 4 $ABeam $E $IBeam 2
62
63 # set wall mass
h a n g e Pro h a n g e Pro
XC d XC d
F- F-
64

uc

uc
PD

PD
!

!
W

W
t

t
O

O
65 set Mass 1200.0; #---nodal mass of structure (kg)
N

N
y

y
bu

bu
66
to

to
ww

ww
om

om
k

k
lic

lic
C

C
a c 67 r e mass 2 $Mass
.c $Mass 1.0

.c
w

w
tr tr re
.

.
ac
k e r- s o ft w a k e r- s o ft w a
68 mass 4 $Mass $Mass 1.0
69
70 #
71 #
72 # -------------------------------------------------
73 # Use ShallowFoundationGen command to
74 # attach shallow foundation with Foundation tag=1
75 # connected at node 1
76 # --------------------------------------------------
77 #
78
79 set FoundationTag 1
80
81 #ShallowFoundationGen $FoundationTag $ConectNode $inpufile $FootCondition
82
83 ShallowFoundationGen $FoundationTag 1 "Input1.txt" 5
84 source Foundation_$FoundationTag.tcl
85 #
86 #
87
88 # -------------------------------------------------
89 # Use ShallowFoundationGen command to
90 # attach shallow foundation with Foundation tag=2
91 # connected at node 3
92 # --------------------------------------------------
93 #
94
95 set FoundationTag 2
96
97 #ShallowFoundationGen $FoundationTag $ConectNode "Input.dat" $FootCondition
98
99 ShallowFoundationGen $FoundationTag 3 "Input2.txt" 4
100 source Foundation_$FoundationTag.tcl
101
102 # -------------------------------
103 # Eigen Value Analysis
104 # -------------------------------
105
106 set PI 3.1415926
107 set lambdax [eigen 1]
108 set lambda [lindex $lambdax 0]
109 set omega [expr pow($lambda,0.5)]
110 set Tn [expr 2*$PI/$omega]
111 set fn [expr 1/$Tn]
112 puts "1st mode, Tn=$Tn sec, fn=$fn Hz"
113
114 # -------------------------------
115 # Recorder
116 # -------------------------------
117 # Column
118
119 recorder Node -time -file Coldisp1.dat -node 2 -dof 1 disp
120 recorder Element -file Colforce1.dat -time -ele 1 localForce
121
122 #Foundation 1: End Spring
123
124 recorder Node -time -file EndSprLdisp1.dat -node $endFootNodeL_1 -dof 1 2 3 disp
125 recorder Element -file EndSpringLforce1.dat -time -ele $endSprEleL_1 force
126
h a n g e Pro h a n g e Pro
XC d XC d
F- F-
127 #Foundation 2: End Spring

uc

uc
PD

PD
!

!
W

W
t

t
O

O
128
N

N
y

y
bu

bu
129 recorder Node -time -file EndSprLdisp2.dat -node $endFootNodeL_2 -dof 1 2 3 disp
to

to
ww

ww
om

om
k

k
lic

lic
C

C
t r 130 recorder Element -file EndSpringLforce2.dat -time -ele $endSprEleL_2 force
.c

.c
w

w
r e tr re
.

.
ac ac
k e r- s o ft w a k e r- s o ft w a
131
132 # -----------------------
133 # Gravity LOAD PATTERNS
134 # -----------------------
135
136 set gacc 9.87
137 set FSv 5.0
138 set deadLoad [expr $Mass*$gacc*$FSv]; #---total gravity load on footing (footing+wall)
139
140 #puts $deadLoad
141
142 pattern Plain 1 "Linear" {
143 load 2 0. [expr -$deadLoad] 0.
144 load 4 0. [expr -$deadLoad] 0.
145 }
146
147 # --------------------
148 # gravity analysis
149 # --------------------
150
151 system UmfPack
152 constraints Plain
153 test NormDispIncr 1.0e-8 40 0
154 algorithm Newton
155 numberer RCM
156 integrator LoadControl 0.1
157 analysis Static
158 analyze 10; # use 10 analysis steps
159
160 # --------------------
161 # Pushover analysis
162 # --------------------
163
164 #loadConst
165 loadConst -time 0.0
166
167 # ----------------------------------------------------
168 #puts $deadLoad
169
170 pattern Plain 2 "Linear" {
171 load 2 -10.0 0.0 0.
172 }
173
174 analyze 100
175
176 # ----------------------------------------------------
177 # Start of Displacement Control
178 # ----------------------------------------------------
179
180 #Set some parameters
181
182 set dU -0.005; # Displacement increment
183
184 #integrator DisplacementControl node dof init Jd min max
185
186 integrator DisplacementControl 2 1 $dU 3 [expr $dU/2.0] $dU
187 analyze 300
188 set dU 0.005; # Displacement increment
189 ##integrator DisplacementControl node dof init Jd min max
h a n g e Pro h a n g e Pro
XC d XC d
F- F-
190 integrator DisplacementControl 2 1 $dU 3 [expr $dU/10.0] $dU

uc

uc
PD

PD
!

!
W

W
t

t
O

O
191
N

N
y

y
bu

bu
192 # analyze 160
to

to
ww

ww
om

om
k

k
lic

lic
C

C
t r 193 .c

.c
w

w
r e tr re
.

.
ac ac
k e r- s o ft w a k e r- s o ft w a
194 # End of the analysis
195 # ###################################################################
196
197
198
199
200

You might also like