1. Verification method of Monte Carlo codes for transport processes with arbitrary accuracy
- Author
-
Angelo Sassaroli, Lorenzo Fini, Stefano Cavalieri, Fabrizio Martelli, and Federico Tommasi
- Subjects
Multidisciplinary ,Uniform distribution (continuous) ,Scattering ,Computer science ,Mathematics and computing ,Science ,Physics ,Monte Carlo method ,Scalar (physics) ,Expected value ,Models, Theoretical ,Random walk ,Average path length ,Article ,Path length ,Optics and photonics ,Medicine ,Humans ,Statistical physics ,Monte Carlo Method ,Algorithms - Abstract
In this work, we present a robust and powerful method for the verification, with arbitrary accuracy, of Monte Carlo codes for simulating random walks in complex media. Such random walks are typical of photon propagation in turbid media, scattering of particles, i.e., neutrons in a nuclear reactor or animal/humans’ migration. Among the numerous applications, Monte Carlo method is also considered a gold standard for numerically “solving” the scalar radiative transport equation even in complex geometries and distributions of the optical properties. In this work, we apply the verification method to a Monte Carlo code which is a forward problem solver extensively used for typical applications in the field of tissue optics. The method is based on the well-known law of average path length invariance when the entrance of the entities/particles in a medium obeys to a simple cosine law, i.e., Lambertian entrance, and annihilation of particles inside the medium is absent. By using this law we achieve two important points: (1) the invariance of the average path length guarantees that the expected value is known regardless of the complexity of the medium; (2) the accuracy of a Monte Carlo code can be assessed by simple statistical tests. We will show that we can reach an arbitrary accuracy of the estimated average pathlength as the number of simulated trajectories increases. The method can be applied in complete generality versus the scattering and geometrical properties of the medium, as well as in presence of refractive index mismatches in the optical case. In particular, this verification method is reliable to detect inaccuracies in the treatment of boundaries of finite media. The results presented in this paper, obtained by a standard computer machine, show a verification of our Monte Carlo code up to the sixth decimal digit. We discuss how this method can provide a fundamental tool for the verification of Monte Carlo codes in the geometry of interest, without resorting to simpler geometries and uniform distribution of the scattering properties.
- Published
- 2021