Introduction

The coffee-ring effect has been observed in various experiments with different colloidal suspensions1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16, including polymers2,3,4, quantum dots5, nanoparticles6,7,8,9,10, bacteria11 and biofluids12,13,14,15,16, such as urine14, blood15 and serum16. The effect has initially been investigated by Deegan et al.17 and explained as a ubiquitous phenomenon caused by the replenishing outward capillary flow and uneven evaporation rate18,19. The previous attempts to simulate the effect were commonly based on the numerical techniques, such as the finite-element method20, applying the analytical equations to figure out the evolution of the average particle density profile. Another family of approaches, based on the Monte Carlo methods, uses randomly distributed particles on the discrete lattice and calculates the probabilities of the possible particle motion directions on each simulation step. One recent attempt to build a Monte Carlo model of the droplet evaporation, capillary flow and contact line deposition has been performed by Kim et al.21. The model used a simple power-law assumption about the particle motion on the basis of the flow analysis of Deegan et al.17 and reproduced the contact line deposition profile2. However, the simulation has been limited to the simplified radial particle motion and has not considered the vertical velocity component and dependence on the vertical coordinate. In the work of Yunker et al.22, the coffee-ring growth was modeled in two dimensions (2D) as the Poisson-like process of random particle deposition coupled with the surface diffusion. The model, focusing only on the vicinity of the contact line, has not considered the droplet evaporation and inward flow dynamics. The Monte Carlo approach based on the biased random walk (BRW) has been recently used to investigate the transition from the coffee-ring deposition towards the uniform coverage in 2D8,9,23. In the present work we further develop the BRW method into the more realistic 3D domain and use the flow analysis of Hu and Larsson24,25,26 to calculate the corresponding probabilities of the sampled particle moves on each Monte Carlo Step (MCS). This advancement allows achieving a full 3D structure of the coffee ring and analyzing the thickness profile of the structure. The evolution of the ring shape and dimensions is observed during the entire time period of the droplet drying.

The mathematical model is based on the BRW approach27,28,29 in a 3D domain with a cubical lattice structure, which mimics the shape of a pinned sessile droplet (see Fig. 1) with a spherical cap with a pre-defined initial contact angle value, θ0 and apex height, h0. The domain boundary surface continuously shrinks in the vertical direction during evaporation. The geometrical shape is assumed to remain spherical cap and the contact angle value continuously decreases with time. It is assumed for simplicity that the droplet apex height reduces linearly with dimensionless time, 26, . At the initial state, the particles are uniformly distributed inside the domain according to the defined volumetric concentration, ϕ. Afterwards, on each MCS of the simulation, each particle may perform a biased random move into a vacant cell within the domain. Each particle move is sampled from the seven-component finite set, where six elements correspond to the six possible directions of motion and the seventh possible move is “waiting”, or keeping particle position in the lattice until the next MCS. To calculate the probabilities corresponding to the chance of drawing a given direction for a particle, first of all, the dimensionless velocity components , , are calculated from the analytical expressions25,26 for each particle (see the details in the Methods section). The velocity values significantly depend on time and the particle position, rising near the three-phase domain boundary. Meanwhile, the lattice configuration restricts the simulated particle displacement with one lattice cell at one MCS. Therefore, the duration of each MCS might be different and the tick size of the clock for is adjusted to the fastest moving particle. The drift velocities of the slower particles are scaled by the factor of velocity of the fastest particle. Thus all the rescaled velocities fall in the range between 0 and 1 and the preliminary probability distribution of the sampled move directions can be calculated. However, one more important modification implementing the “waiting” moves is required to keep the diffusion parameter consistent in a BRW model with a strong bias28,29. It has to be remembered that the random Brownian (or un-biased) displacement is dependent on the duration of MCS. Therefore, shorter simulation steps corresponding to the faster drift velocities should have lower probabilities of moving in any direction, different from the direction of . Lowering the diffusion component without changing the drift component results in increasing the waiting probability during the current MCS27. Finally, seven probability components are re-calculated for each particle on each MCS, ; the subscripts x, y, z indicate the three Cartesian axes, “+” and “−” signs indicate whether this direction matches the direction of projection on this axis or is opposite and pw is the probability of the “waiting” move. Once pmove is determined, the direction of the current move is sampled from the biased distribution.

Figure 1
figure 1

The schematic representation of the 3D model implementation.

The spherical cap-like volume of the cubical lattice is filled with liquid (blue) and randomly distributed particles (red cubes). (a) shows the isometric view of the modeled droplet and (b) shows the side view of the droplet.

An additional method is used to improve the convergence of the simulation run. Since the velocity value near the three-phase line region becomes very high, especially at later stages, the direct scaling by the maximum velocity may lead to the MCS duration approaching zero and hence reaching the end of the evaporation process at may require an infinite number of MCS. To avoid this divergence, the particles reaching the three-phase contact line or inner side of the coffee ring are excluded from calculations of the maximum velocity. It is reasonable, since the outwardly moving particles reaching the domain boundary are not able to move further and their actual velocity becomes zero. The same situation happens with the particles reaching the boundary coffee-ring composed from the blocked particles at the later stages. Even if the analytical equations show a high value for such a particle, the model rules do not allow it to move into the occupied cells and the particle may be excluded from the simulated dynamics. Therefore, the duration of current MCS is calculated based on the velocities of all the other particles which have not yet been blocked by the boundaries.

The model is also considering the possible particle agglomeration into clusters on each MCS. An additional parameter, pstick, controls the sticking probability of the particles. The mechanics of the process is implemented according to the Diffusion Limited Aggregation (DLA) rules8,9,23. The aggregated particles continue their further motion as one inseparable object (cluster) and their averaged position is used to calculate pmove and sample the corresponding direction. The aggregation event is the binary random variable sampled for the particles occupying the neighbouring cells with the probability equal to , where pstick is fixed during the run and is the duration of current MCS. Particles reasonably have higher aggregation chance during the longer time steps.

Results

The simulations are performed using the following values of the fixed parameters: the droplet base diameter is set to 500 cells; the initial contact angle value, θ0, is assumed to be π/4; the non-dimensional particle size is 1 × 1 × 1 cells; and the dimensionless initial evaporative flux at the droplet apex is fixed at . The volumetric particle concentration, ϕ and sticking parameter, pstick, are varied in consecutive simulation runs to investigate the influence on the coffee-ring shape and final particle distribution. Figure 2 presents the results of a sample simulation run with ϕ at 0.01. The image sequence shows the progression of the droplet evaporation and the coffee-ring forming process. The process starts with the uniform particle distribution inside the spherical cap (see Fig. 2 (a)), then the droplet consequently shrinks while the ring starts to build up (Figs. 2 (b–h)); at the later stages the rest of the particles joins the ring structure and completes the inner ring side (Fig. 2 (i–r)), finally only very few particles are left inside the ring and the droplet completely dries out (Fig. 2 (s–t)). The final image of the ring well resembles some previous experimental observations8.

Figure 2
figure 2

The progression of the single droplet drying process over time in a Monte Carlo simulation run.

(a) shows the initial system state at from isometric view (top image) and side view (bottom image); (b–t) show the corresponding images of the drying droplet after (b) , (c) , (d) , (e) , (f) , (g) , (h) , (i) , (j) , (k) , (l) , (m) , (n) , (o) , (p) , (q) , (r) , (s) , (t) . The full animations are available as the Supplementary Video-1 for the isometric view and Supplementary Video-2 for the side view.

The investigation of the coffee-ring shape dependence on the particle concentration and sticking probability is performed as well. Figure 3 displays the final results of the multiple simulations with the different particle concentrations varying from 0.01 to 0.05 and pstick values at 0.1 (a–b rows in Fig. 3) and 1.0 (c–d rows). Image collection (Fig. 3 (a1–a5)) presents a gradual increase of the ring width with the rising number of particles in case of low sticking pstick = 0.1. Figure 3 (b1–b5) shows that only small clusters, indicated by different color, are formed in these cases and most of the particles do not stick together. The shape of the ring looks generally smooth and the width rapidly grows with increasing ϕ. However, increasing the sticking chances ten-fold to pstick = 1 provides visible changes in the final ring structure for higher particle concentrations (Fig. 3 (c3–c5)). More particles stick together to form slower moving clusters, thus slightly distorting the inner ring boundary and increasing the particle presence near the domain center. Cluster diagrams in Fig. 3 (d1–d5) show that pstick = 1 is high enough to cause forming of a large ring aggregate for ϕ > 0.01. Differently, the coffee rings in insets Fig. 3 (a1–a5) for pstick = 0.1 are composed from multiple small clusters or separate particles (Fig. 3 (b1–b5)). The diagrams in Fig. 4 present thickness profiles of the final results corresponding to Fig. 3. The comparison between color maps shows that thickness of ring structures is distributed rather similarly for pstick = 0.1 (shown in Fig. 4 (a1–a5)) and pstick = 1 (shown in Fig. 4 (b1–b5)). However, the thickness of the rings with a low sticking changes very gradually, reaching the peak closer to the three-phase line and decreasing towards the domain center (Fig. 4 (a4–a5)). Meanwhile, higher sticking leads to the emergence of more complex branched aggregates for ϕ > 0.03 (Fig. 4 (b4–b5)), thus slightly distorting the profile of the ring. The corresponding curves in Fig. 4 (a6–b6) indicate a higher particle presence inside the ring for high-sticking and high-concentration results (Fig. 4 (b4–b5)).

Figure 3
figure 3

Aggregated simulation results showing the final coffee-ring structures for different volumetric particle concentrations and sticking parameter values.

(a1–a5) show the final dried states corresponding to particle concentrations, ϕ, at (a1) 0.01, (a2) 0.02, (a3) 0.03, (a4) 0.04, (a5) 0.05 and sticking parameter value pstick = 0.1. The remaining particles are shown in red color. (b1–b5) show the cluster diagrams corresponding to the results from (a1–a5). Different particle clusters are indicated by different colors. The small size of the clusters is caused by a very low particle sticking probability. (c1–c5) show the final dried states corresponding to particle concentrations, ϕ, at (c1) 0.01, (c2) 0.02, (c3) 0.03, (c4) 0.04, (c5) 0.05 and sticking parameter value pstick = 1, particles are shown in red. (d1–d5) show the cluster diagrams corresponding to the results from (c1–c5). The main, ring-shaped aggregate is seen in (d2–d5) and indicated with green color. Other, smaller clusters are seen inside the main ring and are more evident for the highest particle concentration in (d5).

Figure 4
figure 4

Analysis of the height profiles of the structures presented in Fig. 3.

(a1–a5) show the color maps of the particle structure height corresponding to particle concentrations, ϕ, from (a1) 0.01 to (a5) 0.05 and pstick = 0.1. (b1–b5) show the corresponding maps for different sticking pstick = 1. The color bar shows the dependence of the height value on the displayed color. Minimal height shown is 0 (empty area), maximum height is 9, meaning that nine particle layers are stacked on each other in these cells of the lattice. The plot diagrams (a6) and (b6) show the corresponding ring thickness profiles depending on the distance from the domain center. The ring height is averaged over the all cross-sectional directions. H is the height of the particle layer, is the non-dimensional distance from the base center and R is the base radius respectively.

Discussion

The presented algorithm might serve as a simplistic basis for developing more specific or sophisticated models, potentially including the effects of Marangoni convection, solution viscosity, etc. There are several additional important rules considering the particle mechanics in the presented model, worth mentioning: 1. The particles are not allowed to overlap with each other (conservation of the global particle concentration, ϕ). This rule allows particles to stack onto each other and form a solid structure. 2. Once the particle leaves the droplet domain as a result of the droplet shrinking, the only allowed move is in the vertical down direction, unless the underlying cell is occupied by the other particle or substrate. This restriction prevents the particle diffusion in the absence of liquid but allows the particles drop due to the gravity. 3. All the moves outside the current domain are prohibited (the barrier boundary condition). Thus, the simulation starts at with the particles randomly distributed inside the volume of the spherical cap with and finishes at , with the particles immobilized on the empty substrate or atop the other particles.

To summarize, the coffee-ring effect is simulated in the 3D domain, while including both particle diffusion and the capillary particle transport towards the three-phase contact line. The spatial domain of the model is the evaporating sessile droplet represented as a spherical cap. The time scale of the simulation is the full drying process, from the placement of the drop onto a substrate till the final dry-out of the remaining solvent. The simulation result provides a full 3D model of the coffee ring and the vertical ring thickness profile is measured. The final shape of the simulated ring structure shows a reasonable dependence on the volumetric particle concentration and colloidal aggregation parameter.

Methods

The distribution for each particle is deduced from the dimensionless velocity components as

where N = 3 for 3D space, is the dimensionless velocity of the fastest particle, , and are the dimensionless velocity components, calculated from the analytical equations for the liquid flow25,26:

where the dimensionless variables are defined: radial velocity , vertical velocity , time , radial coordinate , vertical coordinate and liquid layer thickness , in which tf is the total drying time and R is the droplet base radius, λ(θ) is linearly dependent on the current contact angle value θ, λ(θ) = 1/2 − θ/π; g′ is the first-order partial derivative of the function, , with ; is the dimensionless evaporative flux at the top of the droplet surface, according to Hu and Larsson26 and f(Ma, ΔT, ν) is a Marangoni effect function of the cumulative influence of the temperature and surfactant gradients. Our simulations show that low dimensionless values of f (f < 5) do not significantly affect the final structures, therefore f term is neglected in the presented results (f = 0). The influence of the strong Marangoni effect (f > 5) on the coffee-ring structures in 3D is a subject for future study. The expressions of and are calculated for each particle and recalculated for each MCS, then the horizontal velocity components in x and y directions are simply derived from projections vx = vrx/r and vy = vry/r.

The maximal absolute value of the particle velocity on a given MCS is taken as maximum from all the calculated particle velocity components. Particles reaching the domain boundary or the coffee ring are excluded from this calculation, since their actual velocity vanishes.

Cluster-cluster aggregation is performed by examining each individual cluster for neighbouring particles from the other clusters. If the particles are present in the neighbouring cells, the binary variable is sampled with probability of , is calculated from , in which B is the number of cells in the lattice radius (250 in the current work). If the sampled variable is 1, the aggregation occurs and on the next MCS the aggregated particles move together as a whole cluster.

The tick size of the simulation clock at a given MCS, , is adjusted to the fastest particle with and also scaled by the lattice size and number of dimensions. Since the particles start to move faster towards the end of simulation, the clock slows down and it takes more MCS for the latest drying stages. Reasonably, larger lattices also require more MCS to finish the whole simulation. The diffusion coefficient, according to Codling et al.27, in BRW model is proportional to sum of individual move probabilities,

Therefore, shorter MCS with a larger have smaller random displacement caused by the Brownian motion. The waiting probability, pw, can be alternatively expressed as,

It shows that for the fastest possible particle with some move definitely happens (pw = 0); and if all the particles are slow , there is no waiting on the current MCS. In the actual simulations is almost always higher than 1. However, if this condition is not fulfilled, the probabilities are not rescaled by . Then the condition (pw = 0) is used and the equations for the slow drift of the form are used to calculate pmove, in which is the projection value on x, y, or z axis respectively.