| ECE532 Biomedical Optics
© 1998
Steven L. Jacques, Scott A. Prahl
Oregon Graduate Institute |
Steady-State Monte Carlo
Variables for "mc321.c"
Some parameters require INITIALIZATION before the program can run:
- The photon counter is preset to zero (i_photon).
- The random number generator is initialized (InitRandomGen).
- The arrays for collecting data are cleared:
- Csph[0..100] are the bins to collect photon weight in spherical coordinates.
- Ccyl[0..100] are the bins to collect photon weight in cylindrical coordinates.
- Cpla[0..100] are the bins to collect photon weight in planar coordinates.
/**** INITIALIZATIONS
*****/
i_photon = 0;
InitRandomGen;
for (ir=0; ir<=NR; ir++) {
Csph[ir] = 0;
Ccyl[ir] = 0;
Cpla[ir] = 0;
}
to next page |
Chapter 4 |
Course |
Home