some questions about "LibGeneratePeaks.tcl"

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

Moderators: silvia, selimgunay, Moderators

Post Reply
eda000
Posts: 3
Joined: Tue Jun 23, 2009 1:44 am
Location: huaqiao university

some questions about "LibGeneratePeaks.tcl"

Post by eda000 »

Hi all
I have the Cantilever column do the Static Reversed CyclicAnalysis controled by deformation, the Cantilever column is a steel reinforce concrete. Now I face a problem that when I perform OS, it showed "couldn't read file "LibGeneratePeaks.tcl":no such file or directory.

But it indeed exsits! I don't know why~~

I have 2 question in "LibGeneratePeaks.tcl" downloaded from your example:
1: set outFileID [open data/tmpDsteps.tcl w], what does it mean?
2:puts $outFileID "set iDstep { ";puts $outFileID $Disp;puts $outFileID $Disp; # open vector definition and some 0
what does it mean? why does it have two "puts $outFileID $Disp;"?

Thank you for your answer..I am a new learner, so can you give me the detailed explain ?
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

it is generating a displacement-history file in the data directory, which will then be read.
you Lib file is not in the proper directory, likely.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
eda000
Posts: 3
Joined: Tue Jun 23, 2009 1:44 am
Location: huaqiao university

Post by eda000 »

yes! you are right!
My Lib file is not in the proper directory, hehe.

another question. when I perform it, there are somes problem:
it shows can't read "LunitTXT": no such variable,while executing
"if {$ok != 0} {
set putout [format $fmt1 "PROBLEM" $IDctrlNode $IDctrlDOF [nodeDisp $IDctrlNode $IDctrlDOF] $LunitTXT]"
which in your "Ex4.Portal2D.analyze.Static.Cycle.tcl", I don't know what " LunitTXT" stands for~~~

thank you for your attention!
silvia
Posts: 3909
Joined: Tue Jan 11, 2005 7:44 am
Location: Degenkolb Engineers
Contact:

Post by silvia »

you need to define that variable. it is in the LibUnits.tcl file.
Silvia Mazzoni, PhD
Structural Consultant
Degenkolb Engineers
235 Montgomery Street, Suite 500
San Francisco, CA. 94104
nsharmanishant
Posts: 9
Joined: Fri Oct 17, 2014 2:26 am
Location: Indian Institute of Technology Guwahati

Re: some questions about "LibGeneratePeaks.tcl"

Post by nsharmanishant »

Q.1 set outFileID [open data/tmpDsteps.tcl w], what does it mean?

Ans. This means that a file named tmpDsteps.tcl is being created under the directory Data and a variable outFileID is being defines which will take the address of the file "tmpDsteps.tcl" as its definition.

Q. 2:puts $outFileID "set iDstep { ";puts $outFileID $Disp;puts $outFileID $Disp; # open vector definition and some 0
what does it mean? why does it have two "puts $outFileID $Disp;"?

Ans. This means that the address of the file is being called in which vector definition is initiated as "set iDstep { " and corresponding to the same file address "$Disp" value, which is 0 initially defined in the code, is written two times. you may run the file and it will be seen.


please correct me if I am wrong.

Regards,
Nishant
Post Reply