Dear all,
I have some time history results (max/min envelope result for each run of the loop) for a group of ground motions. I want to make Opensees write all the results into a single output file instead of placing each of them into a separate file which makes it very difficult to manage. Is it possible to do this?
Please guide.
Thanks
Placing Multiple Recorders into Single File
Moderators: silvia, selimgunay, Moderators
-
- Posts: 917
- Joined: Mon Sep 09, 2013 8:50 pm
- Location: University of California, Berkeley
Re: Placing Multiple Recorders into Single File
In your OpenSees file, you can add commands to read from the recorder file and append that information to another file in the for loop
Re: Placing Multiple Recorders into Single File
Dear Aliakbar,aliakbar wrote: ↑Sun Jul 25, 2021 1:48 am Dear all,
I have some time history results (max/min envelope result for each run of the loop) for a group of ground motions. I want to make Opensees write all the results into a single output file instead of placing each of them into a separate file which makes it very difficult to manage. Is it possible to do this?
Please guide.
Thanks
I have 2 acceleration ground motions for x and y directions, I want to record result of each ground motion separetly, because when I have 1 recorder for both directions, I think maybe the results are wrong. is it possible to help me how to write 2 recorders for my 2 acceleration ground motions?
here is my code with 1 recorder:
# recorder time step
set recDT $motionDT
## record nodal displacments, velocities, and accelerations at each time step
recorder Node -file displacement.out -time -dT $recDT -nodeRange 1 $nNodeT -dof 1 2 3 disp
recorder Node -file velocity.out -time -dT $recDT -nodeRange 1 $nNodeT -dof 1 2 3 vel
recorder Node -file acceleration.out -time -dT $recDT -nodeRange 1 $nNodeT -dof 1 2 3 accel
# record stress and strain at each gauss point in the soil elements
recorder Element -file stress.out -time -dT $recDT -eleRange 1 $nElemT stress
recorder Element -file strain.out -time -dT $recDT -eleRange 1 $nElemT strain
puts "Finished creating post-gravity recorders..."
#-----------------------------------------------------------------------------------------
# 9. DYNAMIC ANALYSIS
#-----------------------------------------------------------------------------------------
# define velocity time history file
set accelFile1 KOBEaccH1.txt
set accelFile2 KOBEaccUP.txt
set timeSeries1 "Path 101 -dt 0.01 -filePath $accelFile1 -factor 9.81"
set timeSeries2 "Path 102 -dt 0.01 -filePath $accelFile2 -factor 9.81"
pattern MultipleSupport 1 {
groundMotion 101 Plain -accel $timeSeries1
imposedMotion 1 1 101 ;# node, dof, gmTag
groundMotion 102 Plain -accel $timeSeries2
imposedMotion 2 2 102
}
puts "Dynamic loading created..."
constraints Penalty 1.e14 1.e14
test NormDispIncr 1.0e-3 55 1
algorithm KrylovNewton
numberer Plain
system SparseGeneral
integrator Newmark $gamma $beta
rayleigh $a0 $a1 0.0 0.0
analysis Transient