Looping through GM & scaling factor

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

Looping through GM & scaling factor

Post by BrownTrout_NZ » Mon Oct 28, 2024 6:54 am

Hi STKO team

I am facing an issue with incremental dynamic analyses. When I was dealing with a single Ground Motions and various intensities, it was working perfectly as per STKO's examples with some slight modifications. I generated some python code to extract displacement history from those different intensities in a text file to draw IDA curves successfully.

Now I have implemented (looping through)different GMs on top of the intensity. The python code I edited from STKO example properly create sub folders for different intensities for a given GM, but 3 monitor pop ups show completely meaning less movement. It looks like these analyses are mixed up in the monitor. It also looks like the analysis was performed for the first GM index only. The TCL files appear to have generated correctly.
Capture 1.PNG
Capture 1.PNG (449.92 KiB) Viewed 2529 times
Capture5.PNG
Capture5.PNG (36.79 KiB) Viewed 2529 times
Upon inspection of the PLT files, the out put is completely stuffed up with gaps etc as per below snip.
Capture3.PNG
Capture3.PNG (39.58 KiB) Viewed 2529 times
I want to have one monitor each ( with roof disp history, shear vs disp and acceleration) for a given GM. so in this instance, 3 monitors each showing one GM case with different intensities much the same as when I had one GM and different intensities.

The other thing I noticed is that all analyses appear to stop at 21% without any warning. I am sure the file works as I have been verifying the parameters etc.
Capture2.PNG
Capture2.PNG (130.34 KiB) Viewed 2529 times
Could someone please look into the attached files and recommend some recommendations to rectify the issue ?

Your assistance is much appreciated as usual.
1 storey base study - ductility - TH - PARAM.zip
(186.44 KiB) Downloaded 112 times
Attachments
Capture4.PNG
Capture4.PNG (37.09 KiB) Viewed 2529 times

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

Re: Looping through GM & scaling factor

Post by STKO Team » Thu Nov 07, 2024 12:09 pm

It seems that you are using incorrectly the multiple processors. I see 3 subdirs for 3 gms but I see more opensees windows

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

Re: Looping through GM & scaling factor

Post by STKO Team » Thu Nov 14, 2024 11:22 am

The issue was the list of working_directories being allocated outside the GM loop.
Instead it should be inside the GM loop because in the second inner loop you assume it has the size of the parameters.

Finally you should start the monitor only once, outside of the outer loop
Attachments
TW_IDA_PARAM_ALL_GM.zip
(1.93 KiB) Downloaded 94 times

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

Re: Looping through GM & scaling factor

Post by BrownTrout_NZ » Thu Nov 14, 2024 8:31 pm

Wow, that is exactly what I wanted. Greatly appreciated....

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

Re: Looping through GM & scaling factor

Post by STKO Team » Mon Nov 18, 2024 9:37 am

You're welcome

Post Reply