<filename>monte_carlo/helpers/analyticalvalues.py
# -*- coding: utf-8 -*-
"""
Contains all paremeters used to determine the analytical solution.
"""

class analyticalValues:
    
    def __init__(self, r, mua):
    
        self.g = 0.8
        self.muc = 10.
        self.mus = self.muc / (1 - self.g)
            
        # The refractive indices.
        self.nin = 1.
        self.nuit = 1.
        self.n = self.nin / self.nuit
        
        # All parameters used in calculation
        self.ueff = (3 * mua * (mua + self.muc)) ** 0.5
        self.rid = -1.44 * self.n ** -2 + 0.71 * self.n ** -1 + 0.67 + 0.0636 * self.n
        
        self.k = (1 + self.rid) / (1 - self.rid)
        self.D = (3 * (self.muc)) ** -1
            
        self.z0 = (self.muc) ** -1
        self.zb = 2 * self.k * self.D
        
        self.rho1 = (self.z0 ** 2 + r ** 2) ** 0.5
            
        self.rho2 = ((self.z0 + 2*self.zb) ** 2 + r**2) ** 0.5
<filename>monte_carlo/helpers/analyticalvalues.py
# -*- coding: utf-8 -*-
"""
Contains all paremeters used to determine the analytical solution.
"""

class analyticalValues:
    
    def __init__(self, r, mua):
    
        self.g = 0.8
        self.muc = 10.
        self.mus = self.muc / (1 - self.g)
            
        # The refractive indices.
        self.nin = 1.
        self.nuit = 1.
        self.n = self.nin / self.nuit
        
        # All parameters used in calculation
        self.ueff = (3 * mua * (mua + self.muc)) ** 0.5
        self.rid = -1.44 * self.n ** -2 + 0.71 * self.n ** -1 + 0.67 + 0.0636 * self.n
        
        self.k = (1 + self.rid) / (1 - self.rid)
        self.D = (3 * (self.muc)) ** -1
            
        self.z0 = (self.muc) ** -1
        self.zb = 2 * self.k * self.D
        
        self.rho1 = (self.z0 ** 2 + r ** 2) ** 0.5
            
        self.rho2 = ((self.z0 + 2*self.zb) ** 2 + r**2) ** 0.5
# -*- coding: utf-8 -*- Contains all paremeters used to determine the analytical solution. # The refractive indices. # All parameters used in calculation