Placing Multiple Recorders into Single 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
aliakbar
Posts: 5
Joined: Tue Jun 18, 2013 9:52 am
Location: Ferdowsi

Placing Multiple Recorders into Single File

Post by aliakbar » 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

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

Re: Placing Multiple Recorders into Single File

Post by selimgunay » Sun Jul 25, 2021 6:23 pm

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

shimasdz
Posts: 3
Joined: Tue Jul 06, 2021 1:57 am

Re: Placing Multiple Recorders into Single File

Post by shimasdz » Sun May 08, 2022 5:42 am

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
Dear Aliakbar,

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

Post Reply