Drag Force Calculations
Objective:
To calculate the drag force on a bicycle
Code:
% Drag force on a bicycle
close all
clear all
clc
% Inputs
Cd = [1.28;1.14;0.45;0.295;0.1]; % Drag Coefficient
A = 0.25; % Frontal Aera m^2
rho = 1.5; % Density of Fluid kg/m^3
v = [1:2:20]; % Velocity m/s
% Output
Fd = 0.5.*Cd*rho*A*v.^2; % Drag Force
plot(v, Fd)
grid on
xlabel('velocity');
ylabel('Drag Force');
legend({'Cd=1.28','Cd=1.14','Cd=0.45','Cd=0.295','Cd=0.1'})
Result: