how to record response after specified time
Moderators: silvia, selimgunay, Moderators
how to record response after specified time
Hi,
I want to record drift values after a specified time step. Is there any way to do in opensees?
tnx
parisa
I want to record drift values after a specified time step. Is there any way to do in opensees?
tnx
parisa
-
- Posts: 913
- Joined: Mon Sep 09, 2013 8:50 pm
- Location: University of California, Berkeley
Re: how to record response after specified time
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"
}
}]
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"
}
}]
Re: how to record response after specified time
Thanks a lot for your quick answer.
It reduced the analysis speed, is it normal?
It reduced the analysis speed, is it normal?
-
- Posts: 913
- Joined: Mon Sep 09, 2013 8:50 pm
- Location: University of California, Berkeley
Re: how to record response after specified time
Yes that is normal as writing to the recorder files also take time. If you used that you can remove "puts $outFileID $t"
Re: how to record response after specified time
i have to run 1000000 analysis!! Is there any other way not effect the analysis speed?
Re: how to record response after specified time
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
}
}
}]
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
}
}
}]
-
- Posts: 913
- Joined: Mon Sep 09, 2013 8:50 pm
- Location: University of California, Berkeley
Re: how to record response after specified time
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)
1. Use OpenSeesMP for the 1000000 analyses.
2. Use RCM for Numberer.
3. If possible, use Explicit integration (Explicit Newmark or Central Difference)
Re: how to record response after specified time
Thank you.
I will work on it.
I will work on it.