Reading nodal acc & disp from multiple MPCO files

Hello! In this section we'll talk about the post processing module and the data visualization.
Post Reply
BrownTrout_NZ
Posts: 37
Joined: Fri Sep 13, 2024 6:23 pm

Reading nodal acc & disp from multiple MPCO files

Post by BrownTrout_NZ » Sat Oct 26, 2024 5:38 am

Hi STKO team

I am facing a problem with extracting nodal acceleration and displacement from multiple MPCO files.

I found some great examples from your team to extract nodal response from MPCO using python API and looping through between multiple MPCO files. So, I sort of combined the two examples.

As you can see from below image, all 5 MPCO files appear to be opened correctly in the terminal, but the CVS results are repeating. Upon detailed check with *.PLT files from monitoring, only the first MPCO file was extracted & the rest are repeating.
IMAGE1.PNG
IMAGE1.PNG (253.31 KiB) Viewed 2302 times
IMAGE2.PNG
IMAGE2.PNG (166.7 KiB) Viewed 2302 times
I have attached file. Can someone please have a look at it and recommend correction ? I am sure it will be simple syntax issue. I played around with it but could not figure it out myself.

TW_process_mpco_files.zip
(2.9 KiB) Downloaded 103 times

Also interested is how to get input ground acceleration. As I am using "uniform excitation", the nodal ground acceleration is 0. Is there any way to extract inputted ground acceleration some how ? I am ramping up c_factor in analysis steps using Python API to amplify the Ground motion. I am aware the use of Ground motion would generate absolute acceleration(I tried it and works), but everything else becomes absolute and does not suit my interest(I want to stay with uniform excitation). It is easy to work out input acceleration (simply original max acc x scale factor )but nice to be able to get it from analysis for verification purposes.

I hope you guys can shed some light on the issue, soon.

BrownTrout_NZ
Posts: 37
Joined: Fri Sep 13, 2024 6:23 pm

Re: Reading nodal acc & disp from multiple MPCO files

Post by BrownTrout_NZ » Sat Oct 26, 2024 11:41 pm

Sorry guys, I found a mistake in the code, looping between Multiple MPCO files is now sorted.

But second question still stands, if someone can give me an idea of getting input ground accelerations from MPCO, that would be appreciated. Does MPCO record input acceleration history ? Please advise.

STKO Team
Posts: 3066
Joined: Tue Oct 29, 2019 8:45 am

Re: Reading nodal acc & disp from multiple MPCO files

Post by STKO Team » Thu Nov 07, 2024 7:59 am

Unfortunately the input motion is not stored in the mpco file. You will have to add it within your code in python if you have the input motion

Post Reply