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 Python Program. OBJECTIVES OF THE PROJECT: To calculate Drag Force on a bicycle moving through the air To plot Velocity vs Drag force and to plot Drag Co-efficient vs Drag force. THEORY: The force on an object that resists its motion through a fluid is called…
Shubhranshu Mishra
updated on 03 Jul 2020
AIM: To Calculate Drag Force against a cyclist using Python Program.
OBJECTIVES OF THE PROJECT:
THEORY:
The force on an object that resists its motion through a fluid is called ‘drag’. When the fluid is a gas like air, it is called aerodynamic drag or air resistance. A drag force acts in opposition to the direction of motion and therefore has a negative effect on the velocity. A cyclist, for example, will constantly try to minimize drag so that they can increase their velocity.
GOVERNING EQUATIONS: The equation that represents the drag force, experienced by a body due to its movement through the fluid is given by,
⇒⇒ FD=0.5⋅ρ⋅A⋅v2⋅CdFD=0.5⋅ρ⋅A⋅v2⋅Cd
FDFD = Drag Force experienced by a body (NN),
ρρ = Density of the fluid through which the body is moving (kg/m3kg⁄m3 ),
AA = Projected frontal area of the body which is perpendicular to the fluid flow direction (),
vv = Velocity of the body relative to the fluid around them (msms),
CdCd= Drag coefficient, a dimensionless quantity.
PROCEDURE:
BODY OF THE CONTENT :
(i) Python Code for calculating drag force and to plot variation between velocity and drag force -
# A program to calculate drag forces over a bicycle and to plot variation between velocity and drag force
import matplotlib.pyplot as plt
# Inputs
# Drag coefficient of air
c_d = 0.8
# Frontal area(m^2)
A = 0.5
# Density of air (kg/m^3)
rho = 1.2041
# Velocity (m/s)
velocity_1 = [10,20,30,40,50,60,70,80,90]
drag_forces = []
for velocity in velocity_1:
drag_forces.append((0.5*rho*A*velocity*velocity*c_d))
print(drag_forces)
plt.plot(velocity_1,drag_forces)
plt.xlabel('Velocity (m/s)')
plt.ylabel('Drag forces (N)')
plt.title('Variation between Velocity and Drag_forces')
plt.show()
(ii) Python Code for calculating drag force and to plot variation between drag coefficient and drag force for the same frontal area-
# A program to calculate drag forces over a bicycle and to plot variation between drag coefficient and drag force
import matplotlib.pyplot as plt
# Inputs
# Drag coefficient
'''drag coefficient for different shapes having same frontal area
Sphere = 0.50
Solid Hemisphere = 0.42
Cube = 0.8
Thin disk = 1.12
Squared flat plate = 1.17'''
c_d_1 = [0.42,0.5,0.8,1.12,1.17]
# Frontal area(m^2)
A = 0.5
# Density (kg/m^3)
rho = 1.2041
# Velocity (m/s)
velocity = 20
drag_forces = []
for C_d in c_d_1:
drag_forces.append((0.5*rho*A*velocity*velocity*C_d))
print(drag_forces)
plt.plot(c_d_1,drag_forces)
plt.xlabel('C_d ')
plt.ylabel('Drag forces (N)')
plt.title('Variation between Drag coefficient and Drag_forces')
plt.show()
OUTPUT :
The data obtained are entered into an excel sheet and from there the plot obtained is as -
CONCLUSION :
F∝V2F∝V2
F∝CdF∝Cd
F∝ρ
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
0 Hours of Content
Skill-Lync offers industry relevant advanced engineering courses for engineering students by partnering with industry experts.
© 2025 Skill-Lync Inc. All Rights Reserved.