flow over bicycle
https://drive.google.com/open?id=11r2tsnTl3c9sJ2gAaINRjBGsGWy40WfT
% calculation of drag froce over a bicycle
% 1. drag force vs velocity
clear all
close all
clc
% inputs
% area
a = 0.1;
% density
d = 1.2;
%velocity
v=[0:500];
%drag coefficient
cd = 0.8;
% drag force calculation
dragforce = 0.5*a*v.^2*d*cd
plot(v,dragforce)
xlabel(\'velocity\');
ylabel(\'dragforce\');
grid
% 2. ploting drag force vs drag coefficient
clear all
close all
clc
% inputs
% area
a = 0.1;
% density
d = 1.2;
%velocity
v=4;
%drag coefficient various values for various shapes
cd = linspace(0.1,1,10)
% drag force calculation
dragforce = 0.5*a*v^2*cd.*d
plot(cd,dragforce)
xlabel(\'drag coeffecient\');
ylabel(\'dragforce\');
grid on;