2.0.0 version and 2.3.1

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

Moderators: silvia, selimgunay, Moderators

Post Reply
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

2.0.0 version and 2.3.1

Post by alirezaii »

hello vesna
I have a model which run with OpenSees2.0.0 and not work with 2.3.1
can i send this to your personal email?
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: 2.0.0 version and 2.3.1

Post by vesna »

Can you test it with the latest OpenSees version, which is 2.3.2.

Do you know exactly which command is not working?
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

hello vesna
I think "gets command" not working with 2.3.1 or ActiveTcl 8.5.9.1.294121 has problem.
2.3.2 version has the same result
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: 2.0.0 version and 2.3.1

Post by vesna »

I just tested "gets" command on OpenSees2.3.2 using Mac and PC and it worked on both.
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

hello vesna
It seems that opensees 2.3.2 workes with ActiveTcl 8.5.11 and opensees 2.0.0 workes with ActiveTcl 8.4.0
i test "gets" command on OpenSees2.3.2 in my laptop computer with win7 operating system.
this command work with 2.0.0 version and not work with 2.3.2
Also "seek" and "read" commands are same as "gets" in this manner.
i think this problem is related to "format" command
if this is right, pleas help me for using the "format" command with example.

the part of my script is here:

for {set k 1} {$k<7 } {incr k 1} {
recorder Node -file "def_modo$k.out" -node 12 22 32 42 52 62 -dof 1 "eigen $k"

set file_ID [format "def_modo%i.out" $k]

#set file [open [format "%s" $file_ID] "r"]

set InFileID [open $file_ID "r"]

gets $InFileID line
puts "line= $line "
puts "kk= $InFileID "

}


-------------------------------------------
which in opensees give me:
"line=
kk= file1d3a348"

i am confused!
pleas help me vesna.

Best Regards in advance
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: 2.0.0 version and 2.3.1

Post by vesna »

Would you explain me what are you trying to code.
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

hello vesna
I found the problem
Last edited by alirezaii on Fri May 25, 2012 11:27 pm, edited 1 time in total.
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: 2.0.0 version and 2.3.1

Post by vesna »

The reason for this not working is that the recorder command was changed. The output files are written after you finish analysis and exit OpenSees. To get the eigenvectors you can use nodeEigenvector command: http://opensees.berkeley.edu/wiki/index ... or_Command
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

Thanks a lot vesna

Best regards
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

hello vesna
I need to give shear forces of columns at each step of analysis. What do I do it?


Best Regards in advance
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: 2.0.0 version and 2.3.1

Post by vesna »

Can you explain your problem better? I am not sure if recorder command is what you need or you need something else.
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

hi vesna
I have a adaptive pushover analysis in which shear forces of columns in each story at each step of analysis are in a loop.
I couldn't record these shears during the analysis.
thanks
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

hello vesna
Are you read my reply?
Whether there is ambiguity with my reply?

pleas help me
Thanks
vesna
Posts: 3033
Joined: Tue May 23, 2006 11:23 am
Location: UC Berkeley

Re: 2.0.0 version and 2.3.1

Post by vesna »

You can use eleResponse command to achieve that: http://opensees.berkeley.edu/wiki/index ... se_Command

Here is an example:

set force [eleResponse 1 forces]; # returns global forces of element 1 and and assigns it to "force"
set shear [lindex $force 0]; # returns the 1st item from the "force" list and assigns it to "shear"

For your case make sure to use the proper index to extract the shear force from the force vector of the element.
alirezaii
Posts: 37
Joined: Fri Mar 16, 2012 8:07 am

Re: 2.0.0 version and 2.3.1

Post by alirezaii »

Thanks vesna
You did a great help to me.
Tanks a lot vesna.
Post Reply