Mokbel Karam, and Prof. Tony Saad (www.tsaad.net)
Department of Chemical Engineering
University of Utah
#HIDDEN
# please run this cell to get access the GUI app
from buckinghampy import BuckinghamPiGui
GUI=BuckinghamPiGui()
HBox(children=(BoundedIntText(value=5, continuous_update=True, description='Number of Variables:', style=Descr…
VBox(children=(Box(children=(Textarea(value='', description='Name:', layout=Layout(height='32px', width='auto'…
Output()
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()