Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save kumajaya/5ff6cea905ea0899999fa6ecc47b7cc5 to your computer and use it in GitHub Desktop.

Select an option

Save kumajaya/5ff6cea905ea0899999fa6ecc47b7cc5 to your computer and use it in GitHub Desktop.
flow_from_motor_power_vice_versa.ipynb
Display the source blob
Display the rendered blob
Raw
{
"nbformat": 4,
"nbformat_minor": 0,
"metadata": {
"colab": {
"provenance": [],
"authorship_tag": "ABX9TyPrk/glupCNAKRB7PytgNRx",
"include_colab_link": true
},
"kernelspec": {
"name": "python3",
"display_name": "Python 3"
},
"language_info": {
"name": "python"
}
},
"cells": [
{
"cell_type": "markdown",
"metadata": {
"id": "view-in-github",
"colab_type": "text"
},
"source": [
"<a href=\"https://colab.research.google.com/gist/kumajaya/5ff6cea905ea0899999fa6ecc47b7cc5/flow_from_motor_power_vice_versa.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
]
},
{
"cell_type": "code",
"execution_count": 4,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "7UX3HVZBxVp2",
"outputId": "9daa2945-bb97-45d4-aa10-88718c085cef"
},
"outputs": [
{
"output_type": "stream",
"name": "stdout",
"text": [
"Flow aktual untuk shaft power 7612.80 kW: 101204.11 Nm³/h\n",
"Daya motor untuk flow 100800.00 Nm³/h: 7737.83 kW\n"
]
}
],
"source": [
"import math\n",
"\n",
"def calculate_flow(Q_design, T_design, PR_design, P_design,\n",
" T_real, PR_real, P_real):\n",
" return Q_design * math.sqrt((T_design / T_real) *\n",
" (PR_design / PR_real) *\n",
" (P_real / P_design))\n",
"\n",
"def calculate_power(Q_real, Q_design, P_design):\n",
" return P_design * (Q_real / Q_design) ** 2\n",
"\n",
"# Contoh perhitungan flow dari daya motor\n",
"Q_design = 96000\n",
"T_design = T_real = 310.15\n",
"PR_design = PR_real = 3.1 / 0.522\n",
"P_design = 6850\n",
"\n",
"P_motor = 7800\n",
"P_real = P_motor * 0.976\n",
"Q_real = calculate_flow(Q_design, T_design, PR_design, P_design, T_real, PR_real, P_real)\n",
"print(f\"Flow aktual untuk shaft power {P_real:.2f} kW: {Q_real:.2f} Nm³/h\")\n",
"\n",
"# Contoh perhitungan daya motor dari flow aktual\n",
"Q_target = 96000 * 1.05\n",
"P_real_needed = calculate_power(Q_target, Q_design, P_design)\n",
"P_motor_needed = P_real_needed / 0.976\n",
"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