Created
May 12, 2025 18:08
-
-
Save kumajaya/d756def7e69c4197a800e178def8ad2f to your computer and use it in GitHub Desktop.
Calculate centrifugal compressor flow from known motor power and vice versa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import math | |
| def calculate_flow(Q_design, T_design, PR_design, P_design, | |
| T_real, PR_real, P_real): | |
| return Q_design * math.sqrt((T_design / T_real) * | |
| (PR_design / PR_real) * | |
| (P_real / P_design)) | |
| def calculate_power(Q_real, Q_design, P_design): | |
| return P_design * (Q_real / Q_design) ** 2 | |
| # Contoh perhitungan flow dari daya motor | |
| Q_design = 96000 | |
| T_design = T_real = 310.15 | |
| PR_design = PR_real = 3.1 / 0.522 | |
| P_design = 6850 | |
| P_motor = 7800 | |
| P_real = P_motor * 0.976 | |
| Q_real = calculate_flow(Q_design, T_design, PR_design, P_design, T_real, PR_real, P_real) | |
| print(f"Flow aktual untuk shaft power {P_real:.2f} kW: {Q_real:.2f} Nm³/h") | |
| # Contoh perhitungan daya motor dari flow aktual | |
| Q_target = 96000 * 1.05 | |
| P_real_needed = calculate_power(Q_target, Q_design, P_design) | |
| P_motor_needed = P_real_needed / 0.976 | |
| print(f"Daya motor untuk flow {Q_target:.2f} Nm³/h: {P_motor_needed:.2f} kW") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment