xopto.mcbase.mcrmax module

class RmaxConst(rmax: float = inf)[source]

Bases: object

Simple constant simulation radius constructor. :param rmax: Maximum simulation radius :type rmax: float

class RmaxDiffusion(nmedium: float, noutside: float, acceptance: float, rmin: float = 0.01, dr: float = 0.005, rtol: float = 0.001)[source]

Bases: object

Initiates the diffusion approximation solution for spatially resolved reflectance, which is then used to calculate minimal acceptable radius rmin beyond which the acquired residual reflectance represents less than rtol of the total acquired reflectance.

Parameters
  • nmedium (float) – Refractive index of the medium.

  • noutside (float) – Refractive index above the medium.

  • acceptance (float) – Acceptance angle of the detector (radians).

  • rmin (float) – Lowest value of the minimal acceptable radius (m) (includes dr) to be used in the Monte Carlo simulations for different optical properties (i.e., for all of the cases the simulation radius will be equal or greater than rmin).

  • dr (float) – Iteration step for finding minimal acceptable radius (m).

  • rtol (float) – Maximum acceptable amount of residual to total reflectance calculated at the minimal acceptable radius.

R_MAX = 0.5
STEPS = 100000