Project

CALCULATING THE DRAG FORCE AGAINST CYCLIST USING MATLAB PROGRAM

PROGRAM TO PLOT VELOCITY VS DRAG FORCE

% Program to plot velocity vs drag force
clear all
close all
clc

% Inputs

% Density kg/m^3
rho=1.5

% Area m^2
A=0.4

% Velocity m/s
v=[2:5]

% Drag coefficient
c_d=1

% Drag force
drag_force_against_bicyclist=rho*A*v.^2*c_d*0.5

%plotting
plot(v,drag_force_against_bicyclist,'linewidth',3)
axis([1.5 5.5 0 10])
xlabel('velocity')
ylabel('drag force')
grid on

AIM:

Our aim is to calculate the drag force against the cyclist who moves at an assumed velocities and plot a graph against Velocity Vs Drag force.

INPUTS:

DRAG FORCE FORMULA

Fd=1/2*`rho`*A*v^2*cd

Here, rho=density, Kg/m^3

A= Frontal Area, m^2

v=velocity, m/s

cd= drag coefficient

Fd= drag force, kg*(m/s^2)

STEP 1:

Our 1st step is to provide the values for each quantity on the R.H.S of formula to calculte the drag force at different assumed velocities.

STEP 2:

Our second step is to ENTER the drag force formula in matlab to calculte the value

CALCULTED VALUE OF DRAG FORCE AT DIFFERENT VELOCITIES

STEP 3:

Our 3rd step is to plot a graph against Velocity Vs Drag force using plot command

ERRORS OCCURED DURING PROGRAMMING:

Nil

OUTPUT:

PROGRAM TO PLOT DRAG COEFFICIENT VS DRAG FORCE

% Program to plot drag co-efficient vs drag force
clear all
close all
clc

% Inputs

% Density kg/m^3
rho=1.5

% Area m^2
A=0.4

% Velocity m/s
v=5

% Drag coefficient
c_d=[0.70 0.88 1 1.15]

% Drag force
drag_force_against_bicyclist=rho*A*v^2*c_d*0.5

%plotting
plot(c_d,drag_force_against_bicyclist,'linewidth',3,'color','r')
axis([0.65 1.2 5 9])
xlabel('drag coefficient')
ylabel('drag force')
grid on

AIM:

Our aim is to calculate the drag force against the cyclist at assumed drag coefficients and plot a graph against drag coefficient Vs Drag force.

INPUTS:

DRAG FORCE FORMULA

Fd=1/2*`rho`*A*v^2*cd

Here, rho=density, Kg/m^3

A=Frontal Area, m^2

v=velocity, m/s

cd= drag coefficient

Fd= drag force, kg*(m/s^2)

STEP 1:

Our 1st step is to provide the values for each quantity on the R.H.S of formula to calculte the drag force at different assumed draft coefficients.

STEP 2:

Our second step is to ENTER the drag force formula in matlab to calculte the value

CALCULTED VALUE OF DRAG FORCE AT DIFFERENT DRAG COEFFICIENTS

STEP 3:

Our 3rd step is to plot a graph against Drag coefficient Vs Drag force using plot command

ERRORS OCCURED DURING PROGRAMMING:

Nil

OUTPUT:

CONCLUSION:

The program to calculate drag force against a cyclist is coded and a graph against 'Velocity Vs drag force' and 'Drag coefficient Vs Drag force' is plotted.

The graph 'Velocity Vs drag force' insists that the drag force increases as the velocity increases.

The graph 'Drag coefficient Vs Drag force' insists that the drag force increases as the drag coefficient increases

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.