Skip to main content

MATLAB project : To calculate the Drag force experienced by the cyclist and plot the various graphs.



1.AIM : 

  1. To calculate the drag force experienced by the cyclist.
  2. To plot a graph between Velocity of cycle(v) to the drag experienced by the cyclist (Fd).
  3. To plot a graph between Drag Coefficient (Cd ) and Drag force(Fd).

 

2.Governoring Equation

 

Fd =  0.5 *Cd*v*v*𝞀

 

Where,

Fd =  Drag force 

Cd =  Coefficient of drag

v  = Velocity of the cyclist

𝞀 = Density of the air

 

3.Objective of the project

 To write  a MATLAB code that will help visualise the graph as mentioned above.

 

4.Procedure

 

  1. When a cyclist moves in a direction it experiences a resistive or friction force.
  2. In fact, there are a lot of forces which may act on the cyclist during his run, like friction forces between road and tyres of the bicycle,force of friction between chain and sprocket etc.
  3. But for our consideration we are taking into account the force which is experienced by the cyclist due to air,which is also known as Drag Force.
  4. Why do cyclists experience such force ? 
  5. Well, it is explained by Newton’s 3rd Law of Motion, Which states that for any action there is an equal and opposite reaction.
  6. To calculate the drag force we will use the following relation 

                                

                                             Fd =  0.5 *Cd*v*v*𝞀.

 

  1. Different position of the cyclist affects the drag force.

 

                              : www.princeton.edu

 

                                             fig. 1 showing different positions of cyclist

    2. As we can see from the above figure that how Cd changes as the cyclist changes its position. Moreover we can say that Drag Coefficient is not entirely dependent upon the area of cyclist.

     3.We can see in the streamlined position case in respect to the above figure, In this case the cyclist has adjusted himself in aerodynamic position, so that he can minimise the drag.

            Conversion of area from ft to m^2.

  1. Upright commuter 5.5 ft^2  = 0.511m^2
  2. Racing  3.9 ft^2 = 0.362m^2
  3. Drafting 3.9 ft^2 = 0.362m^2
  4. Streamlined 5 ft^2 = 0.464m^2 
  1. Coding part of the project begins.

        1st Program

%To plot a graph between Velocity and Drag Force for upright commuter
%Language used is MATLAB


% Defining variables and constants as per the equation



cd = 1.1;  %it is the coefficient of drag,it is a unit less quantity



rho = 1.2;  %density of fluid in Kg/M^3



a = 0.511;     %Area under drag in M^2 area here is the front area of cyclist in the direction of motion



v = [1:100]; %velocity of the cyclist in  m/sec



drag_force=0.5*rho*v.^2*cd; %drag force is in newton(N)



plot(v,drag_force,'linewidth',4) % To plot the graph between velocity and drag force



xlabel('velocity') % To mark ‘x’ axis as velocity



ylabel('drag_coefficient') % To mark ‘y’ axis as drag coefficient

 


2nd Program

%To plot a graph between Drag Coefficient (Cd ) and Drag force(Fd).
%Language used is MATLAB



% Defining variables and constants as per the equation

Cd = 1.1

cd = linspace(1.1,1.1,100);

%it is the coefficient of drag, it is a unit less quantity



rho = 1.2;  %density of fluid in Kg/M^3



a = 0.511;     %Area under drag in M^2 area here is the front area of cyclist in the direction of motion



v = [1:100]; %velocity of the cyclist in  m/sec



drag_force=0.5*rho*v.^2*Cd; %drag force is in newton(N)



plot(cd,drag_force,'linewidth',4) % To plot the graph between velocity and drag force

xlabel('cd') % To mark ‘x’ axis as Cd  drag coefficient

ylabel('drag Force') % To mark ‘y’ axis as Drag Force







5.Explanation of the commands used

  1. Plot : It is used to generate a 2-d graph from the defined variables.
  2. Linewidth : It is used to adjust the thickness of the graph line.
  3. linspace : It is used to genereate a matrix in which user defines the range and number of outputs.

 6. Error encountered during program 2

  1. When I tried to plot a graph between  Drag Coefficient (Cd ) and Drag force(Fd).The graph came blank like this
  2.  To fix this error i needed a matrix of cd with  1 row and 100 columns, then i used linspace command as the value of cd = 1.1, then syntax will be 

 

                                                                 linspace(1.1,1.1,100)

 

                                                            It will generate me a matrix with 1.1 

    3. I needed this because drag force has a 100 values to plot a graph, I needed 100 values of cd (coefficient of drag) as well.

     4.In my 2nd Program i have used cd and Cd, both actually hold same value, only difference is,

                               cd = holds value in 1 row and 100 columns, It is used for ploting purpose. 

                               Cd = holds value in 1 row and 1 column, it is used in equation of drag force for calculation purpose.

 

Outcomes of the program 1 are as follow :

 

Case 1 :

                                                    Cd = 1.1 and A =  0.511m^2     

 

                                                   

 

Case 2 :

                                                    Cd = 0.88 and A =  0.362m^2

 

 

                                                

 

Case 3 :

                            

                                               Cd = 0.50 and A =  0.362m^2

 

                                             

 

 

Case 4 :

 

                                            Cd = 0.12 and A =  0.464m^2

 

                                           

 

Outcomes of the program 2 :

 

                   Case 1:

 

                                         Cd = 1.1 and A =  0.511m^2     

 

                                         

 

                Case 2 :

 

                                          Cd A =  0.362m^2

 

                                       

 

Case 3 :

                            

                                               Cd = 0.50 and A =  0.362m^2

 

                                       

 

Case 4 :

 

                                            Cd = 0.12 and A =  0.464m^2

                                       

 

 

 

Comments

Popular posts from this blog

Theory Of Machine Viva Questions -2

Theory Of Machine Viva Questions -2 1. What is a link? a. part of a machines b. stationary part of a machine c. part of a machine which has motion relative to some other part d. none of the above answer :- c. part of a machine which has motion relative to some other part 2. When relative motion between two element is completely or successfully constrained, the these two elements from a a. mechanism b. machine c. kinematic pair d. kinematic chain answer :- c. kinematic pair 3. Piston and cylinder of a reciprocating steam engine forms a a. turning pair b. rolling pair c. sliding pair d. spherical pair answer :- c. sliding pair 4. A ball and socket joint form a a.turning pair b.rolling pair c.sliding pair d.spherical pair answer :- d.spherical pair 5. Ball bearing and roller bearing form a a.turning pair b.rolling pair c.sliding pair d.spherical pair answer :- b.rolling pair 6. Which one of the following is a lower pair? a.ball and ro...

Static force analysis notes with numericals

STATIC FORCE ANALYSIS CONTENTS OF SYLLABUS TO BE DISCUSSED BASIC DEFINITIONS EQUILIBRIUM OF TWO FORCES EQUILIBRIUM OF THREE FORCES CONCEPT OF FORCE AND COUPLE NUMERICAL PRINCIPLE OF SUPERPOSITION NUMERICALS LINK TO PDF NOTES                       ===>      Direct Download