Program To caluclate Drag Force against cyclist
% Program to caluclate the drag force on a Bicycle
clear all
close all
clc
%inputs
%Drag coefficient
c_d = 0.8
%Area m^2
A = 0.2
%Density kg/m^3
rho = 1.2
%Velocity
v = [2:10];
drag_force = rho*A*v.^2*c_d*0.5;
plot(v,drag_force,\'color\',\'r\')
xlabel(\'velocity\')
ylabel(\'Drag force\')
grid on
Output:
The drag force is caluclated for different velocity values(varying from 2m/s to 10 m/s) and a graphical represntation output is as attached for varying drag force with respect to velocity.
% Program to caluclate the drag force on a Bicycle(Drag Force vs Drag Coefficient)
clear all
close all
clc
%inputs
%Drag coefficient
c_d = [0.04:1.15];
%Area m^2
A = 0.1
%Density kg/m^3
rho = 1.2
%Velocity
v = 2
drag_force = rho*A*v.^2*c_d*0.5;
plot(c_d,drag_force)
xlabel(\'Drag coefficient\')
ylabel(\'Drag force\')
grid on
Output:
The drag force is caluclated for different Drag coefficient values(varying 0.04 streamlined shape to 1.15 shape of short cylinder ) and a graphical represntation output is as attached for varying drag force with respect to drag coefficient.