I want to simulated a VCSEL source, but its source is not a standard Gaussian source. The beam file curve is shown in below. I want to know how to simulate it.

I want to simulated a VCSEL source, but its source is not a standard Gaussian source. The beam file curve is shown in below. I want to know how to simulate it.
Best answer by David
Hello Chang,
For ray tracing simulation in non-sequential mode, a Source Radial can be used to define an arbitrary axially symmetric source.
I took the line graph image and read off the intensities corresponding to the vertical grid lines. I used Mathematica to convert the x-axis values to angles using angle = ArcTan[w/15] where w is the position. Only non-negative position values are used because of symmetry. I then interpolated the data to obtain intensity values corrsponding the a regular list of angles, 0 to 18 degrees by 2. These values are then used to define a radially symmetric source. I attach the ZAR file.
Kind regards,
David
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.