1 Introduction

Research and development of imaging systems can be looked at from two different perspectives: (a) the purpose of image acquisition and (b) the physical principles and technological aspects of the system. For instance, in medical imaging, new innovations are associated either with the radiographer’s option and assessment of a particular patient examination for validate diagnosis or with the physical and technological factors that affect the imaging chain and contribute to image formation of improved quality [1]. Regarding the second point of view, one crucial step of the so-called “image chain approach” that lead to the final output (i.e., the image) is the fidelity of the information transfer processes [2, 3]. A variety of imaging techniques with tremendous potential of applications use the branch of light transfer mechanisms with purpose to construct high-performance displays and devices in the visible portion of the electromagnetic spectrum [4,5,6,7,8,9,10]. More specifically, intermediate step of the imaging system involves the behavior and properties of light, including its interactions with matter. There are cases where the state of matter (either organic or inorganic) is found in granular structure, that is, as in the form of an ensemble of particles. In such powder materials, subject of interest and examination is the trajectories of light ray tracks, the type of light beam interactions with the particles and the overall optical transmission, reflection and diffusion.

This realm of opportunity for knowledge discovery in imaging information and technology can be still thought of a Pandora’s Box since comprehensive quantitative and qualitative understanding is lacking and experimental modalities are extremely costly for such demands. On the other hand, the introduction of computational techniques, the so-called Monte Carlo methods [11], and their widespread use [12, 13], on radiation transport simulations over the last 50 years tender them very promising to solve problems that might be deterministic in principle, however, is difficult or impossible to use other approaches. In particular, the advantage of Monte Carlo method to perform experiments that would be otherwise impossible could be proved crucial for the enhancement of research curiosity which in turn may lead to spectacular scientific discoveries. In this paper, LIGHTAWE Monte Carlo simulation tool is introduced and presented with purpose to insight and further enlighten the study of light spread in powder materials for either research or educational applications. The algorithms of LIGHTAWE are based on Mie scattering theory and Henyey-Greenstein distribution [14,15,16,17]. The main issues of LIGHTAWE (design and capabilities) are analytically addressed and described below in terms of the: (i) physics embedded, (ii) treatment of the software, (iii) input data contents (iv) simulation options, (v) output results, (vi) advantages and benefits and (vii) disadvantages and limitations.

2 Materials and methods

The LIGHTAWE Monte Carlo simulation tool (software as well as corresponding support—if required) is sent to the applicant via e-mail. The main components are briefly presented below including the: (a) physics, and (b) treatment of LIGHTAWE Monte Carlo software.

2.1 The physics of LIGHTAWE

The purpose of LIGHTAWE is to provide optical diffusion studies in granular materials. The powder material was considered as an ensemble of uniformly distributed spherical particles glued together with a binding material and coated in three-dimensional layer. Light quanta are generated and thereafter diffused within the material. Light attenuation is described through light ray interactions (scattering and absorption) with the particles which play the role of “optical scatterers” within the granular structure. A light photon history is considered to start within the phosphor layer with the coordinates of the initial position and the initial direction angles (polar and azimuthal) determined by an isotropic distribution. Thereafter, the intrinsic processes of light propagation are summarized in three stages: (i) first stage: the light photon travels a free path length and afterwards interacts with a phosphor particle, (ii) second stage: the light photons is either absorbed or scattered and finally (iii) third stage: the trajectory of the light photon is terminated (in case of absorption) or the direction of the light photon is changed (in case of scattering). The mathematical expressions of the light quanta interaction mechanisms are analytically provided in a previous article (Appendix B of Ref. [18]). In addition, mathematical analysis of the simulation algorithms requires the evaluation of three optical parameters which correspond to the aforementioned stages: (a) the light extinction coefficient, mext and (b) the anisotropy scattering factor, g and (c) the percentage light absorption probability p. Their evaluation is carried out within the framework of Mie scattering theory and Henyey-Greenstein distribution, as analytically provided in a previous article (Appendix A of Ref. [18]).

2.2 The treatment of LIGHTAWE

LIGHTAWE has been developed in MATLAB environment and includes a user-friendly guide in the command window divided in two branches: (a) The input data of the desired simulation and (b) The output results of the executable simulation.

2.2.1 The input data of LIGHTAWE

The input data required to feed the software of LIGHTAWE are summarized in Table 1. Initially, the user browses for the folder of the code in the MATLAB platform, thereafter the name LIGHTAWE is typed in the command window and the execution of the simulation starts. Basic required condition for the execution of proposed simulations is the Mie size parameter (Table 1) to be more than 0.1 and less than 100 (the so-called “Mie regime”). In such case, the following data are asked from the user: (i) Layer settings: x dimension, y dimension, thickness and number of pixels, (ii) Structural properties: Particle diameter and Packing density, (iii) Optical properties: light wavelength, particle refractive index (real part), particle refractive index (imaginary part), binder refractive index. The numerical values of the aforementioned parameters, provided in Table 1, correspond to representative typical values, however, are recommended (suggestive) for the decision of user’s choice (apart from the X-ray energy range which is fixed). A point worth commenting is that the selection of particular parameters affect correspondingly the computation time.

Table 1 Table summarizes the customization of LIGHTAWE Monte Carlo software

2.2.2 The simulation options of LIGHTAWE

After inserting the input data described above, the user sets the number of the light photons used in the proposed simulation. Thereafter, there are two main options of simulations embedded in LIGHTAWE: (a) Fixed light point source (i.e., fixed depth of light photon generation within the layer) and (b) Distribution of light sources obtained from X-ray attenuation (i.e., variable depth of optical photon generation within the layer taken from the penetration of an X-ray beam of particular energy within a specific phosphor material). The first case examines in general the light spread in powder materials (including phosphors) while the second case examines the light spread in specific powder phosphor materials. Therefore, the first case requires the percentage depth with respect to layer thickness, while the second one, the determination of the X-ray energy (10–100 keV) as well as the chemical compound and the density of the phosphor material.

Regarding the second case, LIGHTAWE includes 62 different chemical compounds with their corresponding density, listed in Table 2. All materials are considered to be in powder form although most of them are commonly and commercially found in other structural forms (e.g., crystal, ceramic, etc.). However, advanced techniques in chemical synthesis methods over the past decade (e.g., chemical vapour deposition, microemulsion route, spray pyrolysis, co-precipitation, sol–gel combustion synthesis, etc.) could replace existing forms of phosphors and give a boost on a new realm of opportunity in granular phosphor development [19] including also powders at submicron and nano scales, even down to 10 nm since in lower sizes a particle size-dependent dielectric function should be considered (usually assuming a Drude–Sommerfeld model) due to the lattice strain effects [20]. A characteristic example is the cerium doped lutetium orthosilicate—Lu2SiO5:Ce (LSO) fluorescent material which was initially introduced as a single-crystal scintillator [21] but later was also fabricated in powder coating. Table 2 also provides the probability of photoelectric effect for the two limiting values of X-ray energy (10 keV and 100 keV) to show the domination of photoelectric effect over the scattering (Compton and Rayleigh) phenomena which have been excluded from LIGHTAWE. To make the code easier and faster, X-ray photons considered to follow only photoelectric absorption and the X-ray energy was considered to be locally absorbed in the interaction site excluding also the emission of fluorescence X-rays (K X-rays). However, relative additional information of the K X-rays effect is provided in Table 2, such as: (i) the probability of K X-rays production though the fluorescence yield ωK of the heaviest element, (ii) the spread of K X-rays within the material through the mean path length of X-rays based on their corresponding energy.

Table 2 List of phosphor materials included in LIGHTAWE

2.2.3 The output results of LIGHTAWE

The output results of LIGHTAWE are summarized in Table 1. The optical parameters, mext, g and p (%), used to simulate the optical tracks (see Sect. 2.2.1) are provided to the user as output results in the command window. After the termination of the simulation, command window also shows the computation time required to run the proposed simulation and an output figure is observed. The figure illustrates four separate subplots of the following information: (i) the light performance which contains: (a) the percentage of light photons reflected at the upper side of the layer (the back side of the layer also called irradiated side in case of X-ray penetration) (b) the percentage of light photons transmitted at the underside of the layer (the front side of the layer also called non-irradiated side in case of X-ray penetration), and (c) the percentage of light photons absorbed within the material, (ii) the distribution of light photons per depth of interaction within the layer, (iii) the Line Spread Function (LSF) for reflection and transmission mode and (iv) the Modulation Transfer Function (MTF) for reflection and transmission mode as well as the so-called pixel-MTF due to the pixel size. The mathematical evaluation of LSF and MTF are analytically provided in a previous article (Appendix C of Ref. [18]). After the execution of each simulation, two additional files have been created within the folder of the code. The first one opens with MATLAB and concerns the illustration of the figure and the second one opens with notepad and records all the setting parameters involved in the simulation. In this manuscript, a specific simulation example of LIGHTAWE is presented in Appendix A (brief physics) and Appendix B (interface). The computation time corresponds to a single computer of i5 CPU 3.47 GHz processor and 4.00 GB RAM.

3 Discussion

3.1 LIGHTAWE advantages and benefits

LIGHTAWE has been developed to perform dedicated Monte Carlo simulations of light spread in powder materials. An advantage of LIGHTAWE for optical diffusion studies is the separation of two different branches: (i) the study of light spread within a granular layer based only on its structural and optical properties, (ii) the examination of particular powder phosphor materials taking into account the depth of the X-ray penetration. The above options make LIGHTAWE an available and useful tool for a variety of instrumentations which incorporate granular structured materials, such as medical and storage phosphor imaging, radioluminescent and fluorescence sensing, detecting tools of biological structures, and phosphor-based white LED devices. The performance of optical diffusion could also enhance research on particle characterization methods, microscopy techniques, homeland security as well as national defense applications and finally could have an impact on several scientific fields including chemical, energy, optoelectronic and space industries.

The investigation of optical diffusion can be thought of a Pandora’s Box since comprehensive quantitative and qualitative understanding is lacking and experimental set-ups are extremely costly for such demands. However, the option of LIGHTAWE to alter a set of parameters (listed in Table 1) and perform a countless number of probable and comparable simulations, can insight and further enlighten the research of light spread performance. In addition, based on the Monte Carlo methodology, LIGHTAWE can overcome cumbersome analytical modelling, inconvenience and fussiness [22] and can take advantage of computer science to perform experiments that would be otherwise impossible (i.e., the capability to design, evaluate and optimize “virtual” experimental set-ups of “zero cost” or with “low risk” actions) enhancing curiosity-driven future research [23].

An objective disadvantage of Monte Carlo packages is the lack of making user-friendly software with the result the corresponding difficulty of the users to treat the structure of the code. Ιn academic institutions, the majority of PhD students need particular training on Monte Carlo packages by more experienced researchers or they are called to attend particular workshops [24] to adapt to the setting parameters demands of ‘black box’ simulation tools. The ease to use treatment of LIGHTAWE is one of its major advantages and can also be a useful computational tool for educational purposes in academic institutions. The study of light spread under the variability of several parameters offers pedagogic ways of learning optical diffusion in powder structures and also provides important information about statistical phenomena that would be impossible to assess otherwise.

3.2 LIGHTAWE disadvantages and limitations

Due to the programming algorithms that rely on repeated random sampling to obtain numerical results and reproduce stochastic processes statistically, high computation time is required for precision achievement. Like in most Monte Carlo codes and packages, LIGHTAWE depends on the computation time via the number of light photons and the corresponding simulation of long light tracks. Particular parameters increase dramatically the trajectories of light photons within the material, such as: (i) the increase of the layer thickness, (ii) the increase of the packing density, which expresses the spatial distribution of phosphor particles within the phosphor layer, (iii) the size of the particle diameter (mainly in the submicron scale). However, acceleration of the simulation runs can be accomplished by the availability of advanced calculating tools (e.g., clusters or powerful CPUs). Of course, Monte Carlo is an average method, i.e., the average expectation of one observable is computed, however, this approach is fine if the system is ergodic [25].

LIGHTAWE provides a series of capabilities on studying the optical diffusion, however, light propagation modeling is subject of several limitations. The investigation of light spread in real powder structures is limited to the considerations of X-ray and light beam characteristics, such as (i) the absence of X-ray scattering, K X-rays and Auger electrons, polychromatic light photons, reflection at the boundaries, and absorbing dyes incorporation. The modelling of light spread is based on specific methodology (Mie-scattering algorithms) and the accuracy is related to Riccati–Bessel functions. The assumption of spherical particles in contrast to arbitrary sized and shaped particles in real structures is also an issue worth commenting.

The validity of the present computational program has been provided in terms of: (a) the algorithms applied for the sampling of physical parameters, such as (i) the free path length, (ii) the optical attenuation (scattering and absorption) coefficients, and (iii) the scattering angles, [26] (b) the absorption and scattering efficiency factors and the complex elements of Mueller scattering matrix [26, 27] (c) the prediction and comparison of the optical parameters (light extinction coefficient mext, anisotropy factor g, probability of light absorption p) with other Mie calculators [28] for a variety of grain sizes [29]. Particular comparisons with experimental data have also been carried out for Gd2O2S:Tb phosphor material [26].

However, matter of fact, most of the times the construction of the real powder layers has remained trade secrets from the manufacturers and comparison with experimental measurements (apart from the weakness of different experimental set-ups to re-produce identical results for similar samples) is always subject of various types of uncertainties on the material synthesis, development and construction, such as: (i) the precise concentration of activator dopant, (ii) the type of the binding material and the incorporation of unknown additional substances (e.g., absorbing dyes), (iii) the exact particle size and shape, etc.

4 Appendix A: brief physics of the simulation example

The geometry of the simulation model considers a phosphor layer modeled as a three-dimensional powder material consisting of uniformly distributed particles (phosphor grains of equal size) of Gd2O2S luminescent material (case 27 of the list of materials) embedded within a binding medium (Na2SiO3). The geometry of the layer contains (a) phosphor dimensions: (i) surface dimensions: 1 cm (length) and 1 cm (width), (ii) number of pixels of surface area: 127 and (iii) layer thickness: 200 μm; (b) structural properties: (i) density: 7.3 g/cm3, (ii) packing density: 50%, and (iii) particle size: 7 μm, (c) optical properties: (i) light wavelength: 545 nm, (ii) refractive index of the phosphor grains: (real part: 2.3, imaginary part: 10−5), (iii) refractive index of the surrounding medium: 1.35. The phosphor layer surface was assumed to be irradiated by a pencil monoenergetic X-ray beam with energy 20 keV. This energy corresponds to mass attenuation coefficient 36.88 cm2/g for Gd2O2S and determines the distribution of the X-ray photon absorbed (i.e., the interaction sites) and, therefore, the distribution of light photons produced (106 light photons were chosen) per depth of interaction within the layer. Τhe Monte Carlo simulation involves the following steps:

4.1 Step A: X-ray attenuation

To simulate the X-ray transport within the phosphor layer, the model initially determines the free path length \(({\text{fpl}})\) of each X-ray quantum of energy \(E\), according to the following expression:

$${\text{fpl}} = \frac{1}{{\mu (E)\,\rho \,\rho_{P} }}\ln R$$
(1)

where \(\mu (E)\) is the mass attenuation coefficient of the phosphor material, \(\rho\) is the bulk density, and \(\rho_{P}\) is the packing density.

4.2 Step B: X-ray to light conversion and diffusion

For each X-ray photon interaction event leading to energy deposition, light photons are produced following an isotropic spatial distribution. Αfter their creation, light photons are transmitted through material towards the layer surfaces according to the following stages:

4.2.1 First stage: light travel until interaction

Light photon travels a free path length and afterwards interacts with a phosphor particle. This distance determined according to the following equation:

$${\text{fpl}} = \frac{1}{{m_{\text{ext}} }}\ln R$$
(2)

where \(R\) is a random number uniformly distributed in the interval (0, l] and mext is the Mie light extinction coefficient which is computed by the following formula:

$$m_{\text{ext}} = V_{\text{d}} AQ_{\text{ext}}$$
(3)

where \(V_{\text{d}}\) is the volume density of the phosphor material,\(A\) is the geometrical cross-section of the grain and \(Q_{\text{ext}}\) is the extinction efficiency factors. For the presented geometry, the mext coefficient was evaluated equal to 0.216 μm−1.

4.2.2 Second stage: light interaction

Light photon is either absorbed or scattered. At the site of light photon interaction, the type of interaction is expressed by the probability of light absorption p. This probability is calculated using the Mie light absorption and scattering coefficients mabs, msct, as follows:

$$p = \frac{{m_{\text{abs}} }}{{m_{\text{abs}} + m_{\text{sct}} }}$$
(4)

For a random number R, if R  p light photon is absorbed and the photon track within the material terminates, otherwise if R > p light photon is scattered and the photon track continues in a new direction. For the presented geometry, the p coefficient was evaluated equal to 0.08111%.

4.2.3 Third stage: light scattering

In case of scattering, the new direction of light photon is determined from the Henyey-Greenstein distribution, as given below:

$$\cos \theta = \frac{1}{2g}\left[ {1 + g^{2} - \left( {\frac{{1 - g^{2} }}{1 - g + 2gR}} \right)^{2} \;{\text{when}}\;g \ne 0} \right]$$
(5)

The free parameter \(g\) is the anisotropy factor, which implies isotropic distribution of light for g = 0 and sharply forward direction of light for g = 1. R is a random number uniformly distributed in the interval (0, 1]. The anisotropy factor was calculated using the following equation:

$$g = \frac{{\int\limits_{0}^{\pi } {2\pi S_{11} (\theta )\cos \theta \,\sin \theta \,d\theta } }}{{\int\limits_{0}^{\pi } {2\pi S_{11} (\theta )\sin \theta \,d\theta } }}$$
(6)

where S11(θ) is the first element of the so-called Mueller matrix, which implies that light extinction is independent of the light polarization state. For the presented geometry, the g factor was evaluated equal to 0.736. Results are illustrated in Fig. 1 which includes the following subplots: (i) the light performance, (ii) distribution of light photons per depth of interaction within the layer, (iii) LSF for reflection and transmission mode and (iv) MTF for reflection and transmission mode as well as the so-called pixel-MTF due to the pixel size effect.

Fig. 1
figure 1

Figure illustrates four separate subplots of the: (i) light performance which contains: a the percentage of light photons reflected at the upper side of the layer, b the percentage of light photons transmitted at the underside of the layer, and c the percentage of light photons absorbed within the material, (ii) distribution of light photons per depth of interaction within the layer, (iii) LSF for reflection and transmission mode and (iv) MTF for reflection and transmission mode as well as the so-called pixel-MTF due to the pixel size effect. The setting parameters are provided in the Appendix A and Appendix B sections

5 Appendix B: interface of the simulation example

figure a
figure b
figure c