Dynamic Bidirectional GM analysis: can't reading acceleration recording

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

Moderators: silvia, selimgunay, Moderators

Post Reply
mattiapucci
Posts: 14
Joined: Thu Jul 30, 2020 11:12 am

Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by mattiapucci » Fri Aug 07, 2020 1:13 am

Hello, I built a 3d RC Frame and I should analyze the structur with a Dynamic Bidirectional Ground Motion.
When I put this string:
foreach GMdirection $iGMdirection GMfile $iGMfile GMfact $iGMfact {
incr IDloadTag;
set inFile $GMdir/$GMfile.at2
set outFile $GMdir/$GMfile.g3; # set variable holding new filename (PEER files have .at2/dt2 extension)
ReadSMDFile $inFile $outFile dt; # call procedure to convert the ground-motion file
set GMfatt [expr $g*$GMfact]; # data in input file is in g Unifts -- ACCELERATION TH
set AccelSeries "Series -dt $dt -filePath $outFile -factor $GMfatt"; # time series information
pattern UniformExcitation $IDloadTag $GMdirection -accel $AccelSeries ; # create Unifform excitation
}


the program reports an error: Cannot open "Cannot open C:UsersUserDesktopLaboratorio di TesiProgrammi di calcoloOpenSees3.2.0-x64.exinGMfile/H-E01140.at2" for reading
can't read "dt": no such variable

Why? In the C:Use..... GMfile" there is a file of uniform acceleration; and what is "dt"?

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

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by selimgunay » Sat Aug 08, 2020 8:36 pm

Error message indicates that you don't have the .at2 file under this folder.

mattiapucci
Posts: 14
Joined: Thu Jul 30, 2020 11:12 am

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by mattiapucci » Tue Aug 11, 2020 12:44 pm

I resolved the error with "/". But I have got an another question with the Bidirectional GM analysis.
I downloaded an .at2 file by PEER GM Database and I am trying to convert the file with ReadSMDfile.tcl but I am doing something wrong.
I am attaching the procedure:

source 3Dframe.tcl; #import 3D structure
wipe Analysis;
source ReadSMDfile.tcl;

set outFile RSN14_KERN_SBA132.g3;
ReadSMDFIle RSN14_KERN_SBA132.at2 $outFile dt

set iGMfile "RSN14_KERN_SBA132 RSN14_KERN_SBA132.at2"
set iGMdirection "1 3"
set iGMfact "1.5 0.75"

set DtAnalysis [expr 0.01*$sec]
set TmaxAnalysis [expr 10.*$sec]
source LibAnalysisDynamicParameters.tcl

[...] #define & apply damping
set IDloadTag 400

when I put this string:
foreach GMdirection $iGMdirection GMfile $iGMfile GMfact $iGMfact {
incr IDloadTag;
set inFile $GMdir/$GMfile.at2
set outFile $GMdir/$GMfile.g3;
ReadSMDFile $inFile $outFile dt;
set GMfatt [expr $g*$GMfact];
set AccelSeries "Series -dt $dt -filePath $outFile -factor $GMfatt";
pattern UniformExcitation $IDloadTag $GMdirection -accel $AccelSeries
}


the program tells me: Cannot open C: /Users/User/Desktop/OpenSees/bin/RSN14_KERN_SBA132.at2 for reading
WARNING invalid dt -filePath - Series -dt dt ...
WARNING invalid accel series: Series -dt -filePath C: /Users/User/Desktop/OpenSees/bin/RSN14_KERN_SBA132.g3 -factor 579.6 pattern UniformExcitation -accel {series}
expected floating-point number but got "-filePath"

Why?

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

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by selimgunay » Wed Aug 12, 2020 5:03 pm

Please make sure that you have the file named RSN14_KERN_SBA132.at2 under the folder C: /Users/User/Desktop/OpenSees/bin/

mattiapucci
Posts: 14
Joined: Thu Jul 30, 2020 11:12 am

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by mattiapucci » Wed Aug 12, 2020 11:53 pm

In the folder there is a file .at2 RSN14_KERN_SBA132. When I invoc the procedure ReadSMDFile.tcl should I setting up the inFile and outFile or not?

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

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by selimgunay » Thu Aug 13, 2020 7:43 pm

The warning message indicates the file is not there. It would be best if you upload your files to a box folder (or similar) and share the link

mattiapucci
Posts: 14
Joined: Thu Jul 30, 2020 11:12 am

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by mattiapucci » Fri Aug 14, 2020 4:44 am

I tryed with H-E01140.at2 and the analysis was succesful
Then I tryed with RSN1_HELENA.A_A-HCM180.at2 and the Opensees told me this error
H-E01140 and RSN1_HELENA.A_A-HCM180 are in the same folder

I'm attaching the link for folder with the files that I use:
https://drive.google.com/drive/folders/ ... sp=sharing

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

Re: Dynamic Bidirectional GM analysis: can't reading acceleration recording

Post by selimgunay » Sun Aug 16, 2020 7:18 pm

It should work if you change the file name to something simpler, e.g. RSN1.at2

Post Reply