Calculating Work in Python: Pumping Liquid from a Tank
Author: David Manuel
In this video, we use Python to calculate the work done in pumping the liquid from a tank whose ends are semicircles. We setup the definite integral for the work by hand and then use Python to evaluate it.
Transcript 24
Transcript 24
Exercises
Python Code:
Work required to pump water from a 0.5m spout at the top of a tank 6m long whose ends are semicircles with radius 2m
from sympy import *
y=symbols('y')
dW=9800*6*(2*sqrt(4-y**2))*(y+0.5)
W=integrate(dW,(y,0,2))
print('The work required is',W.evalf(),'Joules')
Open Python Notebook File
Work required to pump water from a 0.5m spout at the top of a tank 6m long whose ends are semicircles with radius 2m
from sympy import *
y=symbols('y')
dW=9800*6*(2*sqrt(4-y**2))*(y+0.5)
W=integrate(dW,(y,0,2))
print('The work required is',W.evalf(),'Joules')
Open Python Notebook File
Related Videos (172)
MATH 152: Work Exercise 8
Calculating the work done pumping water out of a tank shaped like a trough
MATH 152: Work Exercise 9
Calculating the work done pumping water out of a tank shaped like a trough
MATH 152: Work Exercise 13
Calculating the work done pulling part of a rope to the top of a building
