#!/usr/bin/env python
# coding: utf-8
# # Buckingham $\pi$: Dimensional Analysis
# **Mokbel Karam, and Prof. Tony Saad (www.tsaad.net)
Department of Chemical Engineering
University of Utah**
#
# This notebook represents the graphical user interface of `buckinghamPy`
# In[1]:
#HIDDEN
# please run this cell to get access the GUI app
from buckinghampy import BuckinghamPiGui
GUI=BuckinghamPiGui()
# # Example 1: Pressure Drop in Pipe
# ---
# In[2]:
from buckinghampy import BuckinghamPi
Pressure_Drop = BuckinghamPi()
Pressure_Drop.add_variable(name='{\\Delta}p',units='M*L^(-1)*T^(-2)') # pressure drop
Pressure_Drop.add_variable(name='R',units='L') # length of the pipe
Pressure_Drop.add_variable(name='d',units='L') # diameter of the pipe
Pressure_Drop.add_variable(name='\\mu',units='M*L^(-1)*T^(-1)') # viscosity
Pressure_Drop.add_variable(name='Q',units='L^(3)*T^(-1)') # volumetic flow rate
Pressure_Drop.generate_pi_terms()
Pressure_Drop.print_all()
# In[ ]: