A numerical toy model of Langevin dynamics provides real-time visualization of colloidal microdroplet evaporation G. Derkachov, T. Jakubczyk, S. Alikhanzadeh-Arani, T. Wojciechowski, D. Jakubczyk Abstract We have developed and tested a simplified but versatile numerical model of nanoparticles’ aggregation using Langevin dynamics. The model is particularly capable of simulating aggregation in an evaporating (or condensing) microdroplet. It runs on a graphics processing unit (GPU), which makes it sufficiently fast for real-time conceptualization tasks. We have verified the results of modeling against the findings from two types of experiments we conducted in electrodynamic traps. Firstly, our model helped us to elucidate the phenomenon of scattering ‘revival’, often observed during the evaporation of composite microdroplets. Further on, we were able to mimic our experiments, in which the microdroplets were dried up to form nanoparticle (NP) aggregates, and then soft-landed. Thus we could compare model predictions with SEM imaging. The model was tested for up to 2.5 × 10 5 2.5\times 10^{5} nanoparticles of several coexisting types. Several types of interactions can be accounted for: inter-particle: Lennard-Jones and Coulomb; external: dispersion medium viscosity, centrifugal force, gravity, surface tension, and interface movement. Brownian motion of nanoparticles can be freely controlled. The core program is accompanied by scripts extracting statistical NP aggregates properties in post-processing – fractal dimension and radial distribution functions. The codes are made available in public repositories. Several diverse evolution scenarios are presented. Journal: 1 Introduction It has been well-known that atmospheric models are multi-scale [ 1 , 2 ] In particular, of course, models of clouds are such and require input at the micro-scale [ 3 , 4 ] . For instance, the energy transfer in a single droplet is fundamental to the energy flows in the cloud, and the optical properties of a single microdroplet strongly influence the optical properties of the cloud (like albedo). Also, the content of solid nano- and microparticles in atmospheric droplets can be significant and can have a fundamental impact on the microscale properties and processes, which are inherited at higher scales [ 5 ] . Atmospheric droplets can acquire solid particles via diverse processes, like nucleation scavenging and/or impaction scavenging (see e.g. [ 3 ] ). In a clean environment, the solid particles are rather sparse in the atmospheric droplets. Still, fog droplets in dusty or polluted environments can be rich in solid nano- and microparticles [ 6 , 7 , 8 ] . In order to properly parametrize the microscopic properties of the larger system, a good understanding of its micro-scale processes and properties is required. Thus, there is a demand for micro-scale modelling on the one hand, and for fast and accurate remote diagnostic methods operating at micro-scale. Optical methods seem to suit very well and indeed they span various applications, from atmospheric physics and chemistry [ 9 , 10 , 11 , 12 ] through ecological issues [ 13 ] , to industrial processes [ 14 , 15 , 16 ] . There is also a wide range of microphysical modelling methods (which we discuss later on). Our group focuses on developing methods for the optical characterization of evaporating microdroplets containing diverse nanoparticles (NPs). The task, if approached straightforwardly, would involve solving the inverse (scattering) problem, which is ill-conditioned, ambiguous, and generally hopelessly complex. It is well-established that the presence of dispersed phase [ 17 , 18 ] , especially the structures (aggregates) it forms within the microdroplet volume, significantly influences both its optical properties and the evaporation process. It would then be constructive to know something about possible internal structures and scenarios of their evolution. Even though theories and models of evaporation and light scattering have been developed for over a century, our understanding of such complex systems is limited. As far as the evaporation thermodynamics of a microdroplet of suspension is concerned, several questions persist. For instance, what are the limits of applicability of the kinetic and the continuous flow theories for the given stage of a complex microdroplet evolution (compare [ 19 ] for pure liquid microdroplets)? As the internal structures grow, they reduce the volume accessible to liquid molecules and the open surface area available for evaporation. What is the internal structures’ influence on the diffusion process of liquid molecules to the microdroplet’s surface? In (our) experimental investigations of evaporating microdroplets of suspension, an irreplaceable role is played by traps – electrodynamic or acoustic, which keep the microdroplets levitating, preventing the influence of substrates or suspension threads. We infer the parameters of an evaporating microdroplet from the properties of scattered coherent light and by electrostatic weighting. Estimating the microdroplet size from static light scattering involves comparing the angle-dependent intensity of scattered light with Mie theory predictions [ 20 ] . However, this is possible only at low concentrations of NPs, since the theory assumes a homogeneous sphere. The dynamics of internal and surface structure formation could be inferred using dynamic light scattering or speckle movement analysis. However, capturing the image of the internal/surface structure in a levitating microdroplet is impossible so far. SEM images are only obtainable at the final stage of evolution after drying up the microdroplet and soft-landing it on the substrate [ 21 , 22 ] . Again, it becomes obvious that a comprehensive understanding of the entire process necessitates some insights into the dynamics of the nanoparticle aggregation process, which an aggregation model can provide. 1.1 Motivation A specific motivation is associated with the challenging scenarios of scattered light intensity evolution that we often encounter in our experiments with microdroplets of suspension. Two examples are shown in Fig. 1 . After an initial decrease in the intensity of the scattered light, which roughly follows a reduction in the geometric cross-section of the microdroplet, a very significant ‘revival’ occurs, associated with the appearance of the suspended phase on the surface of the microdroplet. Proper handling of such cases is important for the accurate prediction of albedo [ 23 , 5 , 24 ] and refractive properties of the atmosphere [ 25 , 26 , 27 ] , as well as application of the lidar equation (see e.g.: [ 28 , 29 , 30 ] ). It is closely related to the well-known radar echo artefact caused by the chaff cloud (see e.g. [ 31 ] ). The solid particle content in the microdroplet can be significant, as high Using just the droplet cross-section, calculated e.g. with Mie theory for constant (effective) parameters, to estimate the scattering of light, would severely underestimate its intensity. As the first approximation, it can be augmented with the formalism proposed e.g. in [ 17 ] (keeping in mind that it was devised for fractal aggregates in free space rather than droplets acting as spherical resonators). In the far field, the total scattered light intensity I_{\rm scat} would come then from the light scattered by an equivalent homogeneous sphere with effective parameters I_{\rm Mie} and the light scattered coherently from individual NPs: I_{\rm scat}\simeq I_{\rm Mie}+\alpha N_{\rm surf}^{2}\mbox{ ,} (1) where N_{\rm surf} is the total number of NPs at the droplet surface (where the light field is most intense), and the factor \alpha may depend, among others, on the droplet and NP radii and the NP structure’s mass and surface fractal dimensions. N_{\rm surf} and (eventually) the corresponding fractal dimensions must be provided by a model. Since the scattering revival phenomenon seems quite general, we expect that it is caused by substantial changes in the composite droplet structure, rather than by a minute structure alteration. Accordingly, a simple and robust model should be sufficient initially. Even a simple numerical model serves as a virtual laboratory, expediting hypothesis testing and providing rapid feedback on method viability. In this work, we investigate the applicability of a fairly simple numerical ’toy’ model of nanoparticle aggregation in an evaporating microdroplet, that we developed. A ballpark elucidation of the intensity revival phenomenon, using Eqn. 1 together with the model, is presented in Fig. 1 . We were also able to visualize different scenarios of microdroplet evolution beyond the specific motivation presented in this section. Figure 1: Two cases of scattering ‘revival’ from single evaporating microdroplets of suspension in an electrodynamic trap: panel (a) – 450-nm-diameter SiO 2 NPs in dimethyl sulfoxide (DMSO); panel (b) – 200-nm-diameter polystyrene (PS) NPs in diethylene glycol (DEG). Red traces – experimental light intensity integrated over the field-of-view; green traces – corresponding modeling results obtained with Eqn. 1 . Radii evolutions are shown in corresponding insets: blue dots – experimental results obtained with optical method and electrostatic weighting (see [ 20 ] ); orange line – radius evolution used for Mie theory calculations and droplet evaporation modeling. 1.2 The requirements of the toy model The model needs to predict the trajectories of NPs over time, describing the dynamic process within evaporating/condensing microdroplets. In our experiments, the microdroplet size varies from about a hundred micrometers down to hundreds of nanometers, with the dispersed phase NPs being spheres ranging from \sim 10 nanometers to \sim 1 micrometer in diameter. These size ranges match those encountered in cloud and fog droplets quite well. However, NPs encountered in the atmosphere are obviously generally not spherical. Some atmospheric NPs, such as those composed of silica, acquire an electrical charge when mixed with water, causing them to repel each other. But, of course, their proximity causes strong attraction and bonding. Moreover, NPs interact with the microdroplet surface, unable to penetrate it due to surface tension forces. The microdroplet experiences Brownian motion as a whole, and each NP is influenced by Brownian forces. However, the movement of NPs is relatively slow (the whole process of drying up the microdroplet takes several minutes to hours) and hydrodynamic forces can be considered negligible. Under specific conditions, such as a strong electric field in the trap (creating a deep potential well), the Brownian motion of the entire microdroplet may be constrained to Brownian rotation, when trapping potential restricts microdroplet lateral movement but allows rotation. As a rough approximation, we characterize the average centrifugal force acting radially (in all directions) directly on each NP due to Brownian rotation, with a single scalar, which is (somewhat artificially) linked to an average scalar rotation speed. Thus, the movement of the NP is not transmitted from the Brownian rotation of the entire microdroplet through drag forces. Considering the density difference between the liquid and the nanoparticle material, gravitational/Archimedean forces must also be considered. 1.3 Selecting the nanoparticle aggregation scenario In the literature, models or numerical procedures capable of generating the final aggregate shape present at least two different approaches: one uses a purely "geometrical" approach to NPs and their trajectory and can be coded into a straightforward numerical algorithm capable of generating the aggregate without delving into the specifics of physical forces; the other relays on physical interactions and the NP’s position/trajectory is calculated from the proper force fields. The model of the first type can predict the final form of the aggregate but cannot predict the dynamics of its formation. The other is capable of both but is significantly more resource-demanding. In the first group of algorithms/models, we can include diffusion-limited aggregation (DLA) [ 32 , 33 ] , DLCA [ 34 , 35 ] , reaction-limited aggregation (RLA), and RLCA [ 36 ] . The second group is exemplified by molecular dynamics (MD) [ 37 ] , Brownian dynamics (BD) [ 38 ] and Langevin/Stokesian dynamics (LD) [ 39 ] , or computational fluid dynamics (CFD; e.g. lattice Boltzmann methods (LBM)) [ 40 ] , though the nomenclature is somewhat diffuse in this field. There is a multitude of available codes/packages implementing the above methods, in particular of the second group. Some packages ((like LAMMPS or OpenMM)) are more flexible regarding force field selection. Others help to set up the numerical experiment (Pizza.py, ParmEd) and have features like GUI, results visualization, etc. For our purposes, we need the model of the second kind, operating at nano- and microscale rather than at the molecular level. We’ve decided that a model based on Langevin dynamics would be most convenient for our task - the Langevin equation combines deterministic forces (potential energy gradients) with random forces representing thermal fluctuations. The simulation involves updating the position and velocity of the NP at each time step, incorporating the deterministic and stochastic components. Numerical integration methods, such as the Euler method, Verlet algorithm (and its derivatives like leapfrog integration), or more sophisticated schemes like the stochastic Runge-Kutta methods, can be employed to simulate the Langevin dynamics. The choice of integration method can impact the accuracy and stability of the simulation. It’s worth noting that the Langevin dynamics simulation is a computationally intensive process, and careful consideration should be given to the choice of the numerical method, time step, and simulation parameters to ensure accurate and meaningful results. When selecting a software vehicle for our toy model, we were aware that some of the advantages of the full-fledged LD would have to be sacrificed. 2 The toy model 2.1 The main features and concepts of the algorithm In the presented work, we adapted the solver from Nvidia [ 41 ] , which is optimized for parallel calculations on Nvidia GPUs. Though designed with much-simplified physics, it turned out to be fairly flexible in terms of the force field used, while it has an inherently built-in visualization feature, also with a simple GUI, which was very attractive for our applications. The current model builds on the experience gained from using our previous model written in Matlab/Simulink (compare e.g. [ 42 , 21 ] ; the code was published on GitHub [ 43 ] ). It must be kept in mind, that the presented model does not pretend to cover all aspects of physical reality – it is a conceptualisation tool to roughly test some hypotheses. The previous code helped us to understand the surface thermodynamics in evaporating microdroplets of suspension but had serious limitations (limited number and type of NPs, type of interactions, speed). In the current model, these limitations were significantly relaxed – the C++/nvc code running on GPU (Tesla K40) is several orders of magnitude faster while allowing for a few hundred thousand nanoparticles of several types. While following the evolution of a 20-micrometer droplet with 5000 NPs required days, in the case of the older code, it requires only several seconds with the newer one. It is thus perceived by the user as real-time. Several types of interactions are included and further can be easily added. As it turns out, such a model is also capable of handling many scenarios in bulk suspension, and possibly also the deposition of microdroplets/aggregates on the surface. It has been complemented with a set of Matlab scripts that allow extraction, in post-processing mode, such information as the evolution of the fractal dimension, the number of sub-aggregates, surface pressure, aggregate statistics, etc. The codes are made available in the public repository [ 44 ] . The current version of the code has provided us with the first insights into the ‘doughnut’ structure formation, which we sometimes (rarely) observed in our linear trap (see 8 below). In comparison to the original codes from Nvidia [ 45 , 41 ] , which are designed primarily for computer games, we’ve tried to implement more (but not entirely) rigorous physics. The model considers the NP system to be close to equilibrium. A given number of NPs with desired parameters (radius, mass, charge) are initially randomly distributed in a sphere – a microdroplet of a given (initial) radius. Several types of NPs can be used simultaneously. The radial non-equilibrated forces are introduced to the system by imposing the irreversibly moving surface of the evaporating droplet (gas-liquid interface) dragging up the NPs dispersed in evaporating liquid volume. The interaction of an NP with the surface (surface tension) was described as a spring with the equilibrium point at the distance of an NP radius from the surface (the equilibrium point can be easily changed in the code). The spring constant can be set separately for each NP type. The microdroplet evaporation/condensation proceeds following the radius-square-law [ 46 ] and the evaporation/condensation rate can be freely defined. It must be underlined here that the interaction of NPs with the surface and/or surface movement can be easily switched off to mimic the conditions of NPs self-assembly in the bulk liquid. Two inter-particle interaction types were accounted for (so far): the effective Lenard-Jones (LJ) potential and long-range electrostatic interactions. The interactions within each NP type and between types can be freely set. Both LJ and electrostatic interaction ranges were limited, but their values were not shifted. The gravitation and centrifugal force associated with the microdroplet rotation were also introduced. Further forces can be easily added to the code. There is also a selectable option of imposing Brownian NPs motion. It is obtained by adding a randomly directed vector, whose magnitude can be controlled, to the calculated velocity. Movements of each NP inside the evaporating microdroplet were simulated with the classical Newton’s equation of motion. The (numerical) stability of NPs collisions, which at finite time-step can yield non-physically high velocities, was taken care of by introducing a dissipative force in the form of non-physically high liquid viscosity, which however conforms to Stokes’ law. 2.2 The outline of the algorithm. The core algorithm’s main steps (loop) are as follows: (i) Arrange NPs into the cells (by second indexing), according to their position, to identify which are close to each other and can interact. In the described simulations, the interaction range was set to 4\left(r_{\rm NP(A)}+r_{\rm NP(B)}\right) , where r_{\rm NP(..)} are the radii of the colliding NPs (A and B). This range can be changed in the code. (ii) For NPs that are in the range of interaction potential (Lennard-Jones, Coulomb) calculate the forces. LJ and ‘pure’ Coulomb potential was truncated without shifting. (iii) Calculate the new microdroplet radius. (iv) For NPs that are in the range (-r_{\rm NP},r_{\rm NP}) from the droplet surface, calculate the forces and store them in the table. (v) Add forces of gravity and (effective) viscosity. Other forces of NP interactions with external/non-local fields (such as centrifugal force) are added here. (vi) Calculate the new velocity and position for all NPs. Brownian motion is emulated here by adding a random velocity vector (with a controlled magnitude). The notion of temperature is not included in the model, but the magnitude of the random velocity component (passed as a parameter) imposes it externally. The simulation results are displayed online and can also be recorded in a binary file for viewing and post-processing. The simulation can also be stopped and restarted with different parameters from the saved NPs configuration. Online previewing is used for preliminary hypotheses and parameters testing with a larger time-step, while in the proper numerical experiment, a fine time-step is used to reduce harmful numerical effects, while only every j th "frame" is recorded. 2.3 Verification of the model versus SEM images As mentioned above, we carried out a series of experiments in a linear quadrupole trap, in which microdroplets with NPs were dried to form dry NPs aggregates, and soft-landed (deposited on a substrate) at different stages of evolution (drying) [ 21 , 22 ] . In this work, we used only the SEM images of fully dried microdroplets, which retained their shape after soft-landing. Thus, we could unambiguously compare at least the final stage of evolution obtained from both the experiment and the model. Table 1: Main parameters of selected simulations. R_{0} is the initial microdroplet radius, A is the evaporation rate, \epsilon is the dispersion energy, \omega is the effective rotation rate, r_{\rm NP} is the NP’s radius. Fig. # R_{0} A \epsilon \omega r_{\rm NP} # of NPs NP charge \left[\mu{\rm m}\right] \left[\mu{\rm m/s}\right] [J] [rad/s] \left[\mu{\rm m}\right] [arb. u.] 1 20 0 0.023 1 0.5 10 000 0 3 20 0 0.023 0 0.5 \begin{array}[]{cc}10000\\ 10000\end{array} \begin{array}[]{cc}1\\ -1\end{array} 3 20 0 0.023 1 0.125 10 000 0 5 20 3.5 0.023 0 0.125 10 000 0 8 60 5 0.23\cdot\left[\begin{array}[]{cc}0.155&0.155\\ 0&1.26\end{array}\right] 1 \begin{array}[]{cc}0.25\\ 1.5\end{array} \begin{array}[]{cc}39500\\ 1500\end{array} 0 3 Microdroplet evolution analysis We’ve conducted a series of numerical experiments testing the model’s capabilities. The parameters of several of these discussed here, are given in Table 1 . It must be underlined that, as far as possible, the parameters corresponded to those encountered for the atmospheric droplets (aerosols), like microdroplet and NP radii and material densities, NPs number, and microdroplet rotation and evaporation rates, or were derived from the corresponding material properties, like LJ parameters. But simultaneously it must be admitted that NP charge and surface tension were rather arbitrarily chosen, while the viscosity of the host liquid was non-physical since it served as a numerically stabilising factor, as discussed in subsection 2.1 . The visualizations of results are presented in corresponding figures. As a result of the simulation, we obtain the temporal evolution of the NPs’ positions. For example, in Fig. 2 , we show raw visual results of the simulation, accompanied by the results of elementary post-processing, of the NP structure (aggregate) formation in a non-evaporating tumbling microdroplet of suspension. Three distinctive stages of evolution are shown: (a) early, (b) intermediate, and (c) late. In the right panel, a perspective view of the evolving microdroplet is shown, while in the left panel, the projection of the microdroplet surface onto a plane is visualized. The temporal evolution of the NPs’ positions provides a complete description of the aggregation dynamics. In this form, however, it is hardly informative, so a more comprehensible description is needed. Suitable numerical procedures were then constructed (MATLAB scripts) to obtain the desired statistical parameters of the microdroplet/aggregate evolution. Figure 2: Visualization of the formation of a shell of NPs in a microdroplet of suspension. Figure rows: a) early, b) intermediate, and c) late stage of the evolution respectively. Right panel: a perspective view of the evolving microdroplet. Left panel: projection of the microdroplet surface onto a plane. Blue circles/ellipses (circles elongated due to the projection) correspond to the NPs intersections with the microdroplet surface. Specific model parameters: The microdroplet wasn’t evaporating – had the constant radius R_{0}=20 \mu m, but underwent random Brownian rotations (tumbling) generating an (effective) isotropic centrifugal force, which would formally correspond to the angular frequency \omega = 1 rad/s. There were 10^{4} NPs with a radius of 500 nm. The NPs were electrically neutral and the NP-NP interaction was described by the Lennard-Jones potential. With the task of remote optical characterization of NP aggregates in mind, we chose the two most widely used complementary parameters that describe the state of an aggregate on global and local scales, respectively – fractal dimension [ 47 ] and radial distribution function (RDF) [ 48 ] . They were shown to correlate with the properties of the scattering images [ 49 , 50 ] . In particular, the counterpart of RDF in Fourier space – the structure factor, can be measured in scattering experiments. To extract the fractal dimension and the RDF from the position of NPs, we followed the procedure that was described in [ 47 , 51 ] . For convenience, here is a concise outline of the core concept. 3.1 Fractal dimension Fractal parameters are standard mathematical constructs for describing self-similar objects. In the case of real aggregates, we encounter notions of mass-fractal and surface-fractal. In the case of a mass-fractal, we can estimate the mass (or the number of elementary building blocks – primary particles – NPs in our case) of the aggregate, knowing the size of its bounding box and the space dimensionality. While the relationship between the mass and size of a solid is m\sim{d}^{3} , where d is the characteristic size of the solid, for a mass-fractal, it becomes m\sim{d_{\rm NP}}^{D_{\rm f}} , where d_{\rm NP} is the mean diameter of primary particles (NPs) and D_{\rm f} is the fractal dimension. If an aggregate consists of N identical spherical NPs of the diameter d_{\rm p} , we can link the number of nanoparticles N to the radius of gyration R_{\rm g} and obtain the so-called "fractal equation": N=k_{\rm f}\left(\frac{2R_{\rm g}}{d_{\rm NP}}\right)^{D_{\rm f}}\mbox{,} (2) R_{\rm g}=\sqrt{\frac{1}{N}\sum_{n=1}^{N}\left(\vec{r_{0}}-\vec{r_{n}}\right)^{2}}\mbox{ ,} (3) \vec{r_{0}}=\frac{1}{N}\sum_{n=1}^{N}\vec{r_{n}}\mbox{ ,} (4) where R_{\rm g} is measured from the center of mass \vec{r_{0}} , \vec{r_{n}} is the position of n th NP and k_{\rm f} is the fractal prefactor (structural coefficient) [ 52 ] . The value of this constant is widely debated, and different considerations yield values from 1 to \sim 6 . For an aggregate with a compact hexagonal structure, the value of k_{\rm f} can be determined as 1.593 (see e.g. [ 53 ] ). Since, in our system/simulation, the formation of such an aggregate is allowed, we used the above value of k_{\rm f} . In each simulation, we follow the evolution of a single aggregate of N NPs (in particular, from the moment when a single, droplet-filling aggregate is formed) – the shrinking surface of the evaporating droplet compresses the fractal aggregate and R_{\rm g} decreases for constant N . Since we know the number and position of participating NPs, we can solve the fractal equation for D_{\rm f} . As mentioned earlier, the light scattering on a fractal is linked to the above-considered parameters. For instance, for parameters encountered in atmospheric research (say, d_{\rm NP}=200 nm, light wavelength \lambda=500 nm), the second term of equation 1 can be expressed following [ 17 ] as: I_{\rm NPscat}(q)\propto N_{\rm surf}^{2}\left(qR_{\rm g}\right)^{-D_{\rm f}}\mbox{,} (5) where q=4\pi\sin(\Theta/2)/\lambda is the scattering wave vector and \Theta is the scattering angle. Thus, it is generally possible to infer the evolution of the fractal dimension of an NP aggregate by analyzing the evolution of the observed light scattering patterns, at least for a small free aggregate. The evolution of D_{\rm f} , in turn, provides some information on the structure of the aggregate under scrutiny. Studying the possible evolution of the fractal dimension is therefore of great interest. In Fig. 3 we show examples of NP aggregates of a mildly fractal structure: In the lower panel, there is an SEM image of an aggregate we obtained experimentally by slowly drying a microdroplet of SiO 2 NPs aqueous suspension with an addition of a surfactant (sodium dodecyl sulfate). In the upper panel, we present the simulation result of an aggregate formation in a non-evaporating droplet. The role of the surfactant was accounted for by modifying the interaction of NPs with the surface of the microdroplet only (a simplifying assumption). The temporal evolution of D_{\rm f} for such parameters is presented in Fig. 4 as the red curve. The blue and green curves in the figure also correspond to fairly realistic cases. In all three cases, the droplet was neither rotating nor evaporating, mimicking the bulk liquid’s self-assembly conditions. Such conditions occur in a microdroplet in equilibrium with its vapor in a stable (stationary) environment. In the presented simulation, 10^{4} NPs with a radius of 500 nm were used. The specific parameters were: (i) The red line – NP-NP interaction modeled with Lennard-Jones potential only – both the dispersion medium and dispersed phase were non-polar. (ii) The blue line – apart from LJ interaction, half of the NPs were charged positively and another half negatively – two types of NPs of the same size, both the dispersion medium and NPs were polar. (iii) The green line – LJ interaction, while all the NPs had the same charge – a single type of NPs, both the dispersion medium and NPs were polar. Figure 3: Examples of NP aggregates of mildly fractal structure. Lower panel – SEM image of an NP aggregate we obtained from drying a free microdroplet of an aqueous suspension of 100-nm-radius SiO 2 NPs with an addition of sodium dodecyl sulfate (100 mM initially) in a linear electrodynamic quadrupole trap, for 25 min. Upper panel – the result of the simulation for model parameters corresponding to the red curve in Fig. 4 and radial distribution functions in Fig. 5 . Figure 4: Examples of temporal evolutions of the fractal dimension of aggregates forming in a bulk liquid (mimicked by a stationary microdroplet remaining in equilibrium with its vapor; R_{0}=20 \mu m). 10^{4} NPs with 500-nm-radius were always used, while three sets of the model parameters were applied. The red line – the NP-NP interaction modeled with Lennard-Jones potential only. The blue line – apart from LJ interaction, half of the NPs were charged positively and another half – negatively. The green line – all the NPs had the same charge. It should be pointed out that when an aggregate immersed in an evaporating droplet is considered, the 2D (surface) fractal dimension (evolution) also becomes of interest. When the properties of light scattering on such a composite microdroplet are sought, the droplet must be perceived as an optical (spherical) cavity, which provides a non-trivial illumination to the immersed aggregate. Due to evaporation, a train of morphology-dependent resonances (MDRs) is encountered. When the resonance condition is satisfied, most of the energy of the electromagnetic field is concentrated close to the microdroplet surface [ 54 ] , especially when the condition for the so-called whispering gallery mode (WGM) is reached. It implies that the scattering of light by NPs in a microdroplet is often dominated by those lying closer to the surface. In consequence, it is mostly the surface structure of the (forming) aggregate that is reflected in scattering patterns. The concept of the surface-fractal is very similar to the mass-fractal and equations 2 - 4 hold at lower dimensionality. However, the specifics of 2D geometry on a sphere must be accounted for. 3.2 NPs distribution in the microdroplet Information provided by D_{f} (evolution) alone can sometimes be ambiguous. Thus, the other parameter that we considered – RDF – describes how the NPs concentration varies as the function of distance from the chosen particle [ 51 ] . It can be perceived as the probability of finding a particle pair separated by a distance r , normalized to a probability corresponding to a random distribution: g(r)=\sum_{i=1}^{N}\frac{\psi(r)_{i}/N}{(N-1)\delta V_{r}/V}\mbox{ ,} (6) where \psi(r)_{i}/N is the relative number of particles at a distance r from an i th ‘trial particle’ and \delta V_{r}/V is the ratio of an ‘infinitesimal’ volume at a distance r (i.e. a spherical shell of thickness \delta r ) to the total sample volume. The suspension is considered isotropic. It is worth mentioning that RDF provides even more rigorous information on the light scattered by an aggregate (RDF being the Fourier transform of the so-called structure factor): I_{\rm NPscat}(\vec{q})=N_{\rm surf}^{2}\int e^{i\vec{q}\cdot\vec{r}}g(r)d\vec{r}\mbox{ .} (7) Generally, RDF describes the properties of suspension in bulk. In the case of a droplet of suspension, the influence of the sample’s boundary should be considered and adequate normalization should be introduced. In the classical approach, the RDF function is averaged over the whole particle set (available volume) to get better statistics. In the case of an aggregate forming in the droplet, it is convenient to construct a normalized average NPs concentration as a function of the distance from the centre of the droplet r_{\odot} . We shall designate it by \overline{C}_{{\rm NPs}} : \overline{C}_{{\rm NPs}}(r_{\odot})=\frac{\psi(r_{\odot})/N}{\delta V_{r_{\odot}}/V}\mbox{ .} (8) Each of the introduced functions provides a somewhat different insight into the formation of the aggregate. 4 Further examples of simulation and post-processing results Below, we present several successful conceptualizations of suspension microdroplet evolution obtained by post-processing the results of simulations. The final stage of modelled evolution was compared against the SEM images of dry NPs aggregates that had been obtained from experiments as described in section 2.3 . All the presented results but the last one were obtained using 10^{4} NPs. The last one used 4.1\times 10^{4} NPs of two types. Apart from these, we performed several simulations with 2\times 10^{4} NPs. The results of those – movies, .bin, and parameters files – can be found in the data repository [ 55 ] . 4.0.1 Aggregation in bulk, non-polar liquid Figure 5: RDF functions’ evolution obtained in post-processing for parameters corresponding to the red line in Fig. 4 – self-assembly in bulk liquid, only LJ interactions between NPs. Panel a) – standard RDF, panel b) – \overline{C}_{{\rm NPs}} . The first example of the application of both types of the distribution functions that we present in Fig. 5 pertains to the temporal evolution of an NPs aggregate forming in the bulk non-polar liquid (mimicked by non-evaporating, stationary droplet). It corresponds to the red line in Fig. 4 – only LJ interactions between NPs are present; consistently 10^{4} NPs with 500-nm-radius were used. Panel a) shows the standard RDF, while panel b) – \overline{C}_{{\rm NPs}} . In both panels, it can be seen that the initially randomly distributed nanoparticles start to form small clusters – brighter, rather regularly spaced lines become more pronounced. The smaller, the more probable cluster, the brighter the line. Since the clusters are not linear, the higher-lying lines are spaced by fractions of the NP diameter and more diffuse. In panel a), only the isotropic ordering can be identified. On the other hand, since NPs were initially randomly spread over a finite volume, some evolution of their radial distribution versus their (initial) center of mass should be expected. And indeed, it is visualized in panel b). A movement of NPs towards their center of mass can be observed. A brighter region without a distinct pattern forms around 25 s, which signifies that NPs concentrate at a distance of \sim 10 \mu m from their center of mass but do not form a regular shell. 4.0.2 Aggregation in an evaporating droplet of non-polar liquid Figure 6: RDF (panel a)) and \overline{C}_{{\rm NPs}} (panel b)) evolutions, obtained in post-processing, corresponding to the NPs aggregate formation in an evaporating microdroplet for the following model parameters: initial microdroplet radius R_{0}=20 \mu m, evaporation rate A=3.5 , only LJ interactions between NPs ( \epsilon=0.023 , no NPs charge), no microdroplet rotation. Inset in panel b): SEM image of a dry aggregate of 125-nm-radius SiO 2 NPs, which we fabricated in the linear quadrupole trap. It corresponds to the end of the simulation – right-hand side of both panels. In contrast, Fig. 6 corresponds to aggregation in an evaporating droplet, while other parameters of the process were unchanged (only LJ interactions, no droplet rotation). From panel a) – standard RDF – we can only infer that the formation of long-range ordering is rather delayed. Only when we compare it with panel b) – \overline{C}_{{\rm NPs}} calculated relative to the center of the droplet – the evolution of microdroplet/NPs aggregate morphology becomes more apparent. The process of building the successive NP layers at the droplet surface can be observed. The moving droplet boundary scavenges the NPs and pushes them towards the center until a dry NPs aggregate is formed. An SEM image of such NPs aggregate of 125-nm-radius SiO 2 NPs, which we fabricated in the linear quadrupole trap, is shown in the inset. 4.0.3 Aggregation in a tumbling non-evaporating droplet of non-polar liquid Figure 7: RDF (panel a)) and \overline{C}_{{\rm NPs}} (panel b)) evolutions, obtained in post-processing, corresponding to the dry NPs aggregate formation presented in Fig. 2 (no microdroplet evaporation – R_{0}=20 \mu m, A=0 , random tumbling – isotropic \omega=1 rad/s, only LJ interactions – \epsilon=0.023 ). A further example of the model’s capabilities is presented in Fig. 7 , which corresponds to visualization in Fig. 2 . To remind: the aggregate was forming in a microdroplet that was not evaporating (was in equilibrium with the surrounding vapor) but tumbled randomly, which generated isotropic centrifugal force. Only LJ interactions were present, which yielded mainly a short-range ordering visible in panel a) as emerging, somewhat diffuse bright lines. The isotropic centrifugal force caused the formation of consecutive shells at the droplet surface, seen as bright lines at the top of panel b). The shells were densely packed (brightness/high contrast of the lines), which also manifests as a sharp bright line in panel a) at the distance of NP diameter from the test NP. 4.0.4 Aggregation in a rotating evaporating droplet of non-polar liquid It must be however admitted that very similar distribution functions are obtained for a microdroplet/NPs aggregate rotating only around a single axis. The visualization of the simulation results together with the SEM image of a ring aggregate we produced in our physical experiment is shown in Fig. 8 . This illustrates the limitations of the distribution functions used and shows that, in general, the parametrization used for the aggregate description must be carefully selected. Figure 8: Examples of ring NPs aggregates. Lower panel – SEM image of an NPs aggregate we obtained from drying a microdroplet of the aqueous suspension of 100-nm-radius SiO 2 NPs with an addition of sodium dodecyl sulfate (100 mM initially), in a linear electrodynamic quadrupole trap, for 45 min. The rotation conditions were not controlled. Upper panel – the simulation result for the following model parameters: evaporation rate A=1.5 , LJ interaction \epsilon=0.345 , no NP’s charge, \omega=2 rad/s around the z-axis. 4.1 Aggregation of NPs of different sizes As a final example, we present the result of a massive simulation of the evaporation of a microdroplet of a complex suspension containing NPs with two significantly different diameters. There were 39500 smaller and 1500 larger NPs. The simulation parameters were tuned to yield a relatively large hollow spherical aggregate at some stage of the evolution, as seen in the top-left panel of Fig. 9 . The aggregate in the SEM image in the lower-left panel is probably not quite hollow. We obtained it from a microdroplet of the aqueous suspension of 36 and 160-nm-radius SiO 2 NPs in a 10:1 number ratio. The numerical experiment enabled finding a possible set of parameters (in particular relative strengths of NP-NP interactions) that yielded mimicking of physical experiments findings. The \overline{C}_{{\rm NPs}} presented in the right panel of Fig. 9 shows the formation of consecutive shells – their structure is shown in magnification in the insets. The distribution of NPs of larger radii can be partly identified in the left inset as the less bright lines, which appear with some delay between the brighter lines. Figure 9: Examples of NPs aggregate composed of NPs with two significantly different diameters. Lower-left panel – SEM image of an aggregate we obtained from drying a microdroplet of an aqueous suspension of 36 and 160-nm-radius SiO 2 NPs in 10:1 number ratio, in a linear electrodynamic quadrupole trap for \sim 2 h. The inset corresponds to the higher SEM magnification. Upper-left panel – the result of simulation for the following model parameters: initial microdroplet radius R_{0}=60 \mu m; evaporation rate A=5 ; random tumbling – isotropic \omega=1 rad/s; NPs radius, number, and charge respectively: r_{\rm big}=1.5 nm, N_{\rm big}=1500 , q_{\rm big}=10 and r_{\rm small}=0.25 nm, N_{\rm small}=39500 , q_{\rm small}=1 ; LJ interactions between respective NPs: \epsilon_{\rm big-big}=0.155 , \epsilon_{\rm small-small}=0.155 ; \epsilon_{\rm big-small}=1.26 . The corresponding \overline{C}_{{\rm NPs}} is shown in the right panel. The details of the function are shown in magnification in the insets. 5 Conclusions The presented model has turned out very helpful for several applications. We see its major use for testing hypotheses and conceptualizing the evolution scenarios of evaporating microdroplets of suspensions. In this work, we’ve shown how it helped us to understand the phenomenon of scattering ‘revival’, often observed during evaporation of composite microdroplets, and to visualize/mimic the structure of NPs aggregate that we produced by drying such microdroplets in our linear quadrupole trap. The conceptualization can be performed ‘at two speeds’: First, with a larger time step, the evolution can be visualized in real time or even at increased speed. Key ideas and parameters can thus be quickly tested and failed hypotheses discarded. Next, the time step can be reduced to suppress possible harmful numerical effects, and the evolution is safely recorded for post-processing. We tested a few post-processing scripts and showed that such NPs aggregate properties like fractal dimension or radial distribution function – routinely used in the context of light-scattering experiments – could be easily obtained. 6 Abbreviations BD Brownian dynamics CFD computational fluid dynamics DLA diffusion-limited aggregation model DLCA diffusion-limited cluster aggregation model GPU graphics processing unit GUI graphical user interface LAMMPS large-scale atomic/molecular massively parallel simulator LBM lattice Boltzmann methods LD Langevin/Stokesian dynamics LJ Lenard-Jones (potential, force) MD molecular dynamics MDR morphology-dependent resonance NP nanoparticle RDF radial distribution functions RLA reaction-limited aggregation model RLCA reaction-limited cluster aggregation model SEM scanning electron microscope WGM whispering gallery mode 7