Particle Ray Tracing#
In this subsection, the parameters used by the lethe-particles-ray-tracing application are explained. This application simulates the propagation of photons (or rays) through the simulation domain to reconstruct the surface formed by particles, using the same principles as profilometry. The parameters defined here control the initial conditions for photon insertion, including their starting positions, directions, and any random offsets applied to their trajectories.
subsection particle ray tracing
set starting photon insertion position = 0., 0., 0.
set insertion unit tensors = 1.,0.,0. : 0., 1., 0. : 0., 0., 1.
set number of inserted photons per direction = 1 : 1 : 1
set distance between photons on insertion per direction = 1 : 1 : 1
set reference displacement vector = 0., 0., 1.
set photon insertion maximum offset = 0.
set photon insertion prn seed = 0
set photon maximum angular offset = 0.
set photon angular offset prn seed = 1
end
starting photon insertion positionis the location of the first photon being inserted, given as a 3D coordinate (x,y,z).insertion unit tensorsare three vectors defining the insertion grid directions relative to thestarting photon position. By default, these correspond to the Cartesian axes (x-y-z). The vectors do not need to be orthogonal or normalized, but they must not be non-zero vectors. The insertion grid is formed by creating insertion points relative to thestarting photon insertion positionusing these three vectors.number of inserted photons per directionare the number of photons to insert along each of the threeinsertion unit tensors. Example:5 : 10 : 1inserts 5 × 10 × 1 = 50 photons.distance between photons on insertion per directionis the spacing between photons along each insertion direction when thephoton insertion maximum offsetis zero. All values must be strictly greater than zero.reference displacement vectoris the prescribed displacement vector that defines the nominal direction of photon propagation. If thephoton maximum angular offsetis zero, photons travel exactly in this direction.photon insertion maximum offsetis the maximum positional offset applied randomly to the initial location of each photon in each direction defined by theinsertion unit tensors. If set to zero, photons are perfectly aligned.photon insertion prn seedis the pseudo random seed used to generate the insertion offsets.photon maximum angular offsetis the maximum angular deviation allowed between each photon’s propagation direction and the reference displacement vector. A value of zero means all photons move exactly along the reference vector otherwise, photons are scattered randomly within the specified angle defined in radians.photon angular offset prn seedis the pseudo random seed used to generate the angular offsets.