0% found this document useful (0 votes)
14 views2 pages

Assignment No 9

Uploaded by

Soham Mhetre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views2 pages

Assignment No 9

Uploaded by

Soham Mhetre
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

assignment-no-9

October 20, 2024

[5]: #Assignment no.:9


#Application of python for
Solid Waste Engineering
#Name: Rohan Anil Mhetre
#Roll No. :401C038

import math

#Input values
SG= float(input("Enter the specific gravity of the particle: "))
D= float(input("Enter the diameter of the particle (in meters): "))

#Standard values of constants


g=9.8 # Acceleration due to gravity ( m /s^ ^2 )
p=1000 #Mass density of water (kg / (m ^ 3))
u=0.0001 # Dynamic viscosity of in pascal-seconds

#Mass density of the particle


p1=SG*p #Mass density of particle

#Settling velocity calculation based on particle diameter


if D<= 0.1: # For small particles (typically Laminar flow conditions)
Vs1 =(9/18) *((p1-p) / u) *(D**2)
print("Settling velocity of suspended solids:", round(Vs1, 2))
elif D >0.1: # For Larger particles (may involve turbulent flow)
Vs2 = math.sqrt(3.33*g* ((p1-p) / p)* D)
print("Settling velocity of suspended solids:", round(Vs2, 2))

else:
#For other cases, prompt for temperature input
T = float(input("Enter the temperature "))

# Approximate settling velocity at the given temperature


Vs4=418 *(SG-1) *(D**2) *((3*T+70) / 100)

#Reynold's number
R = (p*Vs4*D) / u

1
#Drag coefficient calculation
Cd= (24 / R) +(3/math.sqrt(R))+0.34

#Transition flow formula


Vs3 =math.sqrt( (4/3)*(g / Cd)*((p1-p)/p) * D)
print("Standred value of constant:")
print("Settling velocity of suspended solids (transition flow):", round␣
𝗌(Vs2,2))

Enter the specific gravity of the particle: 2.67


Enter the diameter of the particle (in meters): 0.004
Settling velocity of suspended solids: 133.6

[ ]:

You might also like