Page 1 of 4

running multiple time histories

Posted: Mon Mar 22, 2021 10:41 am
by Zeeshanbhat
Dear Team,

Is there any script available to run multiple time histories in parallel on same model in STKO like in case of multiple stripe analysis or incremental dynamic analysis.

Regards,
Zeeshan Bhat

Re: running multiple time histories

Posted: Mon Mar 22, 2021 11:33 am
by Clarabella
Dear Zeeshan Bhat,

we don't have a script at the moment. For sure it is one of the scripts we would like to prepare. I encourage you to try to develop it, it is not too difficult. If necessary, we can help to check your code.

Regards

Re: running multiple time histories

Posted: Mon Mar 22, 2021 11:42 am
by Zeeshanbhat
Dear Team,

I will try it. How to do in case of sequential opensees. Do we need to define individual analysis command for each ground motion.

Regards,
Zeeshan Bhat

Re: running multiple time histories

Posted: Mon Mar 22, 2021 11:46 am
by Horace Horsecollar
Dear Zeeshanbhat ,

yes, you are correct. You need to define an analysis for each ground motion.

Regards

Horace

Re: running multiple time histories

Posted: Mon Mar 29, 2021 11:39 am
by Zeeshanbhat
Dear Team,

Can we use a loop for time history analysis, like first I will define time histories in some folder, and then I will call that folder before my main model. For example

foreach groundMotionNumber $groundMotionIDs {
if {[expr {$groundMotionNumber % $np}] == $pid} {
set scale $SaToRun;
set dt [lindex $groundMotionTimeStep [expr $groundMotionNumber - 1]];
set eqNumber $groundMotionNumber;
set numPoints [lindex $groundMotionNumPoints [expr $groundMotionNumber - 1]];
cd $baseDir
source Model.tcl


But I have two confusions regarding this:
1. Do we still need to define the time series in STKO.
2. How can we call the model In Script like in case of opensees we call it by source Model.tcl



Regards,
Zeeshan Bhat

Re: running multiple time histories

Posted: Mon Mar 29, 2021 4:53 pm
by STKO Team
It can be done and it is relatively easy.
We answered to a very similar problem here:
viewtopic.php?f=38&t=1640&p=2485&hilit=parametric#p2485

Re: running multiple time histories

Posted: Tue Mar 30, 2021 12:20 pm
by Zeeshanbhat
Dear Team,

Thank you. It looks easy, but since I am doing time history analysis there are certain issues:

1. The time step and the total duration of each time history will change, due to which I need to make some changes in the analysis step. Also, I am doing bidirectional excitation so direction also needs to be changed.

2. Is it possible to call a folder instead of defining all the time histories in custom command.

Regards,

Zeeshan

Re: running multiple time histories

Posted: Tue Mar 30, 2021 1:59 pm
by STKO Team
Of course you can. You can follow the steps in the post I sent you. But instead of creating an AnalysisStep of type "AnalysisCommand" in STKO, you can create another CustomCommand, where you just "source" your analysis script

Re: running multiple time histories

Posted: Wed Mar 31, 2021 11:46 am
by Zeeshanbhat
Dear Team,

Could you please provide a simple example. As per my understanding, writing analysis command script means I have to write all that STKO writes in analysis command like constraints , rigid diaphragm, eleLods which is very difficult.


Regards,

Zeeshan

Re: running multiple time histories

Posted: Wed Mar 31, 2021 1:59 pm
by STKO Team
Ok, to make it more useful, could you share your example (using only 1 time series), and the files with the ground motions you want to simulate in the parametric analysis?

I will then modify your file to show you how it can be done.

One more question:
Are you planning to use OpenSeesMP to run parametric analysis in parallel?