Project

drag force on bicycle

>> close all

>> clear all

>> clc

% calculate the drag force on bicycle

%inputs

%density kg/m^3

rho = 0.8

%area m^2

A=1.2

% velocity m/s

v=0.65

% drag coefficient

c_d=0.63

drag_force = rho*A*v^2*c_d*0.5

for velocity at 25 points

v=[1:25] or

v=[25:-1:1]

drag_force =rho*A*v.^2*c_d*0.5

plot (v,drag_force,'color','g')

xlabel('velocity')

ylabel ('drag_force')

2

for multiple drag coefficient

c_d =[1:25]

or

c_d =[25:-1:1]

v=0.5

rho=1.2

A=0.56

drag_force=rho*.c_d*A*v^2*0.5

plot (c_d,drag_force,'color','g')

xlabel('drag_coefficient')

ylabel('drag_force')

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.