All Courses
All Courses
Courses by Software
Courses by Semester
Courses by Domain
Tool-focused Courses
Machine learning
POPULAR COURSES
Success Stories
Aim: To calculate drag force against a cyclist using MATLAB GOVERNING EQUATION : FD=12.ρ.A.v2.cdFD=12.ρ.A.v2.cd FDFD: Drag force (N) ρρ :…
Shubhranshu Mishra
updated on 03 Jul 2020
Aim: To calculate drag force against a cyclist using MATLAB
GOVERNING EQUATION :
FD=12.ρ.A.v2.cdFD=12.ρ.A.v2.cd
FDFD: Drag force (N)
ρρ : Density of fluid (air) (kgm3kgm3)
AA : Frontal area of cyclist and bicycle (m2m2)
vv : Velocity of the cyclist (msms)
cdcd : Coefficient of drag
Drag force : A drag force is the resistance force caused by the motion of the body through a fluid, such as water or air. It acts opposite to the direction of the oncoming flow velocity. In this case the cyclist is experiencing a drag force as he is cycling against the wind.
OBJECTIVE :
PROCEDURE :
Then write the formula through which drag force can be calculated. Use semicolon (;) to suppress unwanted results.
drag_force = 0.5*rho*v.^2*A*c_d
Now, use the plot command to plot a graph between velocity and drag force. If you want, mention the color and the style of the plotting line and also the pointer mark style.
plot(v,drag_force,”r-*”)
Now label the x-axis as "Velocity" using ‘xlabel’ command and y-axis as "Drag force" using ‘ylabel’ command.
xlabel(“Velocity”)
ylabel(“Drag force”)CODE :
% A program to calculate the drag force on a cyclist
clear
close all
clc
% Inputs
% Drag coefficient
c_d = 0.8;
%Area m^2
A = 0.1;
%Density kg/m^3
rho = 1.2;
%Velocity m/s
v = (1:10)
%Drag force N
drag_force = 0.5*rho*v.^2*A*c_d
plot(v,drag_force,"r*-")
xlabel("Velocity")
ylabel('Drag force')
grid on
RESULTS:
PLOT :
II. PLOTTING DRAG COEFFICIENT vs DRAG FORCE
clear : This command clear all the data stored in the workspace previously.
close all : This command closes all the previous figures and plots.
clc : This command clears the command window.
A (frontal area) = 0.1
rho (density) = 1.2
v (velocity) = 10
For drag coefficient (c_d) we have different values according to the shape of the body.
SHAPE |
DRAG COEFFICIENT |
Sphere |
0.47 |
Half sphere |
0.42 |
Cone |
0.50 |
Cube |
1.05 |
Angled cube |
0.80 |
Long cylinder |
0.82 |
Short cylinder |
1.15 |
Streamlined body |
0.04 |
Streamlined half body |
0.09 |
Then write the formula through which drag force can be calculated. Use semicolon (;) to suppress unwanted results.
drag_force = 0.5*rho*v.^2*A*c_d
Now, use the plot command to plot a graph between drag coefficient and drag force. If you want mention the color and the style of the plotting line and also the pointer mark style.
plot(c_d,drag_force,”b-*”)
Now label the x-axis as "Drag coefficient" using ‘xlabel’ command and y-axis as "Drag force" using ‘ylabel’ command.
xlabel(“Drag coefficient”)
ylabel(“Drag force”)
To enable the grid lines use ‘grid on’ command.
CODE :
% A program to calculate the drag force on a cyclist
clear
close all
clc
% Inputs
% Drag coefficients
c_d = [0.47 0.42 0.50 1.05 0.80 0.82 1.15 0.04 0.09]
%Area m^2
A = 0.1;
%Density kg/m^3
rho = 1.2;
%Velocity m/s
v = 10;
%Drag force N
drag_force = 0.5*rho*v.^2*A*c_d
plot(c_d,drag_force,"b*-")
xlabel("Drag coefficient")
ylabel('Drag force')
grid on
RESULTS :
PLOT :
CONCLUSION :
Leave a comment
Thanks for choosing to leave a comment. Please keep in mind that all the comments are moderated as per our comment policy, and your email will not be published for privacy reasons. Please leave a personal & meaningful conversation.
Other comments...
Frequency Analysis of a rotating shaft (Finite Element Analysis using SolidWorks)
Aim- The aim of this project is to perform a frequency analysis on a rotating shaft, from there we need to determine the critical frequencies and the mode shapes. 5 Mode Shapes were simulated and analyzed. Introduction:- Frequency is the number of occurrences of a repeating event per unit of time. The formula…
06 Jul 2020 03:57 PM IST
Project - Rankine cycle Simulator (MATLAB)
AIM: To create a basic 'RANKINE CYCLE SIMULATOR'. THEORY: The Rankine cycle is the fundamental operating cycle of all power plants where an operating fluid is continuously evaporated and condensed. The selection of operating fluid depends mainly on the available temperature range. The above figure shows us the basic rankine…
03 Jul 2020 10:43 AM IST
Curve fitting (MATLAB)
AIM: To write a program to fit a linear and cubic polynomial for the specific heat data set then calculate the goodness of fit using different parameters and different ways to improve the fit in MATLAB THEORY: Curve fitting is the process of constructing a curve or mathematical function that best fits the data points,…
03 Jul 2020 10:24 AM IST
Solving second order ODEs (MATLAB)
Aim: To solves the ODE which represents the equation of motion of a simple pendulum with damping. Objective: To write a program that solves the following ODE which represents the equation of motion of a simple pendulum with damping and create an animated video of output obtains by solving this ODE. Theory:…
03 Jul 2020 10:20 AM IST
Related Courses
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.