Computing sessile droplet shapes on arbitrary surfaces with a new pairwise force smoothed particle hydrodynamics model
Abstract
The study of the shape of droplets on surfaces is an important problem in the physics of fluids and has applications in multiple industries, from agrichemical spraying to microfluidic devices. Motivated by these real-world applications, computational predictions for droplet shapes on complex substrates – rough and chemically heterogeneous surfaces – are desired. Grid-based discretisations in axisymmetric coordinates form the basis of well-established numerical solution methods in this area, but when the problem is not axisymmetric, the shape of the contact line and the distribution of the contact angle around it are unknown. Recently, particle methods, such as pairwise force smoothed particle hydrodynamics (PF-SPH), have been used to conveniently forego explicit enforcement of the contact angle. The pairwise force model, however, is far from mature, and there is no consensus in the literature on the choice of pairwise force profile. We propose a new pair of polynomial force profiles with a simple motivation and validate the PF-SPH model in both static and dynamic tests. We demonstrate its capabilities by computing droplet shapes on a physically structured surface, a surface with a hydrophilic stripe, and a virtual wheat leaf with both micro-scale roughness and variable wettability. We anticipate that this model can be extended to dynamic scenarios, such as droplet spreading or impaction, in the future.
1 Introduction
The task of calculating the equilibrium shape of a sessile droplet on an arbitrary surface, including the effects of gravity, is surprisingly difficult, despite the simplicity of the problem description. In the simplest case of a flat horizontal surface, one can proceed by solving the Young-Laplace equation for the droplet shape given the droplet volume and the prescribed contact angle (Danov et al., 2016). However, even for a similar geometry such as an inclined plane, the lack of rotational symmetry leads to numerous additional complications that make the problem considerably more challenging. In particular, the boundary of the wetted area on the substrate (the contact line) is then completely unknown, as is the contact angle at each point on this boundary. Therefore, certain approximations are often made to make progress on this more difficult problem, such as assuming a circular contact line (Brown et al., 1980; Tredenick et al., 2021), or using empirical models for the contact angle distribution around the contact line (Ravi Annapragada et al., 2012). For a more general surface geometry, the challenges are even more stark, as deviations in surface topology lead to a highly nontrivial formulation again with an unknown contact line location and unknown contact angles.
A related problem is to study the evolving shape of a droplet that has been released on a surface with a relatively low energy field, and determine the dynamics of the droplet shape as it settles towards equilibrium. In addition to the inherent challenges described above for the sessile droplet, this time-dependent problem is further complicated by the unknown relationship between the speed of the contact line and the contact angle (Hocking, 1992). For our purposes, we are interested in using this time-dependent framework as a means to compute shapes of sessile droplets on arbitrary surfaces.
Some promise is shown in this area by energy minimisation methods, although these methods do not incorporate viscous effects, or model the temporal behaviour of settling droplets (Jamali and Tafreshi, 2021). In contrast, in this study, we develop a numerical method based on smoothed particle hydrodynamics (SPH) to tackle these challenging problems. In the context of computing shapes of sessile droplets, one advantage of our approach is that the geometry of the droplet at the contact line arises naturally as a consequence of the SPH formulation, rather than as an input to the model.
SPH is a computational method for discretising fluid flow problems using “particles” that carry information about the fluid, originally developed by Gingold and Monaghan (1977) and Lucy (1977); and more recently reviewed by Wang et al. (2016) and Ye et al. (2019), for example. The particles serve as interpolation nodes for fluid properties such as density and velocity. The particles are not stationary and not connected; rather, they are advected with the flow according to the fluid velocity field . This Lagrangian discretisation transforms partial differential equations for any given field value into ordinary differential equations for each particle’s value , coupled with the advection equation for the particle’s position . Provided that sufficiently many particles are used in the simulation, the particle properties can then be interpolated to reconstruct the full fields everywhere in the domain.
Since its inception, SPH has been applied to a wide variety of problems, including astrophysics (Springel, 2010), coastal engineering (Barreiro et al., 2013), porous media flow (Zhu and Fox, 2001), and even blood flow in injured arteries (Müller et al., 2004). The key advantage of SPH in simulating droplet behaviour is that the scheme does not necessitate the tracking of the sharp interface between the liquid and the air. Indeed, it does not track the interface directly at all; instead, the interface is deduced a posteriori based on the density field. This approach provides the needed flexibility to model droplets with non-trivial shapes on complex substrates that would otherwise pose a significant challenge for interface tracking or fixed grid methods (Ye et al., 2019). In the spirit of this interface-free approach, in the past decade a modified SPH method has emerged in which the Young-Laplace pressure boundary condition at the free surface is replaced with inter-particle forces that mimic cohesion and adhesion, in what is known as the pairwise force SPH method (PF-SPH).
Kordilla et al. (2013), Tartakovsky and Panchenko (2016), and Shigorina et al. (2017) all used a PF-SPH method to study droplet shapes on rough surfaces, although each used a different function for the pairwise force. There is, in general, a lack of consensus regarding the best pairwise force formulation, and a lack of understanding about what effect the formulation has on the simulated surface tension and contact angle. Existing pairwise force profiles in the literature are rarely physically motivated and seldom investigated in their own right. With this in mind, our main contribution is to propose a new force profile for PF-SPH that is physically motivated, scale-independent, and carefully validated through the reproduction of multiple independent physical phenomena. To this end, we have developed a new method for calibrating the contact angle on an ideal surface by fitting whole droplet shapes obtained from semi-analytical solutions to the Young-Laplace equation. With the new PF-SPH model thoroughly calibrated and validated, we then demonstrate its application to several important test problems from the literature. First, we calculate the equilibrium shape of settling droplets on microscopically rough and chemically patterned substrates. Then, we apply the model to simulate a scenario from an agricultural application: a droplet impacting and settling on a virtual plant leaf.
The paper is structured as follows. In Section 2 we outline the details of our weakly compressible pairwise-force SPH model. We describe a new, scale-independent, pairwise force term, and give some details on boundary handling, time integration, and computational implementation. Several validation tests are carried out in Section 3, in which we ensure the model reproduces expected interfacial phenomena in both static and dynamic scenarios. In particular, in Section 3.3 we detail our method of calibrating the pairwise force to semi-analytical solutions for droplet shapes on flat surfaces. Section 4 is then devoted to some numerical experiments of interest. Firstly, we simulate two small () droplets with different initial velocities on a surface with regular, sharp, square pillars, reproducing the experimental results of Dupuis and Yeomans (2005) and showing a transition between wetting states. Next, we simulate a droplet settling on a flat, hydrophobic, surface with a hydrophilic stripe, and observe a smooth transition in the droplet’s contact angle from the equilibrium hydrophobic contact angle to the equilibrium hydrophilic contact angle. We then simulate a droplet settling on a virtually reconstructed wheat leaf surface in the context of broader work on understanding spray-canopy interactions on plants (Dorr et al., 2016, 2015; Mayo et al., 2015; Tredenick et al., 2021). We note that our PF-SPH scheme is quite flexible and should be applicable to a broad range of time-dependent droplet-related problems on complex substrates such as droplet impaction and spreading. Finally, the julia code containing our implementation of the model is available online on GitHub.
2 Numerical formulation
2.1 Governing equations
The continuum model we use is the weakly compressible, barotropic Navier Stokes equations
(1) | ||||
(2) |
with the position, the velocity, the density, the pressure, the dynamic viscosity, and the gravitational acceleration. The main focus of this work will be the body force (per unit mass) , which we will construct in Section 2.4 to reproduce surface tension and contact angle effects. The derivative is the Lagrangian derivative
which, as we shall see, lends itself naturally to discretisation using smoothed particle hydrodynamics.
2.2 Discretisation
As is standard in SPH methods, we represent the fluid by particles, each with their own position, velocity, density, and label (to distinguish fluid from solid, for example). Using and as particle indices, the discretised SPH form of the model (1)-(2) is
(3) | ||||
(4) | ||||
(5) |
where for notational convenience, is an SPH kernel with compact support radius , is the volume of particle , and is the spatial dimension (always equal to 3 in this work). The pressure is calculated from the density with the equation of state (5). The constants and are the artificial speed of sound and the reference density, respectively. Note that we have switched from using the material derivative to the total derivative , as the time derivative of a particle’s property follows the flow by definition.
In this work we use the quintic Wendland function (Wendland, 1995) as the SPH kernel, which we parameterise by , its radius of support, also called the kernel cutoff radius:
Wendland functions were developed independently of SPH for their smoothness properties, but have been found to give accurate and stable SPH results (Dehnen and Aly, 2012). In the literature, this kernel is sometimes parameterised by its smoothing length , which is defined as half the kernel cutoff radius. To avoid this confusion, we parameterise the kernel by its cutoff, which we denote , and set , where is the particle width.
With the exception of the pairwise force term , which will be the main focus of this work, the discretisation summarised above is well established in the literature: see, for example, Monaghan (2005). In this work we will implement and validate a new form of the pairwise force term to model surface tension and contact angle effects, and highlight some particular properties of that yield stable and accurate simulations of droplets.
2.2.1 Continuity equation
The operator we use for the divergence of velocity is from Monaghan (2005):
and is specifically constructed to vanish when is constant.
2.2.2 Pressure gradient & equation of state
The discretisation of the gradient of pressure that we use, namely
is due to Bonet and Lok (1999) (and recently used by Domínguez et al. (2022)), who showed it to be consistent with equation (3) and to conserve linear momentum exactly. Note that since , we have the anti-symmetry . This is the property that conserves momentum, since the contribution of particle to is equal and opposite to the contribution of particle to .
The pressure is calculated from the density by the equation of state. We follow Monaghan (1994, 2005) in using
which was originally reported by Cole (1948, p. 44) in the study of underwater explosions. Cole notes that they chose the exponent to approximately fit experimental data. In our case, we find that the results are not at all sensitive to the particular equation of state in use – even the first-order approximation gives almost indistinguishable results. The coefficient is an artificial speed of sound that controls the compressibility of the fluid. The actual speed of sound in water is around , but such a value would require the use of extremely small timesteps to properly resolve pressure waves travelling at that speed. Instead, in the weakly compressible model, we use an artificial value of on the order of such that density fluctuations are kept to within of the reference value (Monaghan, 2005). The artificial speed of sound required for a particular problem can be estimated as , an order of magnitude greater than the maximum expected fluid speed.
2.2.3 Viscosity
The discrete operator we use to approximate the Laplacian is that of Monaghan and Gingold (1983), namely
where is the spatial dimension. More recently proposed operators exist with favourable properties, but we have chosen this particular discretisation based on the analysis by Colagrossi et al. (2009) that suggests it is more appropriate for the simulation of free surfaces.
2.2.4 Solid boundary treatment
At the fluid-solid interface, we have the no-slip condition: . We impose this condition indirectly, representing the solid substrate with fixed dummy particles, initialised on a regular grid with spacing (Macia et al., 2011). Multiple layers of these particles are used to avoid an SPH neighbourhood deficiency at the boundary. The solid particles have the same physical properties as the fluid at rest, with mass and density , but with zero velocity. The solid particles are included in the summations over in the discrete continuity and momentum equations (3) and (4), as if they were fluid particles. Pressure forces and the repulsion due to pairwise forces ensure that fluid particles do not penetrate the boundary. Figure 1 shows a typical setup in which a droplet of fluid particles is about to impact a flat solid boundary.

2.2.5 Time integration
The time integration scheme we use is a second-order, symplectic, position-Verlet scheme. It is modified from Leimkuhler and Matthews (2015) by Domínguez et al. (2022) to include a velocity half-step, which is necessary to integrate the continuity equation and calculate the viscous term. We will use the following notation for the discretised governing equations (1) and (2):
Dropping particle indices for clarity, and letting the value of a quantity at timestep be denoted , the original position Verlet scheme (Leimkuhler and Matthews, 2015, p. 107) reads
However, the viscous term in involves the velocity at the half timestep, so Domínguez et al. (2022) introduce the intermediate step
Simplifying the expression for , and including the integration of the continuity equation, the full scheme reads
The timestep is chosen adaptively according to viscous, maximum force, and acoustic constraints:
(6) | |||
In the present application, the acoustic constraint determining is almost always far smaller than the other two in (6), due to the small scale of the droplets and the comparatively large artificial speed of sound .
2.3 Implementation details
The Lagrangian nature of SPH, while making it a very flexible method, also makes it challenging to implement efficiently. We follow the work of Ihmsen et al. (2011) in the use of some key data structures and parallel methods, which we will briefly summarise here.
Implemented naively, each sum in the discretised equations (3) and (4) has a time complexity of . This is made more efficient by pre-computing a neighbour list
for each fluid particle . Any sum over then becomes a sum over . Since density fluctuations are small in this weakly compressible scheme, the number of neighbours is approximately constant (around ). Thus, the complexity of calculating the particle interactions becomes .
We accelerate the neighbour search by using a background grid with cells of width . Each grid cell is uniquely identified by a tuple of integer coordinates , and we keep a hash table of lists of particles contained in each cell. To minimise memory allocations, we pre-allocate enough storage for each of these lists to contain indices. Density fluctuations are low, so the maximum number of fluid particles that one cell may contain is roughly constant. The neighbour search then only considers particles in neighbouring cells (the number of which is roughly constant), therefore reducing the time complexity to .
Finally, we make use of shared memory parallelism with many CPU cores wherever possible. The particle-particle interactions are calculated in parallel, as are the neighbour lists. For more optimisation details we refer the interested reader to Ihmsen et al. (2011) for CPU implementations, or for GPU implementations: Domínguez et al. (2011); Crespo et al. (2011, 2015); Domínguez et al. (2022). Simulations were run using up to 64 processors in parallel.
2.4 Pairwise force model for interfacial phenomena
Surface tension and wetting are both effects of intermolecular forces (Bormashenko, 2017). A molecule at an interface misses approximately half of its interactions with neighbours when compared to a molecule in the bulk, and the resulting imbalance of forces leads to free surface energy. For surface tension, the relevant forces are cohesive (fluid-fluid interactions) while, for wetting, the relevant forces are adhesive (fluid-solid interactions). Depending on the relative strengths of these forces, a droplet could be almost spherical, spread to completely wet a solid, or any configuration in between, to minimise the free surface energy.
We aim to reproduce this behaviour on a much larger scale by mimicking intermolecular forces between SPH particles. This is conceptually similar to the Lennard-Jones potentials used in molecular dynamics simulations (Jones, 1924). The basis for these forces in SPH is empirical; nevertheless, in Section 3 we will show that the pairwise force SPH model reproduces interfacial phenomena consistently and predictably.
The pairwise particle interaction forces are included in the momentum equation (4) via the term :
(7) |
where controls the strength of the pairwise force between particles and . Following the analogy with intermolecular potentials, we construct the pairwise force profile to be repulsive at short distances (less than one particle width), attractive at medium distances, and vanish outside the SPH kernel support radius, . In other works, this term has been constructed as a combination of Gaussians (Tartakovsky and Panchenko, 2016), SPH kernels (Shigorina et al., 2017; Kordilla et al., 2013), or part of a cosine curve (Tartakovsky and Meakin, 2005; Nair and Pöschel, 2018). For simplicity, we will instead use polynomials for the force profile, with some intuitive constraints at key points. Those constraints are:
(avoid trivial solution) | |||
(smoothness at endpoints) | |||
(continuity at kernel support radius) | |||
(repulsion-to-attraction point) |
The last constraint, controlling the zero crossing of the force profile, is intentionally different for the fluid-fluid () and the fluid-solid () interactions. The fluid-fluid force profile is attractive at a shorter distance than the fluid-solid to prioritise cohesion over adhesion for stability at the contact line. Fourth-degree polynomials are simple to construct from these five constraints, and so we have:
(8) |
Figure 2 shows these force profiles over the range of possible particle distances.

The parameter in equation (7) controls the strength of the pairwise force and, like , depends on the labels of the particles and : fluid or solid. We denote the cohesive force strength (fluid-fluid) and the adhesive force strength (fluid-solid). Note the inclusion of the length scale in the form of in equation (7): this is a departure from established pairwise-force methods (Kordilla et al., 2013; Nair and Pöschel, 2018; Shigorina et al., 2017; Tartakovsky and Panchenko, 2016; Tartakovsky and Meakin, 2005; Arai et al., 2020; Liu et al., 2006), which have a scale dependency on . Our approach ensures that the units of are that of an interfacial tension. Taking to be dimensionless, the units of equation (7) are
Thus, the units of are , analogous to the true surface tension , which ensures the simulated surface tension is independent of the resolution.
3 Validation of numerical scheme
In this section we present three validation tests to verify that the pairwise force model correctly reproduces surface tension and contact angle effects. These tests not only validate the model’s ability to reproduce interfacial phenomena, they also serve to calibrate the model parameters and to the material properties of interest – the surface tension (a property of the liquid) and equilibrium contact angle (a property of the liquid-substrate pair).
3.1 Laplace pressure
The first test we use will validate the surface tension of the fluid in a static scenario, independent of fluid-solid interactions. The Young-Laplace equation describes the difference in pressure due to surface tension in a spherical droplet of radius (Bormashenko, 2017):
By testing the pressure difference at different droplet radii for a fixed inter-particle force strength , we can calibrate (and validate) the resulting surface tension . Given that we only model the fluid phase, and therefore have , we need only calculate . We do this by borrowing a technique from molecular dynamics, calculating the total pressure from a many-body simulation (Hoover, 1998). When calculated this way, the pressure due to particle-particle interactions is called virial pressure, and is defined by Tartakovsky and Meakin (2005); Allen and Tildesley (1989) as
(9) |
where is the spatial dimension (taken here to be ), is the volume of a sphere of radius , and is the sum of the pressure force and pairwise force that particle experiences due to particle . The outer summation (over ) includes only particles in the set of particles within a distance of the centre of the droplet. This so-called virial radius is used in place of the actual droplet radius to exclude the region near the interface (Tartakovsky and Meakin, 2005). When , we see a divergence of the pressure near the free surface due to the neighbourhood deficiency in the SPH approximations there. Figure 3 shows the virial pressure measured at different radii, with the pressure clearly diverging as approaches . For accurate estimates of the virial pressure we take an average of over the interval . If , we take .
For the simulations, we initialise spherical droplets consisting of particles with properties given in Table 1, in zero gravity. We randomly perturb each particle, by no more than , to speed up their rearrangement due to inter-particle forces . We then allow the droplet to reach equilibrium over before measuring the virial pressure. Figure 4 shows that the pairwise force model reproduces the linear relationship ; we can measure the surface tension at each value of as the slope of each of these lines. We also note that the standard deviation of the virial pressure over the range is relatively small and thus does not introduce significant uncertainty in the calibrated surface tensions. Plotting the measured surface tension against the model parameter reveals a simple linear relationship in Figure 5, namely
(10) |
This is consistent with the dimensional analysis in Section 2.4, and makes the prescription of surface tension in the model very simple. We have tested this relationship for particle width as small as and as large as and found it to be independent of the resolution, as expected.
Property | Value(s) |
---|---|
Density, | |
Viscosity, | |
Speed of sound, | |
Radius, | |
Resolution, | |
# Particles |



3.2 Oscillating droplets
With the surface tension now calibrated in a static scenario, we next validate the model for surface tension in a dynamic scenario. For this task we choose to study the oscillation of a free droplet that has been perturbed from its spherical equilibrium. The linear frequency of oscillation of an inviscid droplet (in the eigenmode of interest) was found by Rayleigh (1879) (with a more succinct derivation given by Landau and Lifshitz (1987)) to be
(11) |
With material properties given in Table 2, we initialise a spherical droplet of radius mm with particles that we randomly perturb by no more than , and allow the particle distribution to settle for 1ms.
Property | Value(s) |
---|---|
Density, | |
Viscosity, | |
Speed of sound, | |
Volume, | |
Resolution, | |
# Particles |
Then we ‘stretch’ the spherical droplet into an ellipsoid with the coordinate transform
Since , this transformation preserves volume, and therefore density of the fluid particles. The elements are the relative lengths of the ellipsoid’s semi-axes, which we take to be 1.0, 0.7, and 0.7, respectively.
The simulation then proceeds, with the diameter of the droplet oscillating over 3ms as shown in Figure 6 for (corresponding to ). Despite the fluid having zero viscosity in the simulation, the oscillations are clearly damped – the amplitude decreases with each oscillation. Nair and Pöschel (2018) investigate possible causes of this damping, finding that some of the system’s energy is dissipated as the particles arrange themselves into a crystal-like lattice.
Despite these effects, we can recover the frequency of the oscillations to determine the surface tension of the droplet. A discrete Fourier transform of the oscillations (Figure 7) shows a peak at 138Hz. With equation (11), we can calculate the surface tension as when . Figure 5 shows the surface tensions calculated this way, plotted against the cohesive force , corroborating the linear relationship from the Laplace pressure test in Section 3.1. Thus, we have shown in two independent tests – one static and the other dynamic – that the surface tension induced by the pairwise forces scales linearly with the interaction strength parameter .


3.3 Young-Laplace profile fitting for contact angle
Having calibrated and validated the surface tension in both static and dynamic scenarios, we now turn our attention to wetting phenomena and the adhesive force strength . The angle that a droplet’s liquid-gas interface makes with its liquid-solid interface – the contact angle – is commonly used to measure the ability of the liquid to wet the solid (Bormashenko, 2017). This angle is often measured experimentally by drawing a tangent line to the liquid-gas interface where it meets the solid; however, this would seem only to validate the model in the immediate vicinity of the contact line. Instead, we will use semi-analytical solutions for whole droplet shapes to validate the model and calibrate the adhesive force to the contact angle.
For this test, we initialise a spherical droplet at a distance of (the kernel support radius) above a flat solid surface, with a thickness of , to ensure the neighbourhood of a fluid particle near the boundary is not deficient. In all the contact angle simulations, the fluid particles have density , viscosity , and artificial speed of sound . We have simulated droplets of various surface tensions, volumes, and resolutions to ensure the model is not scale-dependent. Initially, the fluid particles are perturbed by no more than and the particle distribution is allowed to settle for under zero gravity, without interacting with the surface. Then, we switch on gravity (), allowing the droplet to fall and spread across the solid surface. After , the droplet settles and we are ready to extract the liquid-gas interface.
The liquid-gas interface of an SPH-simulated droplet is an isosurface of the density field defined by the SPH interpolation :
(12) |
where is the index set of fluid particles. We realise the implicit surface using the marching cubes algorithm, with a grid spacing of . Then, to determine the contact angle of the droplet, we fit the shape of an axisymmetric sessile droplet determined by the Young-Laplace (Y-L) equation (Danov et al., 2016) to the vertices of the SPH droplet isosurface in cylindrical polar coordinates where the origin is given by the droplet’s centre of mass.
In order to fit the data points to the Y-L surface we minimise the function
where is the contact angle, is a vertical shift of the data position, and is the minimum distance from the point to the Y-L surface for the specified volume, surface tension and contact angle. The circumference of the droplet, and therefore the number of expected isosurface vertices, increases linearly with . Thus, to account for the varying density of the samples, we weight the errors with the factor , where is a small constant to avoid division by zero.
To construct the distance function we must first compute the Y-L droplet shape for a given volume , surface tension , and contact angle . Following Danov et al. (2016) (using equations first reported by Hartland and Hartley (1976, p. 40)), we solve the system of ordinary differential equations
(13) |
from the “initial condition” until , where is the curvature at the apex of the droplet, chosen such that the correct volume is achieved. Numerically, the Y-L drop surface is given as a series of points with their gradient as an angle .
We approximate the normal distance to the surface by transforming the coordinates for a given surface segment into a local polar coordinate system
where the centre is given by the intersections of two lines passing through each of the end points of the segment perpendicular to their gradients (Figure 8). That is,
The surface location along the segment is then given by , where . The difference is taken as the approximation of the normal distance from the point to the segment. Therefore the minimum distance from the point to the surface is the minimum distance over all segments for which the surface interpolation is valid,
Figure 9 shows an example of an SPH droplet isosurface and its best fit Y-L shape. Also shown are the Y-L shapes for the contact angles and , such that and , a fitting tolerance. For each simulated droplet, this approach gives a feasible range of contact angles as well as the optimal fit. The results of measuring the contact angles of simulated droplets in this way are shown in Figures 10 and 11, grouped by surface tension and volume, respectively, and plotted against the ratio . The contact angles for different surface tensions and volumes coincide for equal values of this ratio, suggesting that the contact angle produced by the PF-SPH model is scale-independent and making the specification of the contact angle straightforward in practice. We find that for higher contact angles, where larger changes in result in only small changes in the droplet profile, the feasible range is relatively large. For intermediate contact angles between and , however, the feasible region is smaller and we can be more precise in our specification of via .



With this validation of the droplet shape and calibration of the contact angle, we now have a simple procedure for specifying the surface tension and contact angle in the PF-SPH scheme. We can calculate the required cohesive strength from equation (10). Then we can interpolate the data from Figure 10 to find the required ratio , and, knowing , calculate .
4 Case studies & numerical experiments
In this section we demonstrate the versatility of our PF-SPH scheme by presenting some numerical experiments that are usually challenging for competing computational frameworks such as interface-tracking or grid-based methods. Of course, these problems are not intractable for such methods – see, for example, works such as Jansen et al. (2012) in which an interface tracking method was used with a substrate with variable wettability, or Dupuis and Yeomans (2005) where a Lattice-Boltzmann simulation was used with a rough substrate. The advantage of our approach that we shall highlight is that PF-SPH is capable of modelling droplets on chemically and physically heterogeneous substrates with little to no modifications to the scheme.
4.1 Microstructured surface
Synthetic surfaces with manufactured microscopic roughness attract interest from scientists and engineers alike for their potential commercial applications (e.g., self-cleaning surfaces, reduced drag on marine vessels, collecting freshwater from fog (Chamakos et al., 2021)). Surfaces with sharp geometric features, however, are challenging to incorporate into computational models with explicit boundary conditions on the contact line. Here we will demonstrate the ease with which the calibrated PF-SPH model can be used to calculate the shape of a sessile droplet on a geometrically patterned surface. To do this, we will follow the experimental setup of Dupuis and Yeomans (2005) in simulating a droplet on a surface featuring square pillars, as shown in Figure 12. The parameters used in these simulations are given in Table 3.
Figure 13 shows a comparison between two almost identical numerical experiments – the only difference being the initial kinetic energy of the droplet before ‘impact’ with the surface. Figure 13(a) shows a settled droplet that was initialised with zero velocity. This droplet sits atop the pillars on the substrate, without enough energy to infiltrate the gaps between them. The droplet in Figure 13(b) was initialised with a velocity in the vertical direction of , allowing it to overcome the energy barrier discussed by Dupuis and Yeomans (2005) and transition from a ‘suspended’ to a ‘collapsed’ state, in which the fluid has infiltrated between the pillars. That the present model reproduces this qualitative behaviour suggests it should be applicable to problems with complex surfaces.
Property | Value(s) |
---|---|
Density, | |
Viscosity, | |
Speed of sound, | |
Volume, | |
Resolution, | |
# Particles | fluid particles |



4.2 Chemically patterned surface
Another type of surface heterogeneity that is widely studied is a chemically patterned surface. By manufacturing a surface with, for example, alternating hydrophobic and hydrophilic stripes, one can influence the shape or motion of a droplet. Varagnolo et al. (2014) note that controlling the motion of very small droplets in this way is one of the key problems in the design of reliable microfluidic devices. We will demonstrate that our PF-SPH is also a suitable model for the shape of a droplet settled on such a patterned surface. To include the variable wettability in the PF-SPH model, we simply modify the adhesive force strength across the surface, depending on whether a boundary particle is hydrophobic (low wettability, high ) or hydrophilic (high wettability, low ). The fluid properties for this simulation are given in Table 4. For the hydrophobic surface type, we used for an equilibrium contact angle of , and for the hydrophilic surface type, for .
One of the advantages of our PF-SPH scheme is that the relationship between the contact angle and the position and motion of the contact line is not explicitly prescribed; instead, the simulated contact angle is ultimately a function of the adhesive force strength and the geometry of the substrate. Thus, we may use the model to study the transition between contact angles on the hydrophobic and hydrophilic zones. To visualise the contact angle on the contact line, we use the surface normal of the density isosurface (12) at a distance of above the substrate. Figure 14 shows side views of the droplet and the preferential spreading on the hydrophilic stripe. The contact line is shown, coloured by the contact angle, with smooth transitions between the contact angles and . The side views reveal that the contact angle the droplet makes is vastly different on the hydrophilic substrate sections as compared to the hydrophobic sections. At its extremities, the measured contact angle reaches the specified hydrophobic value of , whereas the specified hydrophilic contact angle of is not realised in the simulation, with the lowest measured contact angle being . That our model is capable of producing such behaviour suggests it could be used to design and study manufactured, variable-wettability substrates for droplet motion control.
Property | Value(s) |
---|---|
Density, | |
Viscosity, | |
Speed of sound, | |
Volume, | |
Resolution, | |
# Particles | fluid particles |

4.3 Wheat leaf
The broader context and motivation of this work is to enable the study of droplets impacting and settling on plant leaves, for which a key challenge is calculating the shape of a droplet on a plant leaf with microscopic roughness, and chemical heterogeneity (Mayo et al., 2015). Here, we will demonstrate the model’s applicability to complex surfaces – specifically, a reconstructed wheat leaf surface. This virtual wheat leaf was reconstructed from a microCT scan using a radial basis function partition of unity method as described in related work: Whebell et al. (2023). We discretise this surface for an SPH simulation by taking a block of boundary particles on a regular grid, and discarding any for which the implicit surface indicator function is negative (). Manually selected boundary particles are labelled as hairs and assigned a higher adhesive force strength to reflect the surface chemistry of real wheat leaves. The parameters for this simulation are given in Table 5.
Property | Value(s) |
---|---|
Density, | |
Viscosity, | |
Speed of sound, | |
Volume, | |
Resolution, | |
# Particles | fluid particles |
We initialised the simulation with a sphere of fluid particles just above a hair of the wheat leaf, with zero impact velocity, to study how the droplet settles onto the surface. Figure 15 shows the shape of the droplet at 50ms, once it has lost momentum and settled on the leaf. We can visualise the contact line with a contour line on the density isosurface, where the approximate minimum distance to the leaf surface is . Specifically, Figure 16 shows the contact line visualised as the set of points
where is the set of leaf surface points. Note the highly irregular contact line following the natural curvature of the wheat leaf. This droplet shape could be used to measure the wetted area of the leaf surface or serve as an initial condition for an evaporation model in future work.


4.4 Discussion on pairwise force profiles
The exact design of the pairwise force profile is in need of more investigation before the PF-SPH model can be applied as readily as, for example, the continuum surface force formulation. Literature on the effect of the force profile is scarce. Tartakovsky and Panchenko (2016) report some analytical results predicting the surface tension from and in multiphase simulations, but we could not verify these results in our single phase simulations.
We have designed the fluid-fluid pairwise force curve to have its zero crossing at approximately the ‘rest distance’ of the particles. To do this, we imagined the particles as spheres, packed optimally in a face-centred cubic layout. The Voronoi diagram of this arrangement is the rhombic dodecahedral honeycomb. If we equate the volume of one of our particles of diameter with the volume of a rhombic dodecahedron, we find that the distance between neighbouring particles in such a packing is approximately . This was the geometric motivation behind the location of the zero crossing of the force profile in (7).
Clearly, however, this will lead to most fluid-fluid pairwise force interactions being attractive, which could cause excess numerical stress in the fluid. In the simulations tested, the mostly-attractive pairwise force has the somewhat desirable effect of keeping the particle distribution ordered – for example, in a high velocity impact event – which ensures that interpolation error is low. More investigation is needed to quantify the dissipative effect of the pairwise forces before this model is applied to viscosity-dependent scenarios.
5 Conclusion
We have presented a weakly compressible pairwise-force smoothed particle hydrodynamics model and applied it to study droplet shapes on complex surfaces. A new physically motivated pairwise force profile has been validated and calibrated to relate cohesive and adhesive parameters and to physical values of the surface tension and contact angle. Furthermore, we have described a method for calibrating the contact angle of PF-SPH models and shown that the liquid-gas interfaces of simulated droplets on flat surfaces are in good agreement with semi-analytical solutions to the Young-Laplace equations for a range of contact angles between and . The pairwise force model is scale-independent and, since it does not rely on resolving interfaces, robust to complex surface morphology.
The test cases we present in Section 4 demonstrate that this method should be applicable to a broad range of droplet-related problems on substrates of interest, at least for sessile droplets and low-inertial flows. In future work, we intend to model the chemical heterogeneity of plant leaf surfaces by varying the adhesive parameter across the surface to more accurately reflect the real surface chemistry. Other potential applications include the study of spreading and impaction on rough or patterned surfaces. With careful parameter calibration, the pairwise force model shows promise for simulating droplets on otherwise challenging substrates.
Supplementary data
Code for the SPH implementation in this work is available at https://github.com/rwhebell/Whebell2024_SessileDroplets.
Acknowledgements
We thank the associated industry partners Syngenta, NuFarm, and Plant Protection Chemistry NZ for their involvement, and collaborators Justin Cooper-White and Phil Taylor for many fruitful discussions. Computational resources used in this work were provided by the eResearch Office, Queensland University of Technology, Brisbane, Australia.
Funding
This work was financially supported by an ARC Research Training Program scholarship, as well as the ARC Linkage Grant LP160100707 and associated industry partners Syngenta and Nufarm.
Declaration of interests
The authors report no conflict of interest.
References
- Allen and Tildesley (1989) Allen, MP and Tildesley, DJ (1989). Computer Simulation of Liquids. Clarendon Press, Oxford, corrected edition. ISBN 0-19-855645-4.
- Arai et al. (2020) Arai, E; Tartakovsky, A; Holt, RG; Grace, S; and Ryan, E (2020). Comparison of surface tension generation methods in smoothed particle hydrodynamics for dynamic systems. Computers & Fluids, 203:104540. doi:10.1016/j.compfluid.2020.104540.
- Barreiro et al. (2013) Barreiro, A; Crespo, A; Domínguez, J; and Gómez-Gesteira, M (2013). Smoothed particle hydrodynamics for coastal engineering problems. Computers & Structures, 120:96–106. doi:10.1016/j.compstruc.2013.02.010.
- Bonet and Lok (1999) Bonet, J and Lok, TS (1999). Variational and momentum preservation aspects of smooth particle hydrodynamic formulations. Computer Methods in Applied Mechanics and Engineering, 180:97–115. doi:10.1016/S0045-7825(99)00051-1.
- Bormashenko (2017) Bormashenko, EY (2017). Physics of Wetting: Phenomena and Applications of Fluids on Surfaces. De Gruyter, Berlin & Boston. ISBN 978-3-11-044481-0. doi:doi:10.1515/9783110444810.
- Brown et al. (1980) Brown, R; Orr, F; and Scriven, L (1980). Static drop on an inclined plate: Analysis by the finite element method. Journal of Colloid and Interface Science, 73(1):76–87. doi:10.1016/0021-9797(80)90124-1.
- Chamakos et al. (2021) Chamakos, NT; Sema, DG; and Papathanasiou, AG (2021). Progress in modeling wetting phenomena on structured substrates. Archives of Computational Methods in Engineering, 28(3):1647–1666. doi:10.1007/s11831-020-09431-3.
- Colagrossi et al. (2009) Colagrossi, A; Antuono, M; and Le Touzé, D (2009). Theoretical considerations on the free-surface role in the smoothed-particle-hydrodynamics model. Physical Review E, 79(5):056701. doi:10.1103/PhysRevE.79.056701.
- Cole (1948) Cole, RH (1948). Underwater Explosions. Princeton University Press, Princeton, N.J.
- Crespo et al. (2015) Crespo, A; Domínguez, J; Rogers, B; Gómez-Gesteira, M; Longshaw, S; Canelas, R; Vacondio, R; Barreiro, A; and García-Feal, O (2015). DualSPHysics: Open-source parallel CFD solver based on smoothed particle hydrodynamics (SPH). Computer Physics Communications, 187:204–216. doi:10.1016/j.cpc.2014.10.004.
- Crespo et al. (2011) Crespo, AC; Dominguez, JM; Barreiro, A; Gómez-Gesteira, M; and Rogers, BD (2011). GPUs, a new tool of acceleration in CFD: Efficiency and reliability on smoothed particle hydrodynamics methods. PLoS ONE, 6(6):e20685. doi:10.1371/journal.pone.0020685.
- Danov et al. (2016) Danov, KD; Dimova, SN; Ivanov, TB; and Novev, JK (2016). Shape analysis of a rotating axisymmetric drop in gravitational field: Comparison of numerical schemes for real-time data processing. Colloids and Surfaces A: Physicochemical and Engineering Aspects, 489:75–85. doi:10.1016/j.colsurfa.2015.10.028.
- Dehnen and Aly (2012) Dehnen, W and Aly, H (2012). Improving convergence in smoothed particle hydrodynamics simulations without pairing instability: SPH without pairing instability. Monthly Notices of the Royal Astronomical Society, 425(2):1068–1082. doi:10.1111/j.1365-2966.2012.21439.x.
- Domínguez et al. (2011) Domínguez, JM; Crespo, AJC; Gómez-Gesteira, M; and Marongiu, JC (2011). Neighbour lists in smoothed particle hydrodynamics. International Journal for Numerical Methods in Fluids, 67(12):2026–2042. doi:10.1002/fld.2481.
- Domínguez et al. (2022) Domínguez, JM; Fourtakas, G; Altomare, C; Canelas, RB; Tafuni, A; García-Feal, O; Martínez-Estévez, I; Mokos, A; Vacondio, R; Crespo, AJC; Rogers, BD; Stansby, PK; and Gómez-Gesteira, M (2022). DualSPHysics: From fluid dynamics to multiphysics problems. Computational Particle Mechanics, 9(5):867–895. doi:10.1007/s40571-021-00404-2.
- Dorr et al. (2016) Dorr, GJ; Forster, WA; Mayo, LC; McCue, SW; Kempthorne, DM; Hanan, J; Turner, IW; Belward, JA; Young, J; and Zabkiewicz, JA (2016). Spray retention on whole plants: Modelling, simulations and experiments. Crop Protection, 88:118–130. doi:10.1016/j.cropro.2016.06.003.
- Dorr et al. (2015) Dorr, GJ; Wang, S; Mayo, LC; McCue, SW; Forster, WA; Hanan, J; and He, X (2015). Impaction of spray droplets on leaves: Influence of formulation and leaf character on shatter, bounce and adhesion. Experiments in Fluids, 56(7):143. doi:10.1007/s00348-015-2012-9.
- Dupuis and Yeomans (2005) Dupuis, A and Yeomans, JM (2005). Modeling droplets on superhydrophobic surfaces: Equilibrium states and transitions. Langmuir, 21(6):2624–2629. doi:10.1021/la047348i.
- Gingold and Monaghan (1977) Gingold, RA and Monaghan, JJ (1977). Smoothed particle hydrodynamics: Theory and application to non-spherical stars. Monthly Notices of the Royal Astronomical Society, 181(3):375–389. doi:10.1093/mnras/181.3.375.
- Hartland and Hartley (1976) Hartland, S and Hartley, RW (1976). Axisymmetric Fluid-Liquid Interfaces: Tables Giving the Shape of Sessile and Pendant Drops and External Menisci, with Examples of Their Use. Elsevier Scientific Pub. Co, Amsterdam & New York. ISBN 978-0-444-41396-3.
- Hocking (1992) Hocking, LM (1992). Rival contact-angle models and the spreading of drops. Journal of Fluid Mechanics, 239:671–681. doi:10.1017/S0022112092004579.
- Hoover (1998) Hoover, W (1998). Isomorphism linking smooth particles and embedded atoms. Physica A: Statistical Mechanics and its Applications, 260(3-4):244–254. doi:10.1016/S0378-4371(98)00357-4.
- Ihmsen et al. (2011) Ihmsen, M; Akinci, N; Becker, M; and Teschner, M (2011). A parallel SPH implementation on multi-core CPUs. Computer Graphics Forum, 30(1):99–112. doi:10.1111/j.1467-8659.2010.01832.x.
- Jamali and Tafreshi (2021) Jamali, M and Tafreshi, HV (2021). Numerical simulation of two-phase droplets on a curved surface using Surface Evolver. Colloids and Surfaces A: Physicochemical and Engineering Aspects, 629:127418. doi:10.1016/j.colsurfa.2021.127418.
- Jansen et al. (2012) Jansen, HP; Bliznyuk, O; Kooij, ES; Poelsema, B; and Zandvliet, HJW (2012). Simulating anisotropic droplet shapes on chemically striped patterned surfaces. Langmuir, 28(1):499–505. doi:10.1021/la2039625.
- Jones (1924) Jones, JE (1924). On the determination of molecular fields.—I. From the variation of the viscosity of a gas with temperature. Proceedings of the Royal Society of London. Series A, 106(738):441–462. doi:10.1098/rspa.1924.0081.
- Kordilla et al. (2013) Kordilla, J; Tartakovsky, AM; and Geyer, T (2013). A smoothed particle hydrodynamics model for droplet and film flow on smooth and rough fracture surfaces. Advances in Water Resources, 59:1–14. doi:10.1016/j.advwatres.2013.04.009.
- Landau and Lifshitz (1987) Landau, LD and Lifshitz, EM (1987). Fluid mechanics, volume 6 of Course of Theoretical Physics. Pergamon Press, Oxford, England; New York, 2nd edition. ISBN 978-0-08-033933-7.
- Leimkuhler and Matthews (2015) Leimkuhler, B and Matthews, C (2015). Molecular Dynamics: With Deterministic and Stochastic Numerical Methods, volume 39 of Interdisciplinary Applied Mathematics. Springer International Publishing, Cham. ISBN 978-3-319-16374-1. doi:10.1007/978-3-319-16375-8.
- Liu et al. (2006) Liu, M; Meakin, P; and Huang, H (2006). Dissipative particle dynamics with attractive and repulsive particle-particle interactions. Physics of Fluids, 18(1):017101. doi:10.1063/1.2163366.
- Lucy (1977) Lucy, LB (1977). A numerical approach to the testing of the fission hypothesis. The Astronomical Journal, 82:1013. doi:10.1086/112164.
- Macia et al. (2011) Macia, F; Antuono, M; Gonzalez, LM; and Colagrossi, A (2011). Theoretical analysis of the no-slip boundary condition enforcement in SPH methods. Progress of Theoretical Physics, 125(6):1091–1121. doi:10.1143/PTP.125.1091.
- Mayo et al. (2015) Mayo, LC; McCue, SW; Moroney, TJ; Forster, WA; Kempthorne, DM; Belward, JA; and Turner, IW (2015). Simulating droplet motion on virtual leaf surfaces. Royal Society Open Science, 2(5):140528. doi:10.1098/rsos.140528.
- Monaghan (1994) Monaghan, J (1994). Simulating free surface flows with SPH. Journal of Computational Physics, 110(2):399–406. doi:10.1006/jcph.1994.1034.
- Monaghan and Gingold (1983) Monaghan, J and Gingold, R (1983). Shock simulation by the particle method SPH. Journal of Computational Physics, 52(2):374–389. doi:10.1016/0021-9991(83)90036-0.
- Monaghan (2005) Monaghan, JJ (2005). Smoothed particle hydrodynamics. Reports on Progress in Physics, 68(8):1703–1759. doi:10.1088/0034-4885/68/8/R01.
- Müller et al. (2004) Müller, M; Schirm, S; and Teschner, M (2004). Interactive blood simulation for virtual surgery based on smoothed particle hydrodynamics. Technology & Health Care, 12(1):25–31. doi:10.3233/thc-2004-12103.
- Nair and Pöschel (2018) Nair, P and Pöschel, T (2018). Dynamic capillary phenomena using incompressible SPH. Chemical Engineering Science, 176:192–204. doi:10.1016/j.ces.2017.10.042.
- Ravi Annapragada et al. (2012) Ravi Annapragada, S; Murthy, JY; and Garimella, SV (2012). Droplet retention on an incline. International Journal of Heat and Mass Transfer, 55(5-6):1457–1465. doi:10.1016/j.ijheatmasstransfer.2011.09.057.
- Rayleigh (1879) Rayleigh, L (1879). On the capillary phenomena of jets. Proceedings of the Royal Society of London, 29:71–97.
- Shigorina et al. (2017) Shigorina, E; Kordilla, J; and Tartakovsky, AM (2017). Smoothed particle hydrodynamics study of the roughness effect on contact angle and droplet flow. Physical Review E, 96:033115. doi:10.1103/physreve.96.033115.
- Springel (2010) Springel, V (2010). Smoothed particle hydrodynamics in astrophysics. Annual Review of Astronomy and Astrophysics, 48(1):391–430. doi:10.1146/annurev-astro-081309-130914.
- Tartakovsky and Meakin (2005) Tartakovsky, A and Meakin, P (2005). Modeling of surface tension and contact angles with smoothed particle hydrodynamics. Physical Review E, 72(2):026301. doi:10.1103/PhysRevE.72.026301.
- Tartakovsky and Panchenko (2016) Tartakovsky, AM and Panchenko, A (2016). Pairwise force smoothed particle hydrodynamics model for multiphase flow: Surface tension and contact line dynamics. Journal of Computational Physics, 305:1119–1146. doi:10.1016/j.jcp.2015.08.037.
- Tredenick et al. (2021) Tredenick, EC; Forster, WA; Pethiyagoda, R; van Leeuwen, RM; and McCue, SW (2021). Evaporating droplets on inclined plant leaves and synthetic surfaces: Experiments and mathematical models. Journal of Colloid and Interface Science, 592:329–341. doi:10.1016/j.jcis.2021.01.070.
- Varagnolo et al. (2014) Varagnolo, S; Schiocchet, V; Ferraro, D; Pierno, M; Mistura, G; Sbragaglia, M; Gupta, A; and Amati, G (2014). Tuning drop motion by chemical patterning of surfaces. Langmuir, 30(9):2401–2409. doi:10.1021/la404502g.
- Wang et al. (2016) Wang, ZB; Chen, R; Wang, H; Liao, Q; Zhu, X; and Li, SZ (2016). An overview of smoothed particle hydrodynamics for simulating multiphase flow. Applied Mathematical Modelling, 40(23-24):9625–9655. doi:10.1016/j.apm.2016.06.030.
- Wendland (1995) Wendland, H (1995). Piecewise polynomial, positive definite and compactly supported radial functions of minimal degree. Advances in Computational Mathematics, 4(1):389–396. doi:10.1007/BF02123482.
- Whebell et al. (2023) Whebell, RM; Moroney, TJ; Turner, IW; Pethiyagoda, R; Wille, ML; Cooper-White, JJ; Kumar, A; Taylor, P; and McCue, SW (2023). Data fusion for a multi-scale model of a wheat leaf surface: A unifying approach using a radial basis function partition of unity method. doi:10.48550/arXiv.2309.09425.
- Ye et al. (2019) Ye, T; Pan, D; Huang, C; and Liu, M (2019). Smoothed particle hydrodynamics (SPH) for complex fluid flows: Recent developments in methodology and applications. Physics of Fluids, 31(1):011301. doi:10.1063/1.5068697.
- Zhu and Fox (2001) Zhu, Y and Fox, PJ (2001). Smoothed particle hydrodynamics model for diffusion through porous media. Transport in Porous Media, 43:441–471. doi:10.1023/A:1010769915901.