volkanozsarac / ModalAnalysis-OpenSeesPy

An example script used to perform modal analysis of an OpenSeesPy model.
GNU General Public License v3.0
14 stars 5 forks source link

The logic behind Line 91 to 100 on ModalAnalysis.py #4

Open yopi1838 opened 7 months ago

yopi1838 commented 7 months ago

Hi!

Thank you again for the very nice contribution. I'm trying to implement the ModalAnalysis script for my specific software, and I cannot wrap my head around the loop from line 91 to 100. I suppose the value of temp in Line 95 would be from 1 to 6, depending on the DOF numbering?

Wouldn't the if condition from Line 96 be run only once when the DOFs list is empty, i.e. the condition will only run on the first node in op.getNodeTags() and the ldict influence vectors will only be 1 at the first node?

I would really appreciate it if you could clarify this.

Thank you so much for your time.