You will write functions for the standard calculations of surface tension and viscosity. One finds the rise of a liquid in a tube. One finds the excess pressure in a bubble. One finds the steady speed of a falling ball. One finds the flow rate through a tube. Each function takes its numbers in the units that a lab would use, and changes them to SI units inside.
The idea. . The excess pressure is , with surfaces. The steady speed is . The flow rate is . Use .
Your tasks.
capillary_rise(gamma, theta, rho, r), with in mN/m, in degrees, in kg/m³ and in mm. It returns in mm.bubble_pressure(gamma, r, surfaces), with in mN/m and in cm. It returns the excess pressure in Pa.terminal_speed(r, eta, rho_ball, rho_liquid), with in mm and in Pa s. It returns the speed in cm/s.flow_rate(dP, r, eta, L), with in kPa, in mm, in mPa s and in cm. It returns the flow in mL/s.Have you tried it?
Do the tasks in the editor first, and run the checker after each one. Its hints help when a check fails. When you are ready, compare your code with this solution.
Log in to join the discussion.
Loading…