Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I need a python code for this question. Free Fall with/without drag Consider an object freely falling along the vertical y axis under the influence

I need a python code for this question.image text in transcribedimage text in transcribed

Free Fall with/without drag Consider an object freely falling along the vertical y axis under the influence of gravity. Newton's second law tells us that the time rate of change of velocity is duldt = -g, where g is the acceleration due to gravity. The velocity is defined as the time rate of change of position, u = dyldt. Thus, the motion of the object is governed by the ODE's dy = v du We can combine these two into a single second order differential equation: dy = -8 diz = -8 but for numerical purposes, the first order form is easier to use. We may introduce some drag as a force that is proportional to the velocity: = -g- Bu The pseudocode for the algorithm looks like: set the initial values of y (y[0]) and v (v[0]) for each time point i, use the information from that point to determine the position and velocity at i+1: determine v[i+1] from v[i] and the derivative of velocity (acceleration) determine y[i+1] from y[i] and the derivative of position (velocity, i.e. v[i]) Homework 5.1 The first 5 are with no drag, i.e. with B = 0. 1. Use Euler's method to discretize the equations of motion for the position and velocity in the cell above (this is pen and paper math). 2. Write a python code that uses Euler's method to solve for the motion of an object in free fall. Note that you should solve them at the same time -- you can't generally first solve for u and then for y. Choose the initial conditions yo = 12.Om and Vo = 35.0m/s and set g = 9.8m/s. 3. Use your code to determine the height for times 0

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Structured Search For Big Data From Keywords To Key-objects

Authors: Mikhail Gilula

1st Edition

012804652X, 9780128046524

More Books

Students also viewed these Databases questions

Question

=+a. Can the reader find the most important message?

Answered: 1 week ago