Fundamentals of Iterative Prediction with Varying Force: Difference between revisions

From Physics Book
Jump to navigation Jump to search
No edit summary
No edit summary
Line 5: Line 5:


===A Mathematical Model===
===A Mathematical Model===
To begin with, consider a one dimensional force, which may vary with both space and time. Then we write this as
To begin with, consider a one dimensional force, which may vary with both as a function of time and/or dependent variables such as position and velocity. Then we write this as
<math> F(x,t) </math>.
<math> F(t,x,v) </math>.
Now, using the momentum principle, we know that  
Now, using the momentum principle, we know that  
<math> F = \frac{\text{d}p}{\text{d}t} </math>,
<math> F = \frac{\text{d}p}{\text{d}t} </math>,
Line 12: Line 12:
<math> \Delta p = F\Delta t</math>.
<math> \Delta p = F\Delta t</math>.


Just as with a constant force, this lets us write out for some iteration at <math> (x_0,t_0)</math> that  
Just as with a constant force, this lets us write out for some iteration at <math> (t_0,x_0,v_0)</math> that  


<math> p_{final} = p_{initial} + F(x_0,t_0)\Delta t </math>
<math> p_{final} = p_{initial} + F(t_0,x_0,v_0)\Delta t </math>


Which we combine with kinematics to produce a new position and time <math> (x_1, t_1) </math>. The difference we now have is that whereas before <math> F(x_0,t_0) = F(x_1,t_1) </math>, we must now recalculate <math> F(x,t) </math> using the relevant formula. This will take the form of an extra step in each iteration.  
Which we combine with kinematics to produce a new position and time <math> (t_1,x_1,v_1) </math>. The difference we now have is that whereas before <math> F(t_0,x_0,v_0) = F(t_1,x_1,v_1) </math>, we must now recalculate <math> F(t_1,x_1,v_1) </math> using the relevant formula. This will take the form of an extra step in each iteration.  


===A Computational Implementation===
===A Computational Implementation===

Revision as of 15:29, 30 May 2019

It is rare to have a force which is perfectly constant, and iterative analysis of more realistic varying-force systems is substantially more complicated. A toy model demonstrates how programs may be written to analyze these systems.

Main Idea

The physics of iterative prediction with varying force is the same as for prediction with constant force, but it is necessary to generalize the mathematical expressions, which adds complexity to the code.

A Mathematical Model

To begin with, consider a one dimensional force, which may vary with both as a function of time and/or dependent variables such as position and velocity. Then we write this as [math]\displaystyle{ F(t,x,v) }[/math]. Now, using the momentum principle, we know that [math]\displaystyle{ F = \frac{\text{d}p}{\text{d}t} }[/math], which in discrete terms is [math]\displaystyle{ \Delta p = F\Delta t }[/math].

Just as with a constant force, this lets us write out for some iteration at [math]\displaystyle{ (t_0,x_0,v_0) }[/math] that

[math]\displaystyle{ p_{final} = p_{initial} + F(t_0,x_0,v_0)\Delta t }[/math]

Which we combine with kinematics to produce a new position and time [math]\displaystyle{ (t_1,x_1,v_1) }[/math]. The difference we now have is that whereas before [math]\displaystyle{ F(t_0,x_0,v_0) = F(t_1,x_1,v_1) }[/math], we must now recalculate [math]\displaystyle{ F(t_1,x_1,v_1) }[/math] using the relevant formula. This will take the form of an extra step in each iteration.

A Computational Implementation

Examples

Simple

Moderately Difficult

Difficult

Connectedness

History

See also

Further Reading

External Links

References