Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plot Mode 2D #1097

Open
hserdogan94 opened this issue Aug 16, 2024 · 1 comment
Open

Plot Mode 2D #1097

hserdogan94 opened this issue Aug 16, 2024 · 1 comment

Comments

@hserdogan94
Copy link

I found out in the plot_mode_2d function, the mode shapes didn't show the negative displacements, it would be more clear if there is possibility to add it. If I am not mistaken.

image
image

Thank you again for the excellent software.

Best regards,

Hasan

@ViniciusTxc3
Copy link
Collaborator

Hi @hserdogan94, currently in the plot_mode_2d function the orientation in default is "major", where the orbit is considered positive. It is also possible to change this orientation to "x" or "y". This way it is possible to see the plot in other projections. I believe this can solve your case.

Example:

import ross as rs

rotor = rs.compressor_example()
rotor_speed = 1000.0 # rad/s
modal = rotor.run_modal(rotor_speed)
mode = 1
modal.plot_mode_2d(mode).show()
modal.plot_mode_2d(mode, orientation='x').show()
modal.plot_mode_3d(mode).show()
  • plot_mode_2d: orientation='major'
    image

  • plot_mode_2d: orientation='x'
    image

  • plot_mode_3d
    image

In future versions, we may change the plotting format to "major" to accommodate this visualization.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants