- #1
msailer1234
- 13
- 1
Hi everyone,
I am currently working on a project in Physics analyzing the possibility of magnetic fields protecting against radiation particles such as fully ionized nuclei or electrons. I wrote a code in Matlab that simulates a 3-D magnetic field based on a combination of wires and wire loops. The code produces a 3D vector field of 11x11x11. So I have Bx,By, and Bz for every point in the 11x11x11 box. I am now attempting to create a code which sends a virtual particle into the magnetic field so I can see what happens.
What I am doing is treating each point as a box with a uniform magnetic field which the particle travels through. I want to find an equation that can take the point and velocity the particle enters into a box and calculates the point and velocity it leaves the box. I am tripping over the calculations. I have attached my hand written calculations (I hope they are clearly written enough), but I don't know if I am incorporating relativity correctly. I also don't think I am approaching it correctly because the equation gives me Radius_x, Radius_y, and Radius_z which doesn't make sense to me. If anyone has any corrections or ideas, please let me know! Thanks!
I am currently working on a project in Physics analyzing the possibility of magnetic fields protecting against radiation particles such as fully ionized nuclei or electrons. I wrote a code in Matlab that simulates a 3-D magnetic field based on a combination of wires and wire loops. The code produces a 3D vector field of 11x11x11. So I have Bx,By, and Bz for every point in the 11x11x11 box. I am now attempting to create a code which sends a virtual particle into the magnetic field so I can see what happens.
What I am doing is treating each point as a box with a uniform magnetic field which the particle travels through. I want to find an equation that can take the point and velocity the particle enters into a box and calculates the point and velocity it leaves the box. I am tripping over the calculations. I have attached my hand written calculations (I hope they are clearly written enough), but I don't know if I am incorporating relativity correctly. I also don't think I am approaching it correctly because the equation gives me Radius_x, Radius_y, and Radius_z which doesn't make sense to me. If anyone has any corrections or ideas, please let me know! Thanks!