How to save the residual displacement into a file?

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

Moderators: silvia, selimgunay, Moderators

Post Reply
KhaledSaif
Posts: 20
Joined: Fri Feb 19, 2016 11:06 pm
Location: University of Canterbury

How to save the residual displacement into a file?

Post by KhaledSaif »

Hi all,
This might be silly question but I couldn't manage to do it :(
I just need to save the residual displacement to a file. I know that the recorder gives all the displacements and the last one will be the residual, however, I need the output file to contain only the residual displacement.

I use this line of code to display the residual displacement of point 2 in direction 1:
puts "[nodeDisp 2 1]"

Also I tried to save it using the following code (the file was created but its empty):
set RSDL[open ResidualDisp.out "w"]
puts $RSDL "[nodeDisp 2 1]"

Any help will be appreciated.
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: How to save the residual displacement into a file?

Post by fmk »

you need a "close $RSDL" .. if that blank, check you have a node 2 (i.e. no wipe before it)
KhaledSaif
Posts: 20
Joined: Fri Feb 19, 2016 11:06 pm
Location: University of Canterbury

Re: How to save the residual displacement into a file?

Post by KhaledSaif »

Thanks, the close code solved it :D
Post Reply