Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

Matlab projectile motion with drag

05/12/2021 Client: muhammad11 Deadline: 2 Day

Dynamics MATLAB Project

Computing Project 1 Projectile

Introduction

The computing project Projectile concerns the theory of particle dynamics. The concept is to model projectile motion including the nonlinear drag resistance caused by motion in a fluid with finite density (which causes drag that is proportional to the square of the ve- locity). The drag forces can have a significant impact on the motion of the particle and that impact can affect the outcome in practical problems (e.g., in targeting and homerun hitting).

The most widely accepted model of velocity related drag forces give a force with magni- tude equal to

𝐹𝐹𝑑𝑑 = 12 πœŒπœŒπΆπΆπ‘‘π‘‘π΄π΄π‘π‘ 𝑣𝑣 2 ≑ 𝑐𝑐𝑣𝑣2 (1)

where ρ is the density of the surrounding fluid, Cd is the coefficient of drag (which de- pends upon the shape of the objectβ€”something you can look up online or in a handbook), Ap is the projected area of the object perpendicular to the direction of the velocity, and 𝑣𝑣 = √𝐯𝐯 βˆ™ 𝐯𝐯 is the speed (the norm of the velocity v). For convenience in the following discussion we lump the coefficients into the single parameter 𝑐𝑐 = πœŒπœŒπΆπΆπ‘‘π‘‘π΄π΄π‘π‘/2. In your pro- gram you will want to input each of these as physical properties and then compute c for use throughout the computation.

The forces that act on a particle are vectors. The drag force must, therefore, be a vector (with magnitude and direction). The expression above gives the magnitude of the vector. The direction of the force is in the direction of the velocity and acts to oppose motion in the direction of the velocity. The simplest way to develop a unit vector in the direction of the velocity is to divide the velocity by its magnitude. The direction m of the drag force is then

𝐦𝐦 = βˆ’π―π―/𝑣𝑣 (2)

Putting these together the drag force can be expressed as

𝐅𝐅𝑑𝑑 = 𝑐𝑐𝑣𝑣2𝐦𝐦 = βˆ’π‘π‘ 𝑣𝑣 𝐯𝐯 (3)

The force opposes the motion, it is proportional to the constant c, and it is proportional to the β€œsquare” of the velocity. The presence of this force makes the particle motion prob- lem nonlinear because the velocity is part of the state that we are trying to determine by integrating the equations of motion.

We can solve the problem numerically by computing the velocity and position incremen- tally based upon the state at the previous time step and the equation of motion at the cur- rent time step. Using the generalized trapezoidal rule for numerical integration we have

Arizona State University The Mechanics Project CEE 212β€”Dynamics CP 1β€”Projectile

Β© 2013 Keith D. Hjelmstad 2

𝐯𝐯𝑛𝑛+1 = 𝐯𝐯𝑛𝑛 + βˆ†π‘‘π‘‘[π›½π›½πšπšπ‘›π‘› + (1 βˆ’ 𝛽𝛽)πšπšπ‘›π‘›+1] (4)

𝐱𝐱𝑛𝑛+1 = 𝐱𝐱𝑛𝑛 + βˆ†π‘‘π‘‘[𝛽𝛽𝐯𝐯𝑛𝑛 + (1 βˆ’ 𝛽𝛽)𝐯𝐯𝑛𝑛+1] (5)

where βˆ†π‘‘π‘‘ = 𝑑𝑑𝑛𝑛+1 βˆ’ 𝑑𝑑𝑛𝑛 is the time increment and Ξ² is a numerical integration parameter, which we generally take to be Ξ²=0.5 (more on that in the Course Notes entitled Numeri- cal Methods). The subscripts on the state variables x, v, and a indicate the timeβ€”e.g., xn = x(tn) and xn+1 = x(tn+1), etc. Even though the position vector is a continuous function of time we will be finding values at certain discrete values of time that are meant to approx- imate the actual function at that time.

We get acceleration from the equations of motion F=ma. In the present case that would be

βˆ’π‘šπ‘šπ‘šπ‘šπ§π§βˆ’ 𝑐𝑐𝑣𝑣𝑛𝑛+1𝐯𝐯𝑛𝑛+1 = π‘šπ‘šπšπšπ‘›π‘›+1 (6)

where m is the mass of the particle, g is the acceleration of gravity (i.e., 9.81 m/s2), and n is a unit vector pointing in the direction of gravity (usually we will set our coordinate sys- tem such that n = e3).

The knowledge you need to solve this problem within the context of a MATLAB code is contained in the Course Notes entitled Numerical Methods. The state is completely de- termined at 𝑑𝑑𝑛𝑛 (we got it from doing the same calculation at the last time step). So, we can look at Eqns. (4), (5), and (6) as three (vector) equations in three (vector) unknowns.1

The task is to solve those equations at each time step and then move on to the next time step. As in all dynamics problems we must specify initial condition on position and ve- locity (i.e., xo and vo must be known as part of the problem specification). To get ready to start the time marching algorithm you must also know the acceleration ao at time zero. The acceleration cannot be specified, but rather must be computed from the equation of motion, in this case Eqn. (6) so

πšπšπ‘œπ‘œ = βˆ’π‘šπ‘šπ§π§ βˆ’ 𝑐𝑐 π‘šπ‘š π‘£π‘£π‘œπ‘œπ―π―π‘œπ‘œ (7)

Once the initial state is completely established then the time stepping algorithm can be done. Note that Eqn. (6) is nonlinear (because of the velocity term, which is sort of a vec- tor version of velocity squared). Therefore, we will need to use Newton’s method at each time step to solve our system of equations (again, see the course notes).

The time-stepping algorithm for projectile motion without drag has been implemented in the MATLAB program projectile.m which we have provided for you and is available on the Blackboard website. This program shows how to set up the time-stepping part of the MATLAB code. Note that without the drag term the equation of motionβ€”i.e., Eqn. (6)

1 If you write out all of these three vector equations in components then it is nine scalar equations in nine scalar unknowns. It will be convenient to keep the equations in vector notation because we can implement these equations in MATLAB as vector equations.

Arizona State University The Mechanics Project CEE 212β€”Dynamics CP 1β€”Projectile

Β© 2013 Keith D. Hjelmstad 3

without dragβ€”are not nonlinear so we do not have a Newton β€œwhile” loop in this code. You will need to put that in as part of this project. If you think about it, what you really need to do to get from my code to your code is to deal with what is different between my equation of motion and your equation of motion (yours has the drag term, mine does not). Note that the numerical integration equationsβ€”Eqns. (5) and (6) aboveβ€”are the same in both cases because they only implement the fact that acceleration is the time rate of change of velocity which is the time rate of change of position.

The MATLAB program projectile.m is the program framework that we will use for all of the Computing Projects in this course. Therefore, understanding how this one is set up will help you to get oriented for all future CPs. The descriptions of some of the features are noted in the course notes Numerical Methods. For future computing projects you will have this basic code for a launching point (the time stepping algorithm will be basically the same in each case, the equations of motion will change). Study the code carefully.

What you need to do

For this computing project you can get going in two steps: (1) get the program to com- pute correctly using an explicit approximation (see the course notes) and (2) do the code for the real thingβ€”i.e., the implicit implementation.

As mentioned in Numerical Methods, the explicit approximation uses the simplifying trick of using the old velocity 𝐯𝐯𝑛𝑛 in the equation of motion instead of the correct new val- ue 𝐯𝐯𝑛𝑛+1. That allows us to compute the acceleration at the new state (approximately) as

πšπšπ‘›π‘›+1 = βˆ’π‘šπ‘šπ§π§ βˆ’ 𝑐𝑐𝑣𝑣𝑛𝑛𝐯𝐯𝑛𝑛/π‘šπ‘š

This equation can be implemented in projectile.m by simply adding the drag term. Be- cause it is the old velocity (which is known from the last time step) you don’t need New- ton’s method to solve the equation of motion. You should be able to get this working by changing a few lines of projectile.m!2

Once you get the explicit version of the code working move on to the implicit version. This part is the main challenge and purpose of this project. In essence, you need to im- plement Newton’s method (in a β€œwhile” loop) to satisfy the equations of motionβ€”Eqn. (6)β€”at each time step. The course notes Numerical Methods shows you how to get the equations for the Newton iteration.

2 This approachβ€”solving a simpler problem before you get into the complexities of the real prob- lem at handβ€”is a good programming practice. It allows you to sort things out one step at a time and at each step you can get a working code that might help to verify the next version. When you get the explicit version working you will want to save that for posterity (i.e., start the next code in a new file so you can go back to that one as needed).

Arizona State University The Mechanics Project CEE 212β€”Dynamics CP 1β€”Projectile

Β© 2013 Keith D. Hjelmstad 4

Once you get your code working, use it to study the phenomenon of terminal velocity. You can, in fact, use terminal velocity as one of the ways to verify the code because it is possible to derive an analytical expression from the equations of motion for terminal ve- locity (assuming that the direction does not change, which would be true for a particle traveling in exactly the same direction as gravity, velocity parallel to n). Examine what happens when the projectile velocity is not in a constant vertical directionβ€”i.e., the gen- eral projectile-motion problem, wherein there is both a horizontal and vertical component to the motion. How does horizontal motion affect the vertical terminal speed? Will a ball that hits water in a swimming pool at an angle hit the bottom at the same time as a ball that hits going straight down if the vertical component of the velocity is the same?

You are, of course, free (and encouraged) to explore anything you want within the con- text of particle motion with drag forces. Note that your report will be evaluated on the basis of the interest and insights of your study. This part of the assignment invites you to discover and to explore. You could change your code to account for ambient wind (i.e., the fluid moving on its own independent of the particle) and then you could explore why it is harder to hit a homerun in baseball hitting into the wind compared to with the wind. You can, and should study how the numerical analysis parameters affect your solution. What happens if you change the time step? What happens if you change the parameter Ξ²?

Write a report documenting your work and the results (in accord with the specification given in the document Guidelines for Doing Computing Projects). Post it to BlackBoard prior to the deadline. Consult the document Evaluation of Computing Projects to see how your project will be evaluated to make sure that you can get full marks.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Smart Tutor
Solutions Store
Coursework Helper
High Quality Assignments
Fatimah Syeda
University Coursework Help
Writer Writer Name Offer Chat
Smart Tutor

ONLINE

Smart Tutor

I find your project quite stimulating and related to my profession. I can surely contribute you with your project.

$37 Chat With Writer
Solutions Store

ONLINE

Solutions Store

I am an academic and research writer with having an MBA degree in business and finance. I have written many business reports on several topics and am well aware of all academic referencing styles.

$15 Chat With Writer
Coursework Helper

ONLINE

Coursework Helper

I am a PhD writer with 10 years of experience. I will be delivering high-quality, plagiarism-free work to you in the minimum amount of time. Waiting for your message.

$37 Chat With Writer
High Quality Assignments

ONLINE

High Quality Assignments

I am a PhD writer with 10 years of experience. I will be delivering high-quality, plagiarism-free work to you in the minimum amount of time. Waiting for your message.

$44 Chat With Writer
Fatimah Syeda

ONLINE

Fatimah Syeda

Being a Ph.D. in the Business field, I have been doing academic writing for the past 7 years and have a good command over writing research papers, essay, dissertations and all kinds of academic writing and proofreading.

$21 Chat With Writer
University Coursework Help

ONLINE

University Coursework Help

I have worked on wide variety of research papers including; Analytical research paper, Argumentative research paper, Interpretative research, experimental research etc.

$27 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Reebok nfl replica jerseys a case for postponement solution - Sephora value proposition - Just in time lecture - Astm grain size equation - Academic Success and Professional Development Plan Part 2: Academic Resources and Strategies - Eileithyia goddess of truth - 04.03 the decision assessment - TQM Planning - Quotes about jordan baker in the great gatsby - 90 miles to havana chapter summaries - The shark net book - Coming to an awareness of language by malcolm x - Nur512-Reply to this discussion johanne - Vcat statement of grounds example - Integrating teams at hernandez & associates - Wk 4 Individual Assignment - Project Documentation and Implementation Artifacts [due Mon] - Yellow line parking rules qld - Vcaa 2012 biology exam - The great wall of china worksheet answers - Natisco ice cream scoop - Debemos llenar este formulario cuando solicitemos el prΓ©stamo. - Telstra byo tablet plans - Au kid shoe size - What are some factors that affect social mobility - How do you make the distinction between doing a safety plan and a harm reduction plan? - Using Hofstedes Characterisics model to differentiate inernational and domestic business decisions - Integration by parts sin 2 - The knight's tale canterbury tales pdf - Research Article Summaries - Case 4 537 - Blood everywhere a case study in blood - Little books inc recently reported 3 million of net income - Cvs case study solution - Bob jane t mart darwin - Environment question - LOST LOVE SPELLS TO RESTORE BROKEN RELATIONSHIP TODAY - St john the baptist margate - Far cpa exam questions - Sutton lures naples new york - Active learning template diagnostic procedure - Benefits of roman expansion - Special occasion speech topic ideas - Cobb and co worksheets - Two types of employee attributions are noted in the article (intentionality and deceptive intentionality), - Principles of distributed database systems exercise solutions - Frankenstein Critical Analysis Paper - Is hacksaw ridge based on a true story - Galloway hills medical practice - Web Analytics Discussion: 300 Words Minimum - Under gaap companies can choose which inventory system - Igolder encrypt - MEDIA CONTENT DECONSTRUCTION and/or EVALUATION - How to use a dumpy level - How will ethical issues affect a medical assistant - Sigma 10m9 wet saw - Enterprise architecture as strategy ross pdf - Cueing systems used in reading - Godrej chotukool case study - Bartender print to file - You should be here sign worldventures - Specific latent heat of fusion of ice formula - Designing a Decision-Making Model - Murdoch exam timetable 2021 - Equilibrium constant in electrochemistry - Google drive ender's game english - Http www personalitypage com esfj html - WORK - Samepage digital music stand - International financial management madura 13th edition pdf - How to cite aicpa code of professional conduct apa - I'll worship you my god - Emergency calls to winter park - All souls a family story from southie chapter summary - 0.457 as a fraction - Discussion 5 - Student teacher letter to parents - 1311 hetfield ave scotch plains - Zappos com 2009 clothing customer service and company culture - Vision max cinema formerly cinema 95 - 13th netflix documentary questions - La seΓ±ora johnson es diabΓ©tica y no puede comer azΓΊcar - I need 8-10 slides on Virigin Atlantic - 24 is 0.6 of what number - Math statistics - Kirra sands pty ltd - Mankiw n gregory macroeconomics 9th edition worth publishers pdf - Best poems to compare - PMB Missed period cheap & safe | 1-24 weeks O835179056 SAFE ABORTION PILLS IN STANGER Pietermaritzburg Richmond QWAQWA IXOPO - Ap biology study notes - American Dream Final Project - Computer network ppt free download - Be to our god forever and ever - Discussion - Clustered boxplot spss - Psychologists are skeptical about the existence of esp because - Psychological treatment plan template - Open minitab file without minitab - Cathode ray oscilloscope questions answers pdf - Bock water heater troubleshooting - Research and writing del 2