running multiple ground motions with one model

Post Reply
kolozvari
Posts: 195
Joined: Tue Oct 05, 2021 9:22 pm

running multiple ground motions with one model

Post by kolozvari » Wed May 24, 2023 11:43 pm

Hello,

I have a structure that I would like to analyze using 11 ground motions. So far, I have to manually run all 11 analyses, but since I will be doing some sensitivity studies, this can be pretty tedious. I was wondering if there is a way to automate this process. In each analysis, I will have to update ground motion input, names of MPCO recorders, and analysis settings (no. of data points and duration). Do you have an API script that can do this?

Please let me know. Thanks.

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

Re: running multiple ground motions with one model

Post by STKO Team » Mon May 29, 2023 2:16 pm

It can be done, but it really depends on what you want to do.
For example:
  1. Is it a huge model for which you need parallel analysis? In this case, you want to press run only once, and sequentially run all N ground motions (one after the other), with each analysis running in parallel (domain decomposition)
  2. It is a small model (it fits only one processor), but you want to parallelize the ground motions? 1 ground motion for each process?

kolozvari
Posts: 195
Joined: Tue Oct 05, 2021 9:22 pm

Re: running multiple ground motions with one model

Post by kolozvari » Mon May 29, 2023 3:40 pm

I am running the model in parallel on 4-6 cores. My computer has many cores and I can probably run about 8 to 10 ground motions in the same time. So it will be actually a combination of two options you mentioned. I want to parallelize ground motions but I am running each ground motion on multiple cores.

Please let me know if this is possible and how. Thank you.

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

Re: running multiple ground motions with one model

Post by STKO Team » Thu Jun 01, 2023 10:24 am

Try this:
example_parallel_and_param.zip
(97.2 KiB) Downloaded 69 times
It's a combination of a prototype model partitioned for OpenSeesMP with 2 cores per model.
It has a dummy Path time series that will be changed automatically with the contents of each ground motion (GM)
Each ground motion should be saved as a pair of 2 text files (*.time, *.acc).
PARAM_GM_OPENSEES_MP_0.png
PARAM_GM_OPENSEES_MP_0.png (15.32 KiB) Viewed 980 times

Instead of manually running the analysis from STKO, run this script (of course while the document is open).
It will read all *time, *acc pairs (each pair should have the same name, for example GM1.time/GM1.acc, GM2.time/GM2.acc, etc...)

It will then create an output folder with the same name of the i-th GM, and run the analysis there (taking care of updating the contents of the time series, the name of the mpco recorders and monitors, if any)

As an output you will see many windows, and a single monitor where you can monitor in real time all analyses
Attachments
PARAM_GM_OPENSEES_MP.png
PARAM_GM_OPENSEES_MP.png (243.17 KiB) Viewed 980 times

kolozvari
Posts: 195
Joined: Tue Oct 05, 2021 9:22 pm

Re: running multiple ground motions with one model

Post by kolozvari » Fri Jun 02, 2023 12:45 pm

Thank you! I will give it a shot and let you know if I have any additional questions.

Post Reply