如何使用 UliEngineering 在 Python 中将转速从 rpm 转换为 Hz
你可以使用 UliEngineering Python 库轻松地将转速从 rpm(每分钟转数)转换为 Hz(每秒转数):
rpm_to_hz.py
from UliEngineering.Physics.Rotation import *
from UliEngineering.EngineerIO import *
# 将 60 rpm 转换为 Hz
speed = rpm_to_Hz("60 rpm")
print(f"60 rpm = {format_value(speed, 'Hz')}")
# 将 3000 rpm 转换为 Hz
speed = rpm_to_Hz("3000 rpm")
print(f"3000 rpm = {format_value(speed, 'Hz')}")示例输出
rpm_to_hz_output.txt
60 rpm = 1.00 Hz
3000 rpm = 50.0 Hz转换使用以下公式:$Hz = \frac{rpm}{60}$
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow