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

AI Thread Summary
The discussion centers on coding a program to track photons through Compton Scattering, specifically addressing the challenge of calculating the new direction of photons after multiple scatters. The user seeks guidance on how to determine the new dx, dy, and dz values following the first scatter, emphasizing the need to represent the incident vector's effect on the new vector after collision. It is noted that the scattering angle is measured from the incident vector, which complicates the transformation back to the original coordinate frame. The use of transformation matrices is suggested as a potential solution, although it may become complex. The conversation encourages exploring similar problems from robotics for additional insights.
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
 
Hello everyone, I am currently working on a burnup calculation for a fuel assembly with repeated geometric structures using MCNP6. I have defined two materials (Material 1 and Material 2) which are actually the same material but located in different positions. However, after running the calculation with the BURN card, I am encountering an issue where all burnup information(power fraction(Initial input is 1,but output file is 0), burnup, mass, etc.) for Material 2 is zero, while Material 1...
Back
Top