RESPONSE SPECTRUM (expansion of an earlier topic)

Post Reply
Sylwester
Posts: 44
Joined: Sat Sep 10, 2022 11:59 am

RESPONSE SPECTRUM (expansion of an earlier topic)

Post by Sylwester » Tue May 21, 2024 8:25 pm

Dear STKO,
I would like to ask for your help in developing the possibilities of the previous post which concerned control of support removal time. Link to previous topic : viewtopic.php?f=54&t=2416&p=6381#p6381

YOU helped me to develop a python script that runs my analysis parametrically:
(the name of the file in the previous post) ParametricRemovalTime.zip

Now I have to make a large number of calculations for different support removal times. Not 3 but e.g. 30. Tr=0.001 s, Tr=0.1 TR=1s and so forth. It's not a problem thanks to your early help :D

What do I need right now?

For each support removal time I need to extract the maximum value of vertical deflection and make a chart . For example for Tr=0.001 s (uz= 0.05m)for TR=1s (uz = 0.1m) and make a graph as in the attached picture:
chart.jpg
chart.jpg (130.76 KiB) Viewed 2016 times
Are you able to help me modify the previous py file. so that it additionally parametrically selects the maximum deflection value for each tr value from previous analyses?

Selecting a maximum value of delfection from each analysis and creating manual graphs for a large number of different tr support removal times will be very time-consuming. :(

I appreciate your help

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

Re: RESPONSE SPECTRUM (expansion of an earlier topic)

Post by STKO Team » Wed May 29, 2024 3:47 pm

Try to use these scripts once your analyses are done (in post processing)
You have to run the ParametricRemovalTimePlotDeflection.py.
It will automatically run the other script in parallel for each parametric output.
Attachments
ParametricRemovalTime.zip
(2.18 KiB) Downloaded 162 times

Sylwester
Posts: 44
Joined: Sat Sep 10, 2022 11:59 am

Re: RESPONSE SPECTRUM (expansion of an earlier topic)

Post by Sylwester » Fri May 31, 2024 12:36 pm

STKO Team wrote:
Wed May 29, 2024 3:47 pm
Try to use these scripts once your analyses are done (in post processing)
You have to run the ParametricRemovalTimePlotDeflection.py.
It will automatically run the other script in parallel for each parametric output.
Thank you very much for your reply.
But there is a problem

1. I did the calculation with the original script for different tr times. STKO created different folders with names or removed time.

2. I selected only node displacements in the recorder because the previous mpco files were 150 mb each.
mpco recorder.png
mpco recorder.png (34.53 KiB) Viewed 1907 times
3. i opened the post processor

4. I copied the PY scripts you received into the main folder.

5. launching the anlysis the program asks me to select a folder. I chose the folder where all the folders with tr times are.
post procesor.png
post procesor.png (128.44 KiB) Viewed 1907 times
6. I received a graph in a straight line and zero uz value.
line.png
line.png (9.98 KiB) Viewed 1907 times

Sylwester
Posts: 44
Joined: Sat Sep 10, 2022 11:59 am

Re: RESPONSE SPECTRUM (expansion of an earlier topic)

Post by Sylwester » Fri May 31, 2024 1:33 pm

STKO Team wrote:
Wed May 29, 2024 3:47 pm
Try to use these scripts once your analyses are done (in post processing)
You have to run the ParametricRemovalTimePlotDeflection.py.
It will automatically run the other script in parallel for each parametric output.
I tried it on another simple model,
Only up to two times to remove the support tr.
05. Slab.rar
(57.5 MiB) Downloaded 162 times
The calculation continues but does not want to finish.
process status.png
process status.png (139.88 KiB) Viewed 1902 times

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

Re: RESPONSE SPECTRUM (expansion of an earlier topic)

Post by STKO Team » Fri May 31, 2024 4:51 pm

I made that script as an example based on your beam model.
In the Core script, I was monitoring the min Uz value of the selection set called support B.
You may want to adapt that script to your needs to make it general enough.

Also, if you plane to use it with large models (I saw your model was very small) there are few optimization that can be done to speed it up

Sylwester
Posts: 44
Joined: Sat Sep 10, 2022 11:59 am

Re: RESPONSE SPECTRUM (expansion of an earlier topic)

Post by Sylwester » Fri May 31, 2024 5:45 pm

STKO Team wrote:
Fri May 31, 2024 4:51 pm
I made that script as an example based on your beam model.
In the Core script, I was monitoring the min Uz value of the selection set called support B.
You may want to adapt that script to your needs to make it general enough.

Also, if you plane to use it with large models (I saw your model was very small) there are few optimization that can be done to speed it up

I understand. So, in order to make the script universal, like the removal times script, I just need to manually enter sset_name in the core file ? That's no problem, this can be done by hand, I want to model large model in the futher, but at first i want to start with tests.

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

Re: RESPONSE SPECTRUM (expansion of an earlier topic)

Post by STKO Team » Mon Jun 03, 2024 7:36 am

So, in order to make the script universal, like the removal times script, I just need to manually enter sset_name in the core file ?
Yes, or even better:
The function in the core file and take that name as an input argument
The main function can ask the user to enter the selection set name (via a GUI for example, see PySide2.QWidgets.QInputDialog https://doc.qt.io/qtforpython-5/PySide2 ... ialog.html)

Post Reply