plot_deflected_shape(speed = Q_(500, "RPM") ---> error? only "rad/s" possible? #1136
-
4_241210_modeling.zip Currently I'm doing a lateral rotordynamics for a vertical hydro power generator especially for Unbalance Response. For convenience, I prefer to use "RPM" rather than "rad/s" to interpret the plot to my colleagues so I used "RPM" to almost all to my code by the way, Q_(speed, "RPM"). Every thing works well except for "plot_deflected_shape(speed = Q_(speed, "RPM"))". Here is the code for "run_unbalance_response()" and "plot_deflected_shape(Q_(speed, "RPM")" Please correct the code or let me know why it doesn't work. ================================================== Unbalance G6.3 on turbine node = 0n1 = 0 Unbalance G2.5 on gen' rotor node = 36, out of phase with the turbine unbalancen2 = 36 Unbalance response with speed range in rpmspeed_range=Q_(np.linspace(0, 900, 91), "RPM") plot the operating Deflected Shape(ODS)results2.plot_deflected_shape(speed=Q_(514, "RPM")) <<<<= the error occurs here! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @KimYoungJoong , thanks for helping in improve ROSS. results2.plot_deflected_shape(speed=Q_(514, "RPM").to_base_units().m) |
Beta Was this translation helpful? Give feedback.
Hi @KimYoungJoong , thanks for helping in improve ROSS.
Currently, the
.plot_deflected_shape()
function doesn't accept the pint library argument. I'll create an issue with this report and add this possibility.A current way for your case would be: