Project

Flow Over a Bicycle

Program to Calculate Drag Force VS Velocity and Drag Force VS Drag Coefficient for various shapes

Description: In this code we calculate the Drag Force that Acts against a Cyclist, inorder to do that, we use the formula as given below:

Fd = (0.5*Rho*A*Cd.*V.^2)

where:
Fd = Drag Force in Newton
Rho = Density of Air in Kg/m^3
A = Area occupied by the object against the airflow in m^2
Cd = Coefficient of Drag, its a non-dimensionl quantity
V = Velocity at which the object is moving

Once we define the formula, we then plot a graph of Drag Force VS Velocity

%Program to Calculate the Drag Force Against a Cyclist%
close all
clear all
clc

%Inputs%
Rho = 1.2; % DENSITY, Kg/m^3 %
A = 1; % AREA,  m^2 %
V = [1:100]; % RANGE OF VELOCITIES,  m/s %
Cd = [1:100]; % RANGE OF DRAG COEFFICIENTS (Non Dimentional) %

% Drag Force %
Fd = (0.5*Rho*A*Cd.*V.^2);
%Plotting%
%Plot of Drag Force VS Velocities%
figure (1); % First Plot %
plot (Fd, V, \'color\', \'r\');
xlabel (\'Drag Force\');
ylabel (\'Velocity\');
grid on;
%Plot of Drag Force VS Drag Coefficient%
figure (2); % Second Plot %
plot (Fd, Cd, \'color\', \'b\');
xlabel (\'Drag Force\');
ylabel (\'Drag Coefficient\');
grid on;

Results:

Figure: Plot of Drag Force VS Velocities


Figure: Plot of Drag Force VS Drag Coefficient

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.