Project

Week 1 Flow over bicycle

When cycling the cyclist experiences a  aerodynamic drag force which is the most important resistive force.The drag force can be calculated by knowing the density,frontal area,velocity,and the drag coefficient.The formula for calculating drag force is given by,           Drag Force =(0.5*density*frontal area*drag coefficient*velocity^2).  
#Program to calculate: Flow Over A Bicycleimport matplotlib.pyplot as plt #Inputs#Drag Coefficientc_d  =0.8c_ds =[1,2,3,4,5]Drag_force =[] #Frontal Area(m^2)  A = 0.1#Density(kg/m^3)rho = 1.2#Bicycle velocityvelocities =[1,2,3,4,5,6]drag_forces =[]for velocity in velocities:     drag_forces.append((0.5*rho*A*c_d*velocity*velocity))#Plot1:Drag force vs Velocity.print(drag_forces)plt.plot(velocities,drag_forces)plt.xlabel('Velocity')plt.ylabel('drag_forces')plt.show() for cofs in c_ds:    Drag_force.append((0.5*rho*cofs*velocity*velocity))#Plot2:Drag force vs Drag Coefficient.print(Drag_force)plt.plot(c_ds,Drag_force)plt.xlabel('Drag Coefficient')plt.ylabel('DragForce')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.