\"\"\"
The program on drag force
dependent on drag coefficients
\"\"\"
import matplotlib.pyplot as plt
# Setting variables
# Area
A = 0.1
# Densities
rho = 1.1
# Drag Coefficient
c_d = 0.6
# Velocities
velocities = [5,9,13,17,21,25]
# Drag Force
drag_force = []
# Inserting the values
j = 0
for vel in velocities:
drag_force.append((0.5*A*rho*c_d*vel*vel))
j = j + 1
# Plotting according to the drag coefficients
plt.plot(velocities,drag_force)
plt.show()
\"\"\"
The program on drag force
dependent on drag coefficients
\"\"\"
import matplotlib.pyplot as plt
# Setting variables
# Area
A = 0.1
# Densities
rho = 1.1
# Drag Coefficient
drag_coeff = [0.2,0.34,0.5,0.68,0.79,0.8,0.9,1.2]
# Velocities
vel = 5
# Drag Force
drag_force = []
# Inserting the values
i = 0
for c_d in drag_coeff:
drag_force.append((0.5*A*rho*c_d*vel*vel))
i = i + 1
# Plotting according to the drag coefficients
plt.plot(drag_coeff,drag_force)
plt.show()