ECE532 Biomedical Optics
© 1998 Steven L. Jacques, Scott A. Prahl
Oregon Graduate Institute
LECTURE:
Introduction
Introduction
Sampling of probability density functions
Example of sampling: a Gaussian laser beam profile
Time-resolved Monte Carlo simulation
Introduction
Relative concentration and fluence rate
Separation of variables
"trmc.c", time-resolved Monte Carlo
Definitions and variables
User settings of variables
Initialize
Run
Launch photon
Hop/Drop photon to new position
Spin photon into new trajectory (scattering)
Check if photon is still ALIVE
Save results into output file, "trmc.out"
Example output figure of "trmc.out"
Steady-state Monte Carlo simulation
A minimal Monte Carlo program: mc321.c
Introduction
Header statements
Definitions of variables and arrays
User settings
Launching photon
Moving a photon through tissue
Photon hops to new position
Photon drops some photon weight (absorption)
Photon spins into new trajectory (scattering)
Terminate a photon by "roulette"
Save bin arrays as output file
Example output figure
LAB:
Monte Carlo simulations in computer lab
back to Course ECE532
|
back to Biomedical Optics series
|
Home
.