Monte Carlo Panel - VirtualPhotonics/Vts.Gui.Wpf GitHub Wiki
Monte Carlo Panel
The Monte Carlo panel enables the user to run a conventional Monte Carlo simulation. The interface has an option to download prototype input files which are text files and can be edited. Then a specific input file can be loaded. Certain aspects of the infile can be modified at the user interface:
- Number of Photons: this specifies the number of photons that will be launched from the designated source definition.
- Track Statistics: checking this box will generate an output file, statistics.txt, that includes the total number of photons that exited the top or bottom of the tissue, the number of photons absorbed, etc.
- Seed: this number seeds the random number generator used during the simulation. Setting this value to -1 will generate a new random number sequence with every run. Setting this value to 0 will generate the same random number sequence with every run.
- Absorption Weighting Type: Selecting Analog will cause the photons pathlength to be sampled using a pdf based on mut and photons will be terminated due to the probability of absorption. Using Discrete, photon pathlenths are sampled using a pdf based on mut but instead of termination by absorption, the photon weight is modified at each collision, in an unbiased manner, to account for absorption. Using Continuous, photon pathlengths are sampled using a pdf based on mus but instead of termination by absorption, the photon weight is modified continuously along its path.
- Phase Function Type: Henyey Greenstein is typically used in biomedical optics.
- Tissue Input: In the scroll-able rectangle, the user is able to modify the tissue optical properties (Layer 1). Typically the simulation assumes Air above the tissue (Layer 0) and Air below the tissue (Layer 2).
- Clicking Run Simulation button will start the simulation. While the simulation is running, the textbox at the bottom of the interface will show the percentage complete.
- Clicking Cancel will interrupt an execution.
- Clicking Save Simulation Results will save the results to a user-specified location.