Week 1 - Flow over Bicycle
The programs to plot the graph between dragforce and velocity,drag coefficient are executed below.As velocity increases dragforce also increases as shown in graph is shown in an image (1).And as drag coefficient increases dragforce increases also shown in a image (2).
% PROGRAM TO CALCULATE THE DRAG FORCE ON A BICYCLE% PROGRAM TO PLOT A GRAPH BETWEEN DRAG FORCE AND VELOCITYclear allclose allclc% Inputs% Drag coefficientc_d=0.8% Area m^2A=0.1% Density kg/m^3rho=0.2% Velocity m/secv=[1 2 3 4 5]drag_force=rho*A*v.^2*c_d*0.5;plot(v,drag_force);xlabel('velocity')ylabel('dragforce')grid on% PROGRAM TO PLOT A GRAPH BETWEEN DRAG FORCE COEFFICIENTclear allclose allclc% Inputs% Drag coefficientc_d=[0.8 1.0 1.2 1.4];% Area m^2A=0.1% Density kg/m^3rho=1.2% Velocity m/secv=2drag_force=rho*A*v.^2*c_d*0.5;plot(c_d,drag_force);xlabel('dragcoefficient')ylabel('dragforce')grid on