Question 3.04 Suppose that you are going to program a computer to carry out an i
ID: 1879892 • Letter: Q
Question
Question 3.04 Suppose that you are going to program a computer to carry out an iterative calculation of motion involving nonconstant forces. Which of the following calculations should be done before starting the repetitive "loop" calculations? Specify the initial (vector) position of each object. Calculate the (vector) forces acting on the objects. Update the (vector) momentum of each object. Define constants such as G Update the (vector) position of each object. Specify the mass of each object. Specify the initial (vector) momentum of each object. Specify an appropriate value for the time step. Inside the repetitive "loop," assuming that we use the final velocity in each time interval as the approximation to the average velocity in that time interval, what should be the correct sequence of the following calculations? If you think the order is abc, enter abc as your answe. (a) Update the (vector) momentum of each object. (b) Update the (vector) position of each object. (c) Calculate the (vector) forces acting on the objects.Explanation / Answer
1, 4, 6, 7, 8. The things you only need to do once.
One possible exception is 8: At the beginning you may not have enough information to define the time step. Some sims use adaptive time-step determination which depends on observed parameters such as natural frequency or acceleration.
CAB
Assuming it's a simulation of a system in which the forces are a function of the previous step's final position:
1. Calculate the (vector) forces acting on the objects
2. Update the (vector) momentum of each object
(note: also update the velocity)
3. Update the (vector) position of each object
All the other tasks (select dt, define mass, constants, initialize variables) happen before the time-step loop is entered.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.