12-09-2013 12:06 PM
@DFGray wrote:
I programmed this exact problem (in 2D) using FORTRAN IV on a DECSystem 20 mainframe many years ago. I still have the printout and a couple of traces from a TEK4014 graphics terminal in my shelves. I think I even still have the handwritten equations of motion out to about fifth order. A couple of things you may want to do:
- Dynamically vary your dt bases on error estimates. You can estimate your error if you expand the simple first order approximation (a1 + a2t) into higher orders. You can use the value of the last term in your expansion as an error approximation, then set your step size to achieve the error you want to see. Your code with approximately double for each order you add, but your step size will go up by about an order of magnitude at the same time.
- LabVIEW has 3D controls, so you can calculate and plot your results in three dimensions.
- If you are in to pain, you can use the same equations to calculate the trajectories of charged particles - but you will need to add the effects of the moving electric fields...
Aaah ok, I think I understand, if you have a copy of the equations of motion, I would love to have a look since I am a little lost. If not then no worries, I will try a few other things:)
12-09-2013 12:45 PM
Here you go. I included the relevant parts of the paper. It was dated 1981.
12-10-2013 09:56 AM
@DFGray wrote:
Here you go. I included the relevant parts of the paper. It was dated 1981.
Wow, thanks a lot!:D