Git Product home page Git Product logo

modalanalysis-openseespy's Introduction

ModalAnalysis-OpenSeesPy

The script is used to perform modal analysis of an OpenSeesPy model and then to obtain the associated periods and mass participation ratios for the first "N" modes. The script can be directly used even if the mass is distributed on the elements.

DOI

modalanalysis-openseespy's People

Contributors

volkanozsarac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

modalanalysis-openseespy's Issues

Mass on element and total mass

Hi,
thanks for your nice tool, I really appreciated it.
I would like to ask if you checked the tosal mass when mass on element is used. I found a little difference between Sap2000 and your code.
have a nice day

Suggestion for consolidationg code

Hey, I was just playing around with this today!
Looking at your code, I had a suggestion that could be used to cut down on some of the length.
You have two blocks of code nearly identical, except for the function they are using, e.g.

print('\nModal Periods and Frequencies')
f.write('Modal Periods and Frequencies\n')

Instead we could create a function called something like printModesData(Mratios, Mfactors, ...., printFunction = print)
This function would take in the print function you want, i.e. f.write or print.

 if outname != None:
    with open(outname+'.csv','w', encoding='utf-32') as f:
        printModesData(arguments,  printFunction = f.write)

....

if pflag == 1:   
    printModesData(arguments, printFunction = print)

There might be a few complications passing f.write - the actual file might need to be passed as well..

Just a thought.

The logic behind Line 91 to 100 on ModalAnalysis.py

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.

Masses aren't as expected

I have a model where using the modal analysis script I got a different mass than expected.
I'm analyzing a floor plate, I expect my total mass to be ~9400kg. This is the sum of all of the masses I've applied.

However, when run the modal analysis, I'm getting a mass closer to 8000kg.
image
There could be something I'm missing - is this output expected to be the total mass?

For reference, here is my script
FloorPlate.txt

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.