Monte Carlo Panel - VirtualPhotonics/Vts.Gui.Wpf GitHub Wiki

Monte Carlo Panel

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:

  1. Number of Photons: this specifies the number of photons that will be launched from the designated source definition.
  2. 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.
  3. 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.
  4. 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.
  5. Phase Function Type: Henyey Greenstein is typically used in biomedical optics.
  6. 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).
  7. 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.
  8. Clicking Cancel will interrupt an execution.
  9. Clicking Save Simulation Results will save the results to a user-specified location.