Project

Matlab program to calculate drag force against a cyclist

To find drag co effecient against a cycler and to plot graph between drag force and velocity

clear all
close all
clc

%Program to compute and plot the drag force experirnced by a cyclist vs Velocity

%frontal area
A=1.5;

%drag coefficient
c_d=0.35;

%velocity vector
V=[1:25];

%density
rho=1000;

%drag force=0.5*density*frontal area*velocity.*velocity*drag coefficient

F=0.5*A*rho*V.*V*c_d;
plot(V,F,\'color\',\'r\');
xlabel(\'velocity\');
ylabel(\'Drag_Force\');

grid on;

To find drag co effecient against a cycler and to plot graph between drag force and coeffecient of drag

clear all
close all
clc

% computing the drag coefficient for various shapes and to plot drag force as a
% function of drag coeffiecient.
A=1.5;

V=25;

rho=1000;
%The drag coefficients for flat plate,prism,sphere,airfoil,bullet,long cylinder
%respectively

c_d=[1.28 1.14 0.07 0.045 0.295 0.82];

%drag force=0.5*density*frontal area*velocity.*velocity.*drag coefficient

F=0.5*A*rho*(V.*V.*c_d);
plot(c_d,F,\'color\',\'g\');
xlabel(\'Coefficient of discharge\');
ylabel(\'Force\');

grid on;

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.