The Solar Photon Random Walk Model simulates the path of photons in radiative transport as they escape from the Sun. Photons do not travel in a straight line, but rather collide with larger particles and get redirected in a fashion. This simulation models that process using a random walk in polar coordinates. The step size for this random walk are determined by the mean free path, the average distance the photon will travel before colliding with another particle. This mean free path (l) is equal to the inverse of the product of the density (p) and the opacity (k): l = 1/(k*p). The density and opacity of the Sun are not constant throughout, but rather change at different distances from the center. However, these values are not agreed upon among the scientific community. Using different values of the mean free path, physicists give the average escape time of photons anywhere from between 100,000 years and 1,000,000 years. As a result, the program was designed not only to take into account a few different physicists' values (both average and linearly decreasing values) but it also allows the user to input their own values.
The Solar Photon Random Walk Model was developed as a final project in a sophomore-level Computational Physics course (Phy 200) using the Easy Java Simulations (EJS) modeling tool. It is distributed as a ready-to-run (compiled) Java archive. Double clicking the ejs_comp_phys_photon_random_walk.jar file will run the program if Java is installed.
Please note that this resource requires
at least version 1.5 of Java (JRE).
Solar Photon Random Walk Statistics Model
This model adds the feature of running numerous photons and compiling average statistics for these photons. download 1133kb .jar
Published: July 26, 2011
Solar Photon Random Walk Poster
Poster describing the Solar Photon Random Walk Model given as part of the Computational Physics class at Davidson College download 139kb .pdf
Published: July 26, 2011
Solar Photon Random Walk Source Code
Source Code for the Solar Photon Random Walk program. download 53kb .zip
Published: July 26, 2011
Rights: This material is released under the GNU General Public License Version 3.
Author: Jamie Formato
Posted: March 20, 2013 at 2:53PM
I'm putting together an iBook for my astro class. I would like to include this simulation in the body of the text as an interactive widget. Apparently this can be done through apples Dashcode- do you have any plans to create a JavaScript widget with this code?
D. Onken, Computer Program SOLAR PHOTON RANDOM WALK, Version 1.0 (2011), WWW Document, (https://www.compadre.org/Repository/document/ServeFile.cfm?ID=11349&DocID=2343).
D. Onken, Computer Program SOLAR PHOTON RANDOM WALK, Version 1.0 (2011), <https://www.compadre.org/Repository/document/ServeFile.cfm?ID=11349&DocID=2343>.
Onken, D. (2011). Solar Photon Random Walk (Version 1.0) [Computer software]. Retrieved October 14, 2024, from https://www.compadre.org/Repository/document/ServeFile.cfm?ID=11349&DocID=2343
Onken, Drew. "Solar Photon Random Walk." Version 1.0. https://www.compadre.org/Repository/document/ServeFile.cfm?ID=11349&DocID=2343 (accessed 14 October 2024).
%A Drew Onken %T Solar Photon Random Walk %D July 26, 2011 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=11349&DocID=2343 %O 1.0 %O application/java
%0 Computer Program %A Onken, Drew %D July 26, 2011 %T Solar Photon Random Walk %7 1.0 %8 July 26, 2011 %U https://www.compadre.org/Repository/document/ServeFile.cfm?ID=11349&DocID=2343
Disclaimer: ComPADRE offers citation styles as a guide only. We cannot offer interpretations about citations as this is an automated procedure. Please refer to the style manuals in the Citation Source Information area for clarifications.