ECE532 Biomedical Optics
© 1998 Steven L. Jacques, Scott A. Prahl
Oregon Graduate Institute

Time-resolved Monte Carlo

Run the launch/propagation of photons

The major core of the program is a DO-WHILE loop which launches and propagates photons (Nphotons). The details of the loop are discussed in the following sections. The front and back ends of the RUN DO-WHILE loop are shown here.

/**** RUN
*   RUN loop will launch N photons, initializing each one before propagation.
do {

  *  Movement of each photon occurs within this RUN DO-WHILE loop. 
  *  Details of loop are discussed in following sections.

  /* If photon dead, then launch new photon. */
} /* end RUN */
while (i_photon < Nphotons);

NextMonte Carlo