1 Introduction

Individual fluid droplets are ubiquitous. The motion of an individual droplet is interesting from many perspectives (Bergeron and Quéré 2001). Rain droplets, for instance, may spread, bounce and splash on leaves surface (Dorr et al. 2015) which is not only beautiful but has important applications in agriculture (Lin et al. 2016). Droplets bounce (Terwagne et al. 2013), squeeze (Perazzo et al. 2018), splash (Harlow and Shannon 1967) and freeze (Schutzius et al. 2015) in many other situations. Droplets appear important in the most expressive problem of our times during pandemia. Their dispersion in air and porous media (textiles) may become key to understand and limit virus spreading (Bandiera et al. 2020; Leung et al. 2020; Maggiolo et al. 2021).

Droplets appear in many situations in nature and technological processes. Drainage of the porous medium by a single droplet applies in the inkjet printing process (Clarke et al. 2002; Staat et al. 2017), in the oil recovery industry, when oil ganglia get trapped in pores and must be extracted using vibrations (Li et al. 2005; Perazzo et al. 2018; He et al. 2019). Droplets motion at porous and textured surfaces rises many interesting scientific questions, e.g., the pancake bouncing phenomena (Liu et al. 2014; Liu and Wang 2016; Bro et al. 2016) or the icing problem (Remer et al. 2014). In meteorology, for instance, the equilibrium shape of an individual droplet is important to predict the amount of precipitation (Beard 1976; Vollmer et al. 2012). But the most meaningful example today comes from medicine and the current pandemic situation. During the exhalation (when we talk, sing, cough or just breathe), we produce thousands of droplets that may become the carrier for viruses (Shadloo-Jahromi et al. 2020). Porous media have interesting medical applications as, for instance, lungs and surgical masks have a complex structure and transport droplets every day (Dbouk and Drikakis 2020; Leung et al. 2020; Haslbeck et al. 2010). A recent study shows the role of limited micro-droplet formation in children’s lungs in lowering COVID-19 transmission rates among the young part of the population (Riediker and Morawska 2020). Here, I concentrate on separated droplets and suggest using the mechanical model for their dynamics in a complex, porous medium.

The transport of fluids in porous media depends on three main factors: porosity (\(\varphi\)), permeability and tortuosity.

Tortuosity is a non-dimensional physical quantity used to characterize elongation of transport paths in the fluid flow (or in diffusion) due to the existence of pores (Clennell 1997). Thus, it may improve the Karman–Kozeny equation for permeability (Koponen et al. Sep 1997) or estimate diffusion constant in porous media (Boudreau 1996). Here, I define T as the ratio of the average fluid flow path lengths \(\langle \lambda \rangle\) to system size L:

$$\begin{aligned} T=\frac{\langle \lambda \rangle }{L}, \end{aligned}$$
(1)

where \(\langle \lambda \rangle\) is the effective length of the flow particle paths and L is the porous medium length. Tortuosity changes with porosity in the cree** flow regime of single-phase, incompressible fluid (Koponen et al. Jul 1996; Matyka et al. 2008). It appears in electric (Zhang and Knackstedt 1995), diffusion and hydrodynamic transport processes (Ghanbarian et al. 2013; Saomoto and Katagiri 2015).

So far, not much was done to investigate multiphase tortuosity in porous media, whereas multiphase flows and related phenomena have become important for science and engineering. Recently, ganglia mobilization during imbibition was investigated experimentally using micro-particle tracking velocimetry (Zarikos et al. 2018). In general, experimental methods for droplets are expensive, relatively inaccessible and time-consuming (Bouchard and Chandra 2019). Thus, it is important to have tools for an efficient and flexible simulation of this phenomenon. The motion of individual drops at pore-scale models of porous media was already investigated using, e.g., the boundary integral methods (Rallison and Acrivos 1978; Coulliette and Pozrikidis 1998) which turned out to be inefficient. For instance, the simulation in porous media was restricted to a maximum of eighteen particles used to build porous media samples (Davis and Zinchenko 2009). Also, the lattice Boltzmann (LBM) models were used for simulation of the transport of separated fluid droplets (Zhang et al. 2003). I simulate the transport of a single, non-wettable fluid through a complex, superhydrophobic porous medium build of randomly distributed grains. In my model, to calculate tortuosity I track the path of the center of mass of each droplet. The model may run at real-time rates and allows me to simulate falling of many droplets through the media. This allows extending the study to perform the statistical analysis of repeated numerical experiments. In particular, I will use it to calculate tortuosity versus porosity relation in a wide range of porosity and compare it to previous results obtained for single-phase flows (Matyka et al. 2008).

2 The Fluid Droplet Model

I use the spring–mass system to model droplets. A similar model was used to simulate, e.g., bouncing droplet (Terwagne et al. 2013), the red-blood-cell built of a triangulated network of springs (Fedosov et al. 2014). A comparison of the spring–mass system to continuum constitutive laws for capsules at large deformations was also made (Omori et al. 2011).

The simulated porous medium material is superhydrophobic with a wetting angle 180 degrees. The parameters of the model should be such that changes in droplet shape are small enough to ensure that the droplet does not split. To keep the volume constant, the atmospheric pressure model is used, where an additional pressure force is calculated using the ideal gas law. The previous work shows that the pressurized soft body model is efficient in simulating soft objects (Matyka and Ollila 2003). The model may be two- or three-dimensional and two dimensions are used here as it is easier to visualize and control the simulation.

First, mass is distributed uniformly at droplets surface using discrete material points. Each mass is connected with its neighbor with a linear spring that represents the surface tension of the material (see Fig. 1).

Fig. 1
figure 1

Two-dimensional soft body model is built of springs (wavy connections) and masses (filled circles). Only the boundary of the droplet is simulated. An additional pressure force is used to conserve the droplet’s volume

Three forces act on each mass point: gravity (\(\mathbf {f}=m \mathbf {g}\)), linear spring force and pressure. The linear spring force between neighbors with dam** reads:

$$\begin{aligned} \mathbf {f}_s= \left( -k_s (d - d_0) - k_d \frac{(\mathbf {v}_i-\mathbf {v}_j)\cdot \mathbf {r}_{ij}}{|\mathbf {r}_{ij}|}\right) \mathbf {r}_{ij}/|\mathbf {r}_{ij}|, \end{aligned}$$
(2)

where \(k_s\) \([M/T^2]\) is the spring constant , d [L] is the distance between the i-th and j-th mass, \(d_0\) [L] is the distance at rest, \(k_d\) \([M/T^2]\) is the dam** constant, \(\mathbf {v}_i\) [L/T] is the i-th mass velocity and \(\mathbf {r}_{ij}\) is the difference between masses position \(\mathbf {r}_i-\mathbf {r}_j\) [L]. The numerical units are used in the model: M-mass, L-length and T-time. Here \(\mathbf {g}=(0,-5\cdot 10^5)\), \(k_s=119755\) and \(k_d=365\) (in numerical units as stated above).

The next is the model of pressure. I assume that there is a fluid inside the object with internal pressure \(p > p_0\) (\(p_0\) is the atmospheric pressure), where the pressure force results from the pressure difference the object boundary. The assumption of constant pressure means that I neglect the dynamics of the fluid inside. To compute the value of pressure inside of the droplet, I use the ideal gas law:

$$\begin{aligned} p = nRT/V, \end{aligned}$$
(3)

where p is the pressure, R is the gas constant, n is the number of moles, T is the gas temperature (I assume it is constant too), V is the volume of the droplet (calculated at each step of the simulation). I use Gauss’s theorem and reduce the dimension of the problem by one. For example, to calculate the surface area of the drop in two dimensions I use an integral over the boundary and approximate it as:

$$\begin{aligned} S = \int \int _S dS=\oint _l x n_x dl\sum ^{N_L}_{i=1}x_in_{x,i}l_i, \end{aligned}$$
(4)

where S is the surface of the drop, dS is an infinitesimal element on the surface, l is the boundary of the drop, \(N_L\) is the number of boundary segments, x denotes the position in the x direction, \(n_x\) is the x component of the normal vector, dl is the infinitesimal element of the droplet boundary, \(n_{x,i}\) is the normal vector to the i-th boundary segment, \(l_i\) is the length of the i-th segment.

After computing the surface S from equation (4) (or volume V in 3D version of the formula), I get the pressure force by using normal \(\hat{n}\) to the surface:

$$\begin{aligned} \mathbf {f}_p = \frac{nRT}{V} \hat{n}. \end{aligned}$$
(5)

Gravity, spring force and pressure forces accumulate at each mass point on the surface. Then, the equations of motion of each point are integrated using the second-order Verlet algorithm. The time step \(\delta t=2\cdot 10^{-5}\) is used. After integration, inverse dynamic constraints for the position of the masses are used to stabilize the simulation (Provot 1995). The algorithm 1 in appendix A summarizes all the steps required to implement the model presented in this paper.

3 Collisions

I model a porous medium consisting of 2D, random, overlap** and non-overlap** impermeable grains (discs) of varying radius. By varying the number of grains, I control the porosity. For non-overlap** medium, to prevent from touching, the distance between grains was kept smaller than 13\(\%\) R (grain radius). For collisions of the soft body with solid grains, I used the penalty method. Each time one of the points at the surface tries to penetrate one of the solid grains, I add a virtual spring with 0 rest length. The spring acts outward on the grain surface. A similar technique was adopted in the static friction model in simulations of granular material before (Risto and Herrmann 1994). Our collision approach is thus similar to the Hertz collision model for soft surfaces.

Fig. 2
figure 2

Example simulation of a liquid droplet passing through a single pore formed by three solid grains. Selected time snapshots (ordered by numbers in the figure) of the evolving droplet’s boundary are plotted. The animation of this process is included in the supplementary material as a squeeze.mp4 file

To prevent points on the surface from penetrating further, I move the points out of the obstacle discs and reflect their velocities. This additional procedure was necessary because, occasionally, high droplet velocity and numerical errors related to the integration in the Verlet algorithm caused some points on the droplet surface to get stuck in the obstacles and become blocked. As shown in Fig. 2, the droplet of liquid that starts above the solid grains (initial shape labeled 1) and sinks downward under gravity changes shape on its way into the narrow passage. The whole collision process is presented in the algorithm in appendix A.

4 Results

To investigate the relationship between tortuosity and porosity, random configurations consisting of overlap** grains were created. Porosity was controlled by changing the number of grains. At each porosity, 200 independent configurations of grains were used. For each configuration, a maximum of 200 droplets were simulated. The exact number of droplets depended on the number of successful simulations, since droplet plugging could occur in low porosity systems, e.g., due to dead-end pores (Andrade et al. 1997). Therefore, the simulation in low porosity media was time-consuming and may not have converged (the situation where a single droplet stops at a point in the porous region). The initial position of the droplet was randomly chosen in the horizontal direction just above the top of the porous medium.

Fig. 3
figure 3

Snapshot of the time course of a 100 single droplet (the center of mass is drawn as a black dot) falling through the porous model of random overlap** disks (wire in the visualization). Also, the path of each droplet that successfully passes through the system is shown as a light gray line. The image uses blending for visualization of multiple simulations

The results of the simulations of falling droplets are shown in Fig. 3. The visualization technique uses alpha blending, where many individual droplet positions are drawn into an image. This allows us to observe regions of increased and decreased droplet presence. If some droplets get stuck, for example, in the dark region in the upper left, it becomes dark because many droplets stay here for a long time. One can notice that some parts of the porous matrix are relatively more permeable. Here, many of the simulations with multiple single droplets pass through this part of the system (e.g., the right vertical channel running from top to bottom, as indicated by the gray path lines).

Using the stored paths for all droplets in all porous samples I simulated, I used the path-based definition of tortuosity (Eq. 1) and calculated the resulting average tortuosity versus porosity, shown in Fig. 4.

Fig. 4
figure 4

Average tortuosity in the droplet model with varying porosity in the overlap** grains model. Each point represents the average tortuosity, and each error bar is the standard error based on the 200 independent configurations of obstacles. The solid line is the best fit to the function \(f(x)=a-cx^b\). I found \(a=1.58\), \(b=3.87\) and \(c=0.58\) using the least-squares algorithm

By numerically fitting various \(T(\varphi )\) relations, I found that the power law:

$$\begin{aligned} f(x)=a-cx^b, \end{aligned}$$
(6)

fits best (see Fig. 4 caption for results of the fitting procedure).

Next, the model was applied to study the motion of a single droplet in a porous matrix composed of non-overlap** grains. Non-overlap** grains were chosen to increase permeability at low-porous media. Inspired by recent experimental and numerical results for a similar process in metal foams (Zhang et al. Full size image

I observe a qualitative agreement of our results with simulations and similar experiments reported in Zhang et al. (\(T=2.42\). The solid thick line is the visualization of the longest path. The thin lines represent the set of generated paths with lower tortuosity. The instantaneous configuration with the highest tortuosity is represented by slices visualized as wire spheres. The dark spheres are those that were touched by the droplet in the previous simulation