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

get speed in pint library for plot_deflected_shape function #1138

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ViniciusTxc3
Copy link
Collaborator

Now, it's possible receive the speed in "RPM" for function plot_deflected_shape(). As exemple:

import ross as rs
from ross.units import  Q_
import numpy as np

rotor = rs.rotor_example()
speed = np.linspace(0, 1000, 101)
response = rotor.run_unbalance_response(
                                        node=3,
                                        unbalance_magnitude=10.0,
                                        unbalance_phase=0.0,
                                        frequency=speed)
response.plot_deflected_shape(speed=Q_(4774.64829, 'RPM')).show()

image

This PR, resolve issue #1137 and discussion #1136 .

@ViniciusTxc3 ViniciusTxc3 self-assigned this Jan 14, 2025
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

Successfully merging this pull request may close these issues.

1 participant