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 ?
some questions about "LibGeneratePeaks.tcl"
Moderators: silvia, selimgunay, Moderators
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!
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!
-
- Posts: 9
- Joined: Fri Oct 17, 2014 2:26 am
- Location: Indian Institute of Technology Guwahati
Re: some questions about "LibGeneratePeaks.tcl"
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
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