recorder

Forum for OpenSees users to post questions, comments, etc. on the use of the OpenSees interpreter, OpenSees.exe

Moderators: silvia, selimgunay, Moderators

Post Reply
cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

recorder

Post by cctvcctv »

recorder EnvelopeNode -file EnvelopeNode.out -time -node 3 -disp

recorder Element -file Ele.out -time -ele 1 10 localForce


these two command got nothing in the file, how shoud fix it?

thansk
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

please post your script so I can check it out, and which version are you using?
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

Post by cctvcctv »

the following is related to my question, and

recorder Element -file Ele.out -time -ele 1 localForce

I got time and another 12 columns in file ele.out, and what is the meanings of each column? are they disp, force seperately?

I am using the most recent Opensees. 1.6.2 a

Thanks a lot!


script:

# Create ModelBuilder with 3 dimensions and 6 DOF/node

model basic -ndm 3 -ndf 6

# Define geometry

# Set parameters for model geometry
set H1 3.5
set H2 14.
set H3 7.
set H4 21.
set rouD 20000.
set rouP 10400.
set miu 0.25
set L 50.
set AD 6.88
set AP 4.16
set IyD 5.26
set IzD 103.77
set IyP 0.67
set IzP 7.39
set ED 2.3e7
set EP2 [expr 30700.*$H2*$H2*$H2/(3.*$IzP)]
set EP3 [expr 124400.*$H3*$H3*$H3/(3.*$IzP)]
set EP4 [expr 13650.*$H4*$H4*$H4/(3.*$IzP)]
set GD [expr $ED/2*(1+$miu)]
set GP2 [expr $EP2/2.*(1+$miu)]
set GP3 [expr $EP3/2.*(1+$miu)]
set GP4 [expr $EP4/2.*(1+$miu)]
set JD 16.13
set JP 0.2304


# Coordinate Transformation
geomTransf Linear 1 0 -1 0
geomTransf Linear 2 0 0 1
#**************************

# Materials: Isolators......

# Create nodes

# tag X Y Z

# Deck
node 1 0 0 0
node 5 [expr 4*$L] 0 0

# Pier 2
node 2 [expr $L] 0 0
node 11 [expr $L] [expr -$H1] 0
node 12 [expr $L] [expr -2*$H1] 0
node 13 [expr $L] [expr -3*$H1] 0
node 14 [expr $L] [expr -4*$H1] 0
# Pier 3
node 3 [expr 2*$L] 0 0
node 15 [expr 2*$L] [expr -$H1] 0
node 16 [expr 2*$L] [expr -2*$H1] 0
# Pier 4
node 4 [expr 3*$L] 0 0
node 17 [expr 3*$L] [expr -$H1] 0
node 18 [expr 3*$L] [expr -2*$H1] 0
node 19 [expr 3*$L] [expr -3*$H1] 0
node 20 [expr 3*$L] [expr -4*$H1] 0
node 21 [expr 3*$L] [expr -5*$H1] 0
node 22 [expr 3*$L] [expr -6*$H1] 0


# Node Mass
mass 1 [expr $rouD*$L/2] [expr $rouD*$L/2] 0.0 0.0 0.0 0.0
mass 2 [expr $rouD*$L+1/2*$rouP*$H1] [expr $rouD*$L+1/2*$rouP*$H1] 0.0 0.0 0.0 0.0
mass 3 [expr $rouD*$L+1/2*$rouP*$H1] [expr $rouD*$L+1/2*$rouP*$H1] 0.0 0.0 0.0 0.0
mass 4 [expr $rouD*$L+1/2*$rouP*$H1] [expr $rouD*$L+1/2*$rouP*$H1] 0.0 0.0 0.0 0.0
mass 5 [expr $rouD*$L/2] [expr $rouD*$L/2] 0.0 0.0 0.0 0.0


mass 11 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 12 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 13 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 14 [expr $rouP*$H1/2] [expr $rouP*$H1/2] 0.0 0.0 0.0 0.0
mass 15 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 16 [expr $rouP*$H1/2] [expr $rouP*$H1/2] 0.0 0.0 0.0 0.0
mass 17 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 18 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 19 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 20 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 21 [expr $rouP*$H1] [expr $rouP*$H1] 0.0 0.0 0.0 0.0
mass 22 [expr $rouP*$H1/2] [expr $rouP*$H1/2] 0.0 0.0 0.0 0.0
# Apply Boundary Conditions
# Set base constraints
# tag DX DY DZ RX RY RZ
fix 14 1 1 1 1 1 1
fix 16 1 1 1 1 1 1
fix 22 1 1 1 1 1 1
fix 1 1 0 0 1 0 0
fix 5 1 0 0 1 0 0

#
# Define deck elment
# Deck
# tag eleTag iNode jNode A E G J Iy Iz transfTag
element elasticBeamColumn 1 1 2 $AD $ED $GD $JD $IyD $IzD 1
element elasticBeamColumn 2 2 3 $AD $ED $GD $JD $IyD $IzD 1
element elasticBeamColumn 3 3 4 $AD $ED $GD $JD $IyD $IzD 1
element elasticBeamColumn 4 4 5 $AD $ED $GD $JD $IyD $IzD 1

# tag ndI ndJ nPts secID transf


# Define pier elment
# tag ndI ndJ nPts secID transf
#Pier 2
element elasticBeamColumn 10 2 11 $AP $EP2 $GP2 $JP $IyP $IzP 2
element elasticBeamColumn 11 11 12 $AP $EP2 $GP2 $JP $IyP $IzP 2
element elasticBeamColumn 12 12 13 $AP $EP2 $GP2 $JP $IyP $IzP 2
element elasticBeamColumn 13 13 14 $AP $EP2 $GP2 $JP $IyP $IzP 2
#Pier 3
element elasticBeamColumn 14 3 15 $AP $EP3 $GP3 $JP $IyP $IzP 2
element elasticBeamColumn 15 15 16 $AP $EP3 $GP3 $JP $IyP $IzP 2
#Pier 4
element elasticBeamColumn 16 4 17 $AP $EP4 $GP4 $JP $IyP $IzP 2
element elasticBeamColumn 17 17 18 $AP $EP4 $GP4 $JP $IyP $IzP 2
element elasticBeamColumn 18 18 19 $AP $EP4 $GP4 $JP $IyP $IzP 2
element elasticBeamColumn 19 19 20 $AP $EP4 $GP4 $JP $IyP $IzP 2
element elasticBeamColumn 20 20 21 $AP $EP4 $GP4 $JP $IyP $IzP 2
element elasticBeamColumn 21 21 22 $AP $EP4 $GP4 $JP $IyP $IzP 2


# ------------------------------

# End of model generation

# ------------------------------


# --------------------------

# Start of analysis generation

# --------------------------

# Loads: Ground Motion: Elcentro NS, PGA=0.313g; PDA=
# create load pattern
set GMdir "06"
set GroundFile "I-ELC180" ; # ground-motion filenames
# read a PEER strong motion database file, extracts dt from the header and converts the file
# to the format OpenSees expects for Unifform ground motions
set outFile $GMdir$GroundFile.acc; # set variable holding new filename (PEER files have .at2 extension)
set IDdofA 1; # dof of enforced response
set iSupNode {1 5 14 16 22}

# Cread Load Pattern
source ReadSMDFile.tcl
set inFile $GMdir$GroundFile.dt2
ReadSMDFile $inFile $outFile dt; # call procedure to convert the ground-motion file
set GMscale 0.01 ; # data in input file is in cm Unifts -- DISPLACEMENT TH
set dispSeries "Series -dt $dt -filePath $outFile -factor $GMscale"; # time series information
pattern MultipleSupport 1 {
set IDgm 100
groundMotion $IDgm Plain -disp $dispSeries
foreach SupNode $iSupNode {
imposedMotion $SupNode $IDdofA $IDgm
}
};
# end pattern

# create the analysis

wipeAnalysis
constraints Transformation
numberer Plain
system SparseGeneral -piv; # Create the system of equation storage and solver
test NormDispIncr 1.0e-8 10
algorithm Newton
integrator Newmark 0.5 0.25
analysis Transient
#set Nsteps [expr int($TmaxGround/$DtAnalysis)];
#set ok [analyze $Nsteps $DtAnalysis]
# if analysis fails, we try some other stuff, performance is slower inside this loop
#if {$ok != 0} {
#source LibConvergeTime.tcl
#}

#set endTime [getTime]
#puts doneGroundMotion...endTime$endTime
# --------------------------
# End of analysis generation
# --------------------------

# ----------------------------
# Start of recorder generation
# ----------------------------

# Record of Nodes and Elements
recorder Node -file node1.out -time -node 1 -dof 1 disp
recorder Node -file node1.out -time -node 1 -dof 1 disp
recorder Element -file Ele.out -time -ele 1 localForce

# Drifts of Piers
recorder Drift -file drift2.out -time -iNode 2 -jNode 14 -dof 1 -perpDirn 2
recorder Drift -file drift3.out -time -iNode 3 -jNode 16 -dof 1 -perpDirn 2
recorder Drift -file drift4.out -time -iNode 4 -jNode 22 -dof 1 -perpDirn 2

recorder EnvelopeNode -file EnvelopeNode.out -time -node 3 -dof 1 disp
recorder EnvelopeElement -file EnvelopeEle.out -ele 1 10 localForce
#recorder display $windowTitle $xLoc $yLoc $xPixels $yPixels <-file $fileName>
#recorder plot $fileName $windowTitle $xLoc $yLoc $xPixels $yPixels -columns $xCol0 $yCol0 <-columns $xCol1 $yCol1><-columns $xCol2 $yCol2> ...

# --------------------------

# End of recorder generation

# --------------------------

# --------------------

# Perform the analysis

# --------------------
Last edited by cctvcctv on Tue Jun 07, 2005 11:30 am, edited 1 time in total.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

i presume you have 3 dimensions and 6 dof's per node:

time FxI FyI FzI MxI MyI MzI FxJ FyJ FzJ MxJ MyJ MzJ

the three forces and three moments at each node, that's what you wanted, right?
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

Post by cctvcctv »

I added the beginning in the second post.

And I use 1.6.2.a


I have another script with Isolators, and still under construction.
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

okey, but you have resolved the current problem???
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
cctvcctv
Posts: 48
Joined: Mon Apr 04, 2005 9:45 pm
Location: UC Irvine-Utah State University

Post by cctvcctv »

no, not solve the problem of recorder envelope yet
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

just for this version, i believe, try to remove the -time command from the envelope recorder!
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
Post Reply