how to record response after specified time

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

Moderators: silvia, selimgunay, Moderators

Post Reply
parisaKM
Posts: 5
Joined: Sat Jul 15, 2017 12:30 pm

how to record response after specified time

Post by parisaKM » Sat Jul 15, 2017 12:34 pm

Hi,

I want to record drift values after a specified time step. Is there any way to do in opensees?

tnx
parisa

selimgunay
Posts: 913
Joined: Mon Sep 09, 2013 8:50 pm
Location: University of California, Berkeley

Re: how to record response after specified time

Post by selimgunay » Sat Jul 15, 2017 2:53 pm

You can add the recorder after a certain time step. Below is an example

set tTot [time {
for {set i 1} {$i < $Nsteps} {incr i} {
set t [time {analyze 1 [expr $DtAnalysis]}]

if {$i== 100 } {
recorder Node -file disp.out -time -node 100 -dof 1 2 3 disp
}

puts $outFileID $t
#puts "step $i"
}
}]

parisaKM
Posts: 5
Joined: Sat Jul 15, 2017 12:30 pm

Re: how to record response after specified time

Post by parisaKM » Sun Jul 16, 2017 12:23 pm

Thanks a lot for your quick answer.
It reduced the analysis speed, is it normal?

selimgunay
Posts: 913
Joined: Mon Sep 09, 2013 8:50 pm
Location: University of California, Berkeley

Re: how to record response after specified time

Post by selimgunay » Sun Jul 16, 2017 9:45 pm

Yes that is normal as writing to the recorder files also take time. If you used that you can remove "puts $outFileID $t"

parisaKM
Posts: 5
Joined: Sat Jul 15, 2017 12:30 pm

Re: how to record response after specified time

Post by parisaKM » Mon Jul 17, 2017 10:00 pm

i have to run 1000000 analysis!! Is there any other way not effect the analysis speed? :(

parisaKM
Posts: 5
Joined: Sat Jul 15, 2017 12:30 pm

Re: how to record response after specified time

Post by parisaKM » Mon Jul 17, 2017 10:03 pm

It caused some errors?! i removed it. Following is the revised version:)

set tTot [time {
for {set i 1} {$i < $Nsteps} {incr i} {
set t [time {analyze 1000 [expr $DtAnalysis]}]

if {$i== 100 } {
recorder Drift -file $dataDir/Drift-Story1-time.txt -time -iNode 11 -jNode 12 -dof 1 -perpDirn 2
}

}
}]

selimgunay
Posts: 913
Joined: Mon Sep 09, 2013 8:50 pm
Location: University of California, Berkeley

Re: how to record response after specified time

Post by selimgunay » Tue Jul 18, 2017 8:06 pm

You are only recording a single time series, so it should not affect it dramatically. Things that you can do to speed up the analysis is

1. Use OpenSeesMP for the 1000000 analyses.
2. Use RCM for Numberer.
3. If possible, use Explicit integration (Explicit Newmark or Central Difference)

parisaKM
Posts: 5
Joined: Sat Jul 15, 2017 12:30 pm

Re: how to record response after specified time

Post by parisaKM » Wed Jul 19, 2017 10:51 pm

Thank you.
I will work on it.

Post Reply