Project

Effect of area and drag coeff over drag force

import matplotlib.pyplot as plt
#Velocity(m/s^2)
v = 10

#Density(kg/m^3)
rho = 1.2

#Areas(m^2)
areas = [0.5,0.25,2,1.45,2.8]


#Drag Coefficients
c_d = 0.8

#Drag Force
drag_force = []

for area in areas:
drag_force.append(0.5*rho*area*c_d*v*v)


plt.figure(1)
plt.plot(areas,drag_force)
plt.title(\"Area vs Drag Force\")
plt.xlabel(\"Area\")
plt.ylabel(\"Drag Force\")


#Effect of Drag Coefficient on the Drag Force

#Velocity(m/s^2)
v = 10

#Density(kg/m^3)
rho = 1.2

#Areas(m^2)
area = 0.2

#Drag Coefficients
coefficients = [0.8,0.4, 0.09,1.2,0.27]

#Drag Force0
drag_force = []

for coefficient in coefficients:
drag_force.append(0.5*rho*area*coefficient*v*v)


plt.figure(2)
plt.plot(coefficients,drag_force)
plt.title(\"Drag Coefficient vs Drag Force\")
plt.xlabel(\"Drag Coefficient\")
plt.ylabel(\"Drag Force\")
plt.show()

Your portfolio, next

Ship work like this
in your own course.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.

Talk to a career counsellor

Free 20-minute call. We'll map the right course to where you want to work.

By submitting you agree to our Terms and Privacy Policy.