Photon Tracking Code: Calc New dx, dy, dz after 1st Scatter

Click For Summary
SUMMARY

The discussion focuses on calculating the new direction vectors (dx, dy, dz) for photons after the first scatter in a Compton Scattering simulation. The user seeks guidance on representing the incident vector and its transformation post-collision. The solution involves using transformation matrices to accurately depict the new vector in the original coordinate frame, which can become complex. A reference to a linear algebra resource for robotics is provided to aid in understanding the necessary calculations.

PREREQUISITES
  • Understanding of Compton Scattering principles
  • Familiarity with vector mathematics and transformation matrices
  • Basic knowledge of polar and azimuthal angles
  • Experience with programming simulations involving particle physics
NEXT STEPS
  • Study transformation matrices in detail for vector manipulation
  • Learn about polar and azimuthal coordinate systems in physics
  • Explore Compton Scattering simulations in programming environments
  • Review linear algebra applications in robotics for practical insights
USEFUL FOR

Physicists, programmers developing particle tracking simulations, and students studying Compton Scattering or related fields in physics and mathematics.

Uranium
Messages
24
Reaction score
0
Hello all,

I'm working on coding a program that tracks photons based on Compton Scattering. However, I'm having an issue on how to deal with photons with multiple scatters. So, phi (polar) and theta (azimuthal) range from 0-pi/2 and 0-2pi, respectively, based on a random number generator. How do I calculate the new dx, dy, and dz after the first scatter. I guess I'm just not sure how to represent the incident vector and its effect on the vector after collision.
 
Engineering news on Phys.org
If I understand correctly your problem how to determine the position of the new vector in the original coordinate frame?

IE, you have a particle with moving with vector (Vx,Vy,Vz) (or alternatively (V,theta,phi)) in the original frame. This particle then interacts by scattering causing it to change direction. The scattering angle is measured from the incident vector and this needs to be represented in the original frame.

The only way I know how to do this is to use transformation matrices which can get messy pretty quickly. I've done similar problem for my robotics class in the pass, you may find it useful to look at the problem from a similar way.
Try starting with this link:
http://commons.bcit.ca/math/examples/robotics/linear_algebra/index.html
 

Similar threads

Replies
1
Views
1K
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
6K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 12 ·
Replies
12
Views
4K
  • · Replies 14 ·
Replies
14
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K