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 » Sun Mar 18, 2012 6:02 am

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 » Mon Mar 19, 2012 10:47 am

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 » Thu Mar 22, 2012 12:16 pm

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 » Mon Mar 26, 2012 10:29 am

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 » Tue May 22, 2012 4:46 am

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 » Thu May 24, 2012 10:14 am

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 » Fri May 25, 2012 12:24 am

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 » Fri May 25, 2012 12:22 pm

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 » Fri May 25, 2012 12:47 pm

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 » Thu Jun 21, 2012 12:24 am

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 » Thu Jun 21, 2012 11:19 am

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 » Sat Jun 23, 2012 7:56 am

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 » Mon Jun 25, 2012 12:21 am

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 » Mon Jun 25, 2012 10:51 am

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 » Mon Jun 25, 2012 9:50 pm

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

Post Reply