drag force calculations over a cyclist
Objective: Write a Python program to calculate drag force against a cyclist.
Factors: The factors involved are Velocity,Drag coefficient,Frontal Area,Density of air.
- a program to plot Velocity vs Drag force.
drag_force=`1/2*rho*area*v^2*cd`
density kg/m^3
rho=1.2
area m^2
a=0.1
drag co_eff
c_d=0.9
diffrent velocities
empty array for store the different drag force value according to the velocities
running the for loop to store the drag force value accoring to the velocities
append value to deag force empty array
print the drag force
plot velocity vs. Drag force
program to plot Drag Co-efficient vs Drag force
drag force over a bicyccle
density
rho=1.225
area
a=0.36
velocity
velocity=35
diffrent cd
c_d=[0.11,0.22,0.44,0.66,0.88]
empty array for store the different drag force value according to the velocities
running the for loop to store the drag force value accoring to the cd
append value to deag force empty array
print the drag force
plot cd vs. Drag force