hi
i built up a 2D Steel Moment Frame model
The Springs in Model doesn't Record Any Force
I change Globalforce to localforce but recorder doesnt record force in spring
Please Help Us
Opensees 2.4.6
#####################
wipe
#Units: kg-m-s
file mkdir 9-6
model BasicBuilder -ndm 2 -ndf 3
source H.tcl
source I.tcl
set Pi [expr 4*atan(1)]
####################################################################################################
## Define Building Geometry, Nodes, and Constraints
####################################################################################################
## define structure-geometry parameters
set Ns1 6.0
set Ns2 9.0
#set Ns3 12.0
# Ns= Number of stories
set Nb 3.0
# Nb= Number of bays
set Wb 4.5
# Wb= Bay Withs
set Hs 3.0
# Hs= Story Height
set Hbuilding6 [expr $Ns1*$Hs]
set Hbuilding9 [expr $Ns2*$Hs]
#set Hbuilding12 [expr $Ns3*$Hs]
#start point Of Building
set x6 0.0
set x9 13.5
# calculate locations frame nodes:
#columns
set P61 $x6
set P62 [expr $P61+$Wb]
set P63 [expr $P62+$Wb]
set P64 [expr $P63+$Wb]
set P91 $x9
set P92 [expr $P91+$Wb]
set P93 [expr $P92+$Wb]
set P94 [expr $P93+$Wb]
#Floor
set F0 0.0
set F1 [expr $F0+$Hs]
set F2 [expr $F1+$Hs]
set F3 [expr $F2+$Hs]
set F4 [expr $F3+$Hs]
set F5 [expr $F4+$Hs]
set F6 [expr $F5+$Hs]
set F7 [expr $F6+$Hs]
set F8 [expr $F7+$Hs]
set F9 [expr $F8+$Hs]
# calculate nodal masses -- lump floor masses at frame nodes
set g 9.81
set MassH 4860.0
set Mass2H 9720.0
set MassHR 4784.0
set Mass2HR 9568.0
set MassV 1e-5
################## 6 Story ##################
#P61
node 601 $P61 $F0
node 611 $P61 $F1 -mass $MassH $MassV 1e-5
node 621 $P61 $F2 -mass $MassH $MassV 1e-5
node 631 $P61 $F3 -mass $MassH $MassV 1e-5
node 641 $P61 $F4 -mass $MassH $MassV 1e-5
node 651 $P61 $F5 -mass $MassH $MassV 1e-5
node 661 $P61 $F6 -mass $MassHR $MassV 1e-5
#P62
node 602 $P62 $F0
node 612 $P62 $F1 -mass $Mass2H $MassV 1e-5
node 622 $P62 $F2 -mass $Mass2H $MassV 1e-5
node 632 $P62 $F3 -mass $Mass2H $MassV 1e-5
node 642 $P62 $F4 -mass $Mass2H $MassV 1e-5
node 652 $P62 $F5 -mass $Mass2H $MassV 1e-5
node 662 $P62 $F6 -mass $Mass2HR $MassV 1e-5
#P63
node 603 $P63 $F0
node 613 $P63 $F1 -mass $Mass2H $MassV 1e-5
node 623 $P63 $F2 -mass $Mass2H $MassV 1e-5
node 633 $P63 $F3 -mass $Mass2H $MassV 1e-5
node 643 $P63 $F4 -mass $Mass2H $MassV 1e-5
node 653 $P63 $F5 -mass $Mass2H $MassV 1e-5
node 663 $P63 $F6 -mass $Mass2HR $MassV 1e-5
#P64
node 604 $P64 $F0
node 614 $P64 $F1 -mass $MassH $MassV 1e-5
node 624 $P64 $F2 -mass $MassH $MassV 1e-5
node 634 $P64 $F3 -mass $MassH $MassV 1e-5
node 644 $P64 $F4 -mass $MassH $MassV 1e-5
node 654 $P64 $F5 -mass $MassH $MassV 1e-5
node 664 $P64 $F6 -mass $MassHR $MassV 1e-5
########################################
################## 9 story #############
#P91
node 901 $P91 $F0
node 911 $P91 $F1 -mass $MassH $MassV 1e-5
node 921 $P91 $F2 -mass $MassH $MassV 1e-5
node 931 $P91 $F3 -mass $MassH $MassV 1e-5
node 941 $P91 $F4 -mass $MassH $MassV 1e-5
node 951 $P91 $F5 -mass $MassH $MassV 1e-5
node 961 $P91 $F6 -mass $MassH $MassV 1e-5
node 971 $P91 $F7 -mass $MassH $MassV 1e-5
node 981 $P91 $F8 -mass $MassH $MassV 1e-5
node 991 $P91 $F9 -mass $MassHR $MassV 1e-5
#P92
node 902 $P92 $F0
node 912 $P92 $F1 -mass $Mass2H $MassV 1e-5
node 922 $P92 $F2 -mass $Mass2H $MassV 1e-5
node 932 $P92 $F3 -mass $Mass2H $MassV 1e-5
node 942 $P92 $F4 -mass $Mass2H $MassV 1e-5
node 952 $P92 $F5 -mass $Mass2H $MassV 1e-5
node 962 $P92 $F6 -mass $Mass2H $MassV 1e-5
node 972 $P92 $F7 -mass $Mass2H $MassV 1e-5
node 982 $P92 $F8 -mass $Mass2H $MassV 1e-5
node 992 $P92 $F9 -mass $Mass2HR $MassV 1e-5
#P93
node 903 $P93 $F0
node 913 $P93 $F1 -mass $Mass2H $MassV 1e-5
node 923 $P93 $F2 -mass $Mass2H $MassV 1e-5
node 933 $P93 $F3 -mass $Mass2H $MassV 1e-5
node 943 $P93 $F4 -mass $Mass2H $MassV 1e-5
node 953 $P93 $F5 -mass $Mass2H $MassV 1e-5
node 963 $P93 $F6 -mass $Mass2H $MassV 1e-5
node 973 $P93 $F7 -mass $Mass2H $MassV 1e-5
node 983 $P93 $F8 -mass $Mass2H $MassV 1e-5
node 993 $P93 $F9 -mass $Mass2HR $MassV 1e-5
#P94
node 904 $P94 $F0
node 914 $P94 $F1 -mass $MassH $MassV 1e-5
node 924 $P94 $F2 -mass $MassH $MassV 1e-5
node 934 $P94 $F3 -mass $MassH $MassV 1e-5
node 944 $P94 $F4 -mass $MassH $MassV 1e-5
node 954 $P94 $F5 -mass $MassH $MassV 1e-5
node 964 $P94 $F6 -mass $MassH $MassV 1e-5
node 974 $P94 $F7 -mass $MassH $MassV 1e-5
node 984 $P94 $F8 -mass $MassH $MassV 1e-5
node 994 $P94 $F9 -mass $MassHR $MassV 1e-5
fix 601 1 1 0
fix 602 1 1 0
fix 603 1 1 0
fix 604 1 1 0
fix 901 1 1 0
fix 902 1 1 0
fix 903 1 1 0
fix 904 1 1 0
#fix 1201 1 1 0
#fix 1202 1 1 0
#fix 1203 1 1 0
#fix 1204 1 1 0
#
#############################################################################
## define constraints
#
##B61 : P61-P62
equalDOF 611 612 1
equalDOF 621 622 1
equalDOF 631 632 1
equalDOF 641 642 1
equalDOF 651 652 1
equalDOF 661 662 1
##B62 : P61-P63
equalDOF 611 613 1
equalDOF 621 623 1
equalDOF 631 633 1
equalDOF 641 643 1
equalDOF 651 653 1
equalDOF 661 663 1
##B63 : P61-P64
equalDOF 611 614 1
equalDOF 621 624 1
equalDOF 631 634 1
equalDOF 641 644 1
equalDOF 651 654 1
equalDOF 661 664 1
#############################
##B91 : P91-P92
equalDOF 911 912 1
equalDOF 921 922 1
equalDOF 931 932 1
equalDOF 941 942 1
equalDOF 951 952 1
equalDOF 961 962 1
equalDOF 971 972 1
equalDOF 981 982 1
equalDOF 991 992 1
##B92 : P91-P93
equalDOF 911 913 1
equalDOF 921 923 1
equalDOF 931 933 1
equalDOF 941 943 1
equalDOF 951 953 1
equalDOF 961 963 1
equalDOF 971 973 1
equalDOF 981 983 1
equalDOF 991 993 1
##B93 : P91-P94
equalDOF 911 914 1
equalDOF 921 924 1
equalDOF 931 934 1
equalDOF 941 944 1
equalDOF 951 954 1
equalDOF 961 964 1
equalDOF 971 974 1
equalDOF 981 984 1
equalDOF 991 994 1
####################### Define Beams ################
####################### 6 Story #######################
#B61:61-62
element nonlinearBeamColumn 616201 611 612 5 200 2
element nonlinearBeamColumn 616202 621 622 5 200 2
element nonlinearBeamColumn 616203 631 632 5 200 2
element nonlinearBeamColumn 616204 641 642 5 180 2
element nonlinearBeamColumn 616205 651 652 5 160 2
element nonlinearBeamColumn 616206 661 662 5 160 2
#B62:62-63
element nonlinearBeamColumn 626301 612 613 5 200 2
element nonlinearBeamColumn 626302 622 623 5 200 2
element nonlinearBeamColumn 626303 632 633 5 200 2
element nonlinearBeamColumn 626304 642 643 5 180 2
element nonlinearBeamColumn 626305 652 653 5 160 2
element nonlinearBeamColumn 626306 662 663 5 160 2
#B63:63-64
element nonlinearBeamColumn 636401 613 614 5 200 2
element nonlinearBeamColumn 636402 623 624 5 200 2
element nonlinearBeamColumn 636403 633 634 5 200 2
element nonlinearBeamColumn 636404 643 644 5 180 2
element nonlinearBeamColumn 636405 653 654 5 160 2
element nonlinearBeamColumn 636406 663 664 5 160 2
####################### 9 Story #######################
#B91:91-92
element nonlinearBeamColumn 919201 911 912 5 240 2
element nonlinearBeamColumn 919202 921 922 5 240 2
element nonlinearBeamColumn 919203 931 932 5 240 2
element nonlinearBeamColumn 919204 941 942 5 220 2
element nonlinearBeamColumn 919205 951 952 5 220 2
element nonlinearBeamColumn 919206 961 962 5 200 2
element nonlinearBeamColumn 919207 971 972 5 200 2
element nonlinearBeamColumn 919208 981 982 5 180 2
element nonlinearBeamColumn 919209 991 992 5 180 2
#B92:92-93
element nonlinearBeamColumn 929301 912 913 5 240 2
element nonlinearBeamColumn 929302 922 923 5 240 2
element nonlinearBeamColumn 929303 932 933 5 240 2
element nonlinearBeamColumn 929304 942 943 5 220 2
element nonlinearBeamColumn 919305 952 953 5 220 2
element nonlinearBeamColumn 929306 962 963 5 200 2
element nonlinearBeamColumn 929307 972 973 5 200 2
element nonlinearBeamColumn 929308 982 983 5 180 2
element nonlinearBeamColumn 929209 992 993 5 180 2
#B92:93-94
element nonlinearBeamColumn 939401 913 914 5 240 2
element nonlinearBeamColumn 939402 923 924 5 240 2
element nonlinearBeamColumn 939403 933 934 5 240 2
element nonlinearBeamColumn 939404 943 944 5 220 2
element nonlinearBeamColumn 939405 953 954 5 220 2
element nonlinearBeamColumn 939406 963 964 5 200 2
element nonlinearBeamColumn 939407 973 974 5 200 2
element nonlinearBeamColumn 939408 983 984 5 180 2
element nonlinearBeamColumn 939409 993 994 5 180 2
############### Define Column #############
#####################6 Story#########################
###P61
element nonlinearBeamColumn 6101 601 611 5 220 1
element nonlinearBeamColumn 6102 611 621 5 220 1
element nonlinearBeamColumn 6103 621 631 5 200 1
element nonlinearBeamColumn 6104 631 641 5 200 1
element nonlinearBeamColumn 6105 641 651 5 180 1
element nonlinearBeamColumn 6106 651 661 5 180 1
###P62
element nonlinearBeamColumn 6201 602 612 5 220 1
element nonlinearBeamColumn 6202 612 622 5 220 1
element nonlinearBeamColumn 6203 622 632 5 200 1
element nonlinearBeamColumn 6204 632 642 5 200 1
element nonlinearBeamColumn 6205 642 652 5 180 1
element nonlinearBeamColumn 6206 652 662 5 180 1
###P63
element nonlinearBeamColumn 6301 603 613 5 220 1
element nonlinearBeamColumn 6302 613 623 5 220 1
element nonlinearBeamColumn 6303 623 633 5 200 1
element nonlinearBeamColumn 6304 633 643 5 200 1
element nonlinearBeamColumn 6305 643 653 5 180 1
element nonlinearBeamColumn 6306 653 663 5 180 1
###P64
element nonlinearBeamColumn 6401 604 614 5 220 1
element nonlinearBeamColumn 6402 614 624 5 220 1
element nonlinearBeamColumn 6403 624 634 5 200 1
element nonlinearBeamColumn 6404 634 644 5 200 1
element nonlinearBeamColumn 6405 644 654 5 180 1
element nonlinearBeamColumn 6406 654 664 5 180 1
#####################9 Story#########################
###P91
element nonlinearBeamColumn 9101 901 911 5 260 1
element nonlinearBeamColumn 9102 911 921 5 260 1
element nonlinearBeamColumn 9103 921 931 5 260 1
element nonlinearBeamColumn 9104 931 941 5 240 1
element nonlinearBeamColumn 9105 941 951 5 240 1
element nonlinearBeamColumn 9106 951 961 5 220 1
element nonlinearBeamColumn 9107 961 971 5 220 1
element nonlinearBeamColumn 9108 971 981 5 200 1
element nonlinearBeamColumn 9109 981 991 5 200 1
###P92
element nonlinearBeamColumn 9201 902 912 5 260 1
element nonlinearBeamColumn 9202 912 922 5 260 1
element nonlinearBeamColumn 9203 922 932 5 260 1
element nonlinearBeamColumn 9204 932 942 5 240 1
element nonlinearBeamColumn 9205 942 952 5 240 1
element nonlinearBeamColumn 9206 952 962 5 220 1
element nonlinearBeamColumn 9207 962 972 5 220 1
element nonlinearBeamColumn 9208 972 982 5 200 1
element nonlinearBeamColumn 9209 982 992 5 200 1
###P93
element nonlinearBeamColumn 9301 903 913 5 260 1
element nonlinearBeamColumn 9302 913 923 5 260 1
element nonlinearBeamColumn 9303 923 933 5 260 1
element nonlinearBeamColumn 9304 933 943 5 240 1
element nonlinearBeamColumn 9305 943 953 5 240 1
element nonlinearBeamColumn 9306 953 963 5 220 1
element nonlinearBeamColumn 9307 963 973 5 220 1
element nonlinearBeamColumn 9308 973 983 5 200 1
element nonlinearBeamColumn 9309 983 993 5 200 1
###P94
element nonlinearBeamColumn 9401 904 914 5 260 1
element nonlinearBeamColumn 9402 914 924 5 260 1
element nonlinearBeamColumn 9403 924 934 5 260 1
element nonlinearBeamColumn 9404 934 944 5 240 1
element nonlinearBeamColumn 9405 944 954 5 240 1
element nonlinearBeamColumn 9406 954 964 5 220 1
element nonlinearBeamColumn 9407 964 974 5 220 1
element nonlinearBeamColumn 9408 974 984 5 200 1
element nonlinearBeamColumn 9409 984 994 5 200 1
#####################################################################
set matTag 2020
set E 10000000
set fy [expr 50000000]
set gap [expr 0.08]
uniaxialMaterial ElasticPPGap $matTag $E $Fy $gap
element zeroLength 10064911 614 911 -mat $matTag $matTag -dir 1 2
element zeroLength 10064912 624 921 -mat $matTag $matTag -dir 1 2
element zeroLength 10064913 634 931 -mat $matTag $matTag -dir 1 2
element zeroLength 10064914 644 941 -mat $matTag $matTag -dir 1 2
element zeroLength 10064915 654 951 -mat $matTag $matTag -dir 1 2
element zeroLength 10064916 664 961 -mat $matTag $matTag -dir 1 2
#recorder Element -file 9-6/node10064911Force.out –time -ele 10064911 globalForce
#recorder Element -file 9-6/node10064912Force.out –time -ele 10064912 globalForce
#recorder Element -file 9-6/node10064913Force.out –time -ele 10064913 globalForce
#recorder Element -file 9-6/node10064914Force.out –time -ele 10064914 globalForce
#recorder Element -file 9-6/node10064915Force.out –time -ele 10064915 globalForce
#recorder Element -file 9-6/node10064916Force.out –time -ele 10064916 globalForce
Recorder doesnt record force in spring
Moderators: silvia, selimgunay, Moderators
Re: Recorder doesnt record force in spring
try globalForces
Re: Recorder doesnt record force in spring
Thanks For Reply
I try Global And Local but recorder doesn't record anything
I try Global And Local but recorder doesn't record anything
Re: Recorder doesnt record force in spring
do you actually do any analysis .. you should at least see a column of time values.
try this with your .exe on your machine
model Basic -ndm 2 -ndf 2
node 1 0 0
node 2 0 0
fix 1 1 1
uniaxialMaterial Elastic 1 100
element zeroLength 1 1 2 -mat 1 1 -dir 1 2
timeSeries Linear 1
pattern Plain 1 1 {
load 2 1. 2.
}
recorder Element -file ele.out -time -ele 1 globalForces
analysis Static
analyze 10
try this with your .exe on your machine
model Basic -ndm 2 -ndf 2
node 1 0 0
node 2 0 0
fix 1 1 1
uniaxialMaterial Elastic 1 100
element zeroLength 1 1 2 -mat 1 1 -dir 1 2
timeSeries Linear 1
pattern Plain 1 1 {
load 2 1. 2.
}
recorder Element -file ele.out -time -ele 1 globalForces
analysis Static
analyze 10
Re: Recorder doesnt record force in spring
Sometimes OpenSees does not complete printing the .out files before you close the program. Instead of closing the program, you may also give a try to the command "wipe" at the end of your .tcl file. If your .out files are of the zero size, it means that either the element for which you are recording the responses does not exist in the domain, or the response argument that you are recording is invalid. According to your script, however, none of these apply.
By the way, I am wondering why your recorder commands have # symbol at their beginnings (as you know, it makes them comment).
By the way, I am wondering why your recorder commands have # symbol at their beginnings (as you know, it makes them comment).
Mohammad Salehi
Graduate Research Assistant
PhD Student - Structural Engineering and Structural Mechanics
University of Colorado at Boulder
Graduate Research Assistant
PhD Student - Structural Engineering and Structural Mechanics
University of Colorado at Boulder