1. Introduction
Accurate mesoscale models of wetting processes are of prime importance for understanding and controlling fluid dynamics from the millimetre down to the nanometre scale. Applications in this range of scales include additive manufacturing (de Ruiter et al. Reference de Ruiter, Royon, Snoeijer and Brunet2018), hydrogen storage (van Rooijen et al. Reference van Rooijen, Hashemi, Boon, Farajzadeh and Hajibeygi2022), heat transfer (Bureš & Sato Reference Bureš and Sato2021) and energy production (Liu et al. Reference Liu, Gao, Sun and Yao2024). Wetting dynamics is determined by the motion of three-phase contact lines, i.e. the regions of space where an interface between fluids meets a solid surface. Despite moving contact lines being commonly observed, even in daily experience, their hydrodynamic description is not trivial. Huh & Scriven (Reference Huh and Scriven1971) found that the solution of Stokes equations for the flow near a planar interface impinging on a flat surface presents a non-integrable stress singularity at the contact line, if no-slip boundary conditions are applied at the solid wall. Replacing the no-slip boundary conditions with Navier slip conditions relaxes the non-integrable stress singularity, as shown by Dussan V (Reference Dussan V1976) and Hocking (Reference Hocking1977). The Navier slip model is, however, insufficient to completely regularise contact line dynamics, as it produces an integrable pressure divergence (Huh & Mason Reference Huh and Mason1977); this singularity can be avoided by allowing the contact angle to be a dynamic quantity (Fricke et al. Reference Fricke, Köhne and Bothe2019), or by introducing a second-order slip condition (Kulkarni et al. Reference Kulkarni, Fullana and Zaleski2023).
Significant deviations from the no-slip boundary condition have been observed in molecular dynamics (MD) simulations, as already shown in the seminal works by Koplik et al. (Reference Koplik, Banavar and Willemsen1988, Reference Koplik, Banavar and Willemsen1989) and Thompson & Robbins (Reference Thompson and Robbins1989). Ren & E (Reference Ren and E2007) showed a substantial increase of the slip length in the contact line region for a nanoconfined two-phase Couette flow. Furthermore, experimental evidence (Deng et al. Reference Deng, Chen, Liu, Yu and Wang2016; Ludwicki et al. Reference Ludwicki, Kern, McCraney, Bostwick, Daniel and Steen2022) suggests that the contact angle between the liquid/liquid interface and the solid surface is a dynamic observable, whose deviation from equilibrium correlates with the velocity of the contact line.
Liquid/solid slip, possibly localised in the contact line region and associated with contact angle dynamics, is therefore an essential ingredient required to model moving contact lines. Albeit micrometre-scale slip lengths have been measured on patterned or lubricated surfaces, the slip length on flat hydrophilic surfaces is usually on the order of nanometres, sometimes too small to even be measured reliably (Lauga et al. Reference Lauga, Brenner and Stone2007). Very small slip lengths represent a challenge for the computational modelling of contact lines, since they entail unattainable mesh refinement in the contact line region (Afkhami et al. Reference Afkhami, Zaleski and Bussmann2009). Therefore, most common approaches in computational fluid dynamics adopt slip lengths that are unphysically large, simply to ensure numerical feasibility. While this scale-separation challenge persists, the flow and wetting community has reached no consensus regarding the physical validity of macroscale models (Bothe Reference Bothe2020; Shikhmurzaev Reference Shikhmurzaev2020a ,Reference Shikhmurzaev b ). This point stresses the importance of accurate mesoscale models that can serve as an intermediary between the molecular and macroscopic descriptions of contact lines, as highlighted in the review by Smith et al. (Reference Smith, Theodorakis, Craster and Matar2018). Among several continuous models, phase field techniques have proven remarkably effective in reproducing the motion of contact lines observed in experiments (Carlson et al. Reference Carlson, Do-Quang and Amberg2011) and molecular simulations (Qian et al. Reference Qian, Wang and Sheng2003; Diewald et al. Reference Diewald, Lautenschlaeger, Stephan, Langenbach, Kuhn, Seckler, Bungartz, Hasse and Müller2020). A popular ‘flavour’ of phase field models is Cahn–Hilliard Navier–Stokes (CHNS) equations, conceived to reproduce the dynamics of interfaces between fluids in the absence of phase transitions (Jacqmin Reference Jacqmin1999). The success of CHNS equations originates from their capability to displace contact lines by virtue of a localised diffusive slip owing to a finite interface thickness, which is able to regularise the stress singularity even in the absence of Navier slip. Furthermore, contact angle dynamics can be easily incorporated into the boundary conditions of the Cahn–Hilliard equations, as shown by Yue & Feng (Reference Yue and Feng2011b ).
Several experimental techniques have been used to verify hydrodynamic models of contact lines. Traditional techniques such as particle image velocimetry or goniometry have greatly evolved and can now provide abundant information on the interface reconfiguration and the flow profile in wetting dynamics (Xia & Steen Reference Xia and Steen2020; Gupta et al. Reference Gupta, Chandrala and Dixit2024). However, experimental approaches relying on optical microscopy cannot resolve the nanoscale structure of flow and interfaces close to contact lines, as it lies below the optical resolution limit. On the other hand, techniques capable of probing nanoscopic physics, such as atomic force microscopy (Deng et al. Reference Deng, Xu, Lu, Wang and Shi2018), cannot provide a detailed picture of the fluid dynamics occurring at those scales. Due to these experimental limitations, MD simulations have emerged as a complementary tool that can be used to reach the nanoscopic scale, while providing very detailed information on the fluid dynamics of contact lines (Fernández-Toledano et al. Reference Fernández-Toledano, Blake, De Coninck and Kanduč2020; Giri et al. Reference Giri, Malgaretti, Peschka and Sega2022; Badr et al. Reference Badr, Hauer, Vollmer and Schmid2024). At the same time, MD simulations allow us to finely control both the wettability of the surface and the speed of the wetting process. Furthermore, one can obtain both large and small slip length, depending on the geometry and the chemical parametrisation of the solid surface. In this work, we utilise a silica-like surface that yields virtually zero slip with water; this choice allows us to test the capability of CHNS equations to introduce slip only locally to the contact line.
The viscosity of the wetting fluids, and the friction between the fluids and the solid surface in the contact line region, contact line friction, constitute the two channels of energy dissipation in wetting dynamics on flat rigid surfaces. Viscosity and friction affect the curvature of the fluid–fluid interface, giving rise to a deviation from the equilibrium configurations determined by the combination of Young–Laplace and Young–Dupré equations. In particular, viscous dissipation bends the interface proportionally to the flow velocity gradient, while contact line friction tilts the contact angle proportionally to the speed of the contact line. Do-Quang et al. (Reference Do-Quang, Shiomi and Amberg2015) suggested that the effect of contact line friction may be substantial if wetting occurs on a high-energy surface and the viscosity of the wetting liquid is sufficiently small.
The most convenient system used in MD simulations to study wetting dynamics is a two-phase Couette flow: a liquid meniscus is confined between two solid walls, with vapour forming the other fluid phase. This setup is inconvenient when analysing the flow profile in the proximity of contact lines, since density and velocity fields cannot be sampled in the vapour phase for a nano-confined system, where the Knudsen number is
$O(1)$
. We instead simulate a system composed by two immiscible liquids, water and hexane, which can be more readily compared to the continuous counterpart. It is known that streamlines resulting from CHNS simulations may cross the liquid/liquid interface close to the contact line, as a result of the local diffusive slip (Lācis et al. Reference Lācis, Johansson, Fullana, Hess, Amberg, Bagheri and Zaleski2020). We therefore compare the flow profiles between MD and CHNS, and study whether streamline crossing may be mitigated in CHNS simulations by choosing a mobility parameter that is as tight as possible to the sharp interface condition.
The main goal of this work is to reproduce interface curvature quantitatively and for a wide range of typical flow velocities, therefore testing if CHNS can accurately capture both sources of energy dissipation. This is achieved by establishing a systematic protocol requiring minimal parameter fitting. We demonstrate that contact line friction coefficients for advancing and receding contact lines are the only parameters required to be calibrated against MD. Once these are determined, phase field parameters (interface thickness and mobility) are set primarily by numerical considerations, namely the sharp interface condition. Shear viscosity coefficients are measured independently from MD, and a sub-nanometric Navier slip is introduced only to ensure numerical stability. This protocol yields quantitative reproduction of interface curvature for a wide range of contact line speeds, validating that contact line friction is the essential molecular input for accurate mesoscale wetting models. We further test this calibration by comparing steady contact line displacement and flow structure between MD and CHNS, and examine the limits of validity as velocity increases.
The paper is organised as follows. In § 2, we introduce CHNS equations, with a focus on the wetting, boundary and sharp interface conditions. In § 3, we describe the system simulated using MD, how fluid flow is driven, and how interfaces and contact line friction are determined. In § 4, we compare the results of the two simulation techniques, and in particular interface curvature, steady displacement of contact lines, and flow profiles. In § 5, we discuss the sensitivity of numerical and physical parameters, and the attainment of the sharp interface limit. Finally, in § 6, we draw conclusions and highlight the advancement with respect to previous work.
2. CHNS equations
2.1. Equations and boundary conditions
The simulated biphasic system is sketched in figure 1. The phase field model defines the free energy per unit volume of the binary mixture (Cahn & Hilliard Reference Cahn and Hilliard1958) as
where
$\varepsilon$
is the interface thickness,
$C$
is the order parameter ranging from
$-1$
in hexane to
$+1$
in water, and
$\sigma$
is the water/hexane surface tension, measured from MD to be
$5.19\times 10^{-2}$
Pa m (see Appendix A). The double well potential function
$\psi = (C^2 -1)^2/4$
has minima in the bulk phases. The first term denotes the interfacial energy making the components of the binary system want to mix, whereas the second term denotes the bulk energy that prefers total phase separation of the two phases into domains of pure components.
Geometry of the system simulated with CHNS equations. Material properties are obtained from MD simulations.

The motion of the diffuse interface in the form of the transport of the order parameter is governed by the Cahn–Hilliard equation
with
being the chemical potential derived by taking the variational derivative of the free-energy equation. A change in chemical potential across the interface drives it forwards. Here,
$M$
is the mobility parameter, which we set by using the sharp interface condition found to be valid for no-slip boundary conditions (Yue & Feng Reference Yue and Feng2011a
). This will be discussed in detail in § 2.2.
In order to couple the Cahn–Hilliard equations to the Navier–Stokes equations, a surface tension source term is added to the Navier–Stokes equations, which results in the CHNS equations
\begin{equation} \begin{cases} \rho (C) \left (\dfrac {\partial \boldsymbol {u}}{\partial t} + \boldsymbol {u}\boldsymbol{\cdot }\boldsymbol {\nabla }\boldsymbol {u}\right ) = -\boldsymbol {\nabla }p + \boldsymbol {\nabla }\left [\eta (C)\left (\boldsymbol {\nabla }\boldsymbol {u} + \boldsymbol {\nabla }\boldsymbol {u}^{\rm T}\right )\right ] + \phi\, \boldsymbol {\nabla }C, \\[3pt] \boldsymbol {\nabla }\boldsymbol{\cdot }\boldsymbol {u} = 0, \end{cases} \end{equation}
with
$\rho (C)$
and
$\eta (C)$
being respectively the density and the viscosity of the two liquid phases. Note that there is no gravity contribution in (2.4), owing to the size of the system being much smaller than the capillary length. These equations are solved using the following boundary conditions at the walls:
where
$\varGamma$
is a positive phenomenological parameter that determines how fast the contact line relaxes to the equilibrium angle
$\theta _0$
, and
$\ell _N$
is a sub-nanometric Navier slip length introduced as numerical regularisation.
We emphasise that (2.7) is not an ad hoc closure, but follows from the variational structure of the model. Supplementing the free energy (2.1) with a surface free-energy density that depends on the boundary value of the concentration, and taking its variational derivative with respect to
$C$
at the wall, yields an equilibrium wetting condition in which
$\theta _0$
enters through the solid–fluid interfacial energies (Jacqmin Reference Jacqmin1999; Yue & Feng Reference Yue and Feng2011b
). Equation (2.7) relaxes this condition dynamically, with
$\varGamma$
setting the rate at which the contact line approaches the wall’s preferred energy state.
The combination of a thin diffuse interface and zero-slip boundary conditions creates an extremely stiff numerical problem requiring very small time steps and leading to convergence difficulties. Finite slip, kept physically negligible (table 1), ensures numerical stability. Equations (2.5) and (2.6) are the Navier-slip, impermeability and zero diffusive flux boundary conditions, whereas (2.7) is the wall-energy relaxation boundary condition that governs the dynamics of the contact line according to the contact angle (Carlson et al. Reference Carlson, Do-Quang and Amberg2011). A contact line friction coefficient can be defined by comparing results by Yue & Feng (Reference Yue and Feng2011b ) on the wetting boundary condition for a steady slow flow with Molecular Kinetic Theory (Blake & Haynes Reference Blake and Haynes1969):
Set of parameters obtained after the calibration procedure. Equilibrium contact angles are computed directly from MD simulations, while all other parameters are calibrated under the constraint of (2.9) to reproduce MD results. The
$95\,\%$
intervals on
$\mu _{\!f}$
carry the same relative tolerance as the MD friction coefficients
$\mu _{\!f}^{*}$
(see table 4).

Table 1. Long description
A table comparing various parameters obtained from a calibration procedure. The table has two rows and six columns. Column headers are theta 0 (deg.), mu adv f (cP), mu rec f (cP), epsilon (nm), M (nm2 ps-1 bar-1), and epsilon N (nm). Row 1: theta 0, 97.3; mu adv f, 2.86; mu rec f, 7.09; epsilon, 0.3; M, 9.04 x 10-6; epsilon N, 5 x 10-3. Row 2: theta 0, 80.9; mu adv f, 4.71; mu rec f, 14.09; epsilon, 0.3; M, 9.04 x 10-6; epsilon N, 5 x 10-4.
The relaxation parameter
$\varGamma$
has dimensions
$(\text{Pa}\ \text{s}\ \text{m})^{-1}$
. In the simulations, we only calibrate
$\mu _{\!f}$
, holding the interface thickness
$\varepsilon$
to a fixed value, bounded from below by the MD interface width, and large enough that the interface can be resolved with a computationally feasible mesh (see § 2.2). The relaxation parameter
$\varGamma$
then follows from
$\mu _{\!f}$
through (2.8), rather than being tuned independently. For
$\varepsilon = 0.3$
nm and
$\mu _{\!f}$
of table 1,
$\varGamma$
lies in the range
$\approx 2.4\times 10^{11}$
–
$1.2\times 10^{12}\ (\text{Pa}\ \text{s}\ \text{m})^{-1}$
.
The full system of fluid and phase field equations, together with the boundary conditions, is discretised and solved using open-source code FreeFEM (Hecht Reference Hecht2012). Adaptive mesh is used near the two-phase interface to capture the variation of the function
$C$
. Additional details on the weak formulation of the CHNS equations and on the numerical methods are provided in the supplementary material is available at https://doi.org/10.1017/jfm.2026.12239.
2.2. Interface sharpness
In order to select the appropriate range of free parameters
$\varepsilon$
,
$M$
and
$\ell _N$
to match the MD simulations, we start by fixing a physically sensible interface thickness
$\varepsilon$
. Due to numerical limitations, the interface thickness of CHNS equations typically overestimates the intrinsic interface width of immiscible molecular systems. In our case, we use
$\varepsilon =0.3$
nm. Next, the range of the mobility parameter
$M$
is obtained by considering the sharp interface condition found by Yue et al. (Reference Yue, Zhou and Feng2010) as
where
$\eta ^*=\sqrt {\eta _w \eta _h}$
is the effective viscosity at the interface, defined as the geometric average of the viscosity coefficients of the two liquids.
3. MD simulations
3.1. Force fields and configuration
The molecular systems are composed of 128 440 water molecules, 15 624 hexane molecules and 4464 solid molecules. The systems are simulated in cubic boxes of linear dimensions
$L_x=83.7\mbox{ nm},\ L_y=4.6\mbox{ nm},\ L_z=21.1\mbox{ nm}$
, with periodic boundary conditions on all edges (figure 2).
Representation of the molecular system viewed from the
$xz$
plane. The length scales reported in the figure indicate the horizontal and vertical size of the periodic box. The inset shows a zoom on the bottom left contact line, and highlights the three molecular species: water, hexane and silica quadrupoles.

Molecular interactions include short-range van der Waals forces (modelled via the Lennard-Jones potential), long-range Coulomb electrostatic forces (treated with the particle-mesh Ewald method), covalent bonds, angles and dihedrals (treated as constraints or listed forces). Water molecules are parametrised by the single point charge, extended (SPC/E) model by Berendsen et al. (Reference Berendsen, Grigera and Straatsma1987), while hexane molecules are parametrised via the optimised potentials for liquid simulations, all-atom (OPLS-AA) force field by Jorgensen et al. (Reference Jorgensen, Maxwell and Tirado-Rives1996). Solid molecules are linear silica quadrupoles (SiO
$_2$
) arranged in a hexagonal lattice with spacing
$d_l=0.45$
nm. Silica molecules are restrained to the lattice by a quadratic spring potential. Partial electric charges are placed on oxygen and silicon atoms in the quadrupole (
$q_O=-0.5q_{Si}=q$
); charges can be tuned to achieve different equilibrium contact angles. While this model for the solid substrate is not realistic, in the sense that it does not reproduce the conformation of amorphous or crystalline silica, it has proved effective in reproducing an almost ideal no-slip boundary condition (Johansson et al. Reference Johansson, Carlson and Hess2015; Johansson & Hess Reference Johansson and Hess2018). It is furthermore relatively easy to parametrise. The inset in figure 2 shows a close-up of the near-contact line molecular arrangement. The choice of materials is motivated on the one hand by the immiscibility of water and hexane, which can be readily captured through the free-energy definition in the CHNS model, and on the other hand by the possibility of forming hydrogen bonds between water and silica, thereby reproducing the physical conditions associated with the absence of slip on hydrophilic surfaces. The three-point rigid water model was selected by considering the trade-off between computational complexity and the capability to reproduce rheological properties of liquid water.
Interaction parameters for non-bonded forces between different molecular species are generated via geometric combining rules, consistently with the choice of OPLS-AA. All bonds with hydrogen atoms are treated as constraints, while all other bonds and angles are modelled as springs. Atomic positions and velocities are propagated in time using the leapfrog integrator with time step
$\delta t=2$
fs; this is a common choice for simulations that treat C–H and O–H bonds as constraints, and falls well within the stability region of the leapfrog integrator. All simulations are performed with a modified version of GROMACS 2023 (Abraham et al. Reference Abraham, Murtola, Schulz, Páll, Smith, Hess and Lindahl2015). For additional technical information on molecular simulations parameters and configuration files, we refer to the GROMACS official documentation (manual.gromacs.org/2023) and to the configuration files deposited on Zenodo (Pellegrino & Hess Reference Pellegrino and Hess2024a
,Reference Pellegrino and Hess
b
).
3.2. Simulation setup
Simulation boxes are prepared by inserting water molecules in the central rectangular region corresponding to half of the total length of the simulation box, and solvating the rest with hexane. The initial vertical coordinate of silicon atoms in the quadrupoles forming the solid walls is placed 1 nm from the box edge. The system is then equilibrated at constant temperature and pressure, respectively 300 K and 1 bar. Temperature control is achieved via the stochastic velocity rescale thermostat by Bussi et al. (Reference Bussi, Donadio and Parrinello2007) (v-rescale in GROMACS), while pressure is controlled with the stochastic cell rescale barostat by Bernetti & Bussi (Reference Bernetti and Bussi2020) (c-rescale in GROMACS). The simulation box is allowed to deform only in the vertical direction (i.e. perpendicular to the solid walls). The centre of mass of the reference positions of restrained wall atoms are scaled with the simulation box, effectively allowing the wall location to adapt to the compression/dilation of the liquids without deforming the geometry of the walls. In the equilibration phase, both the thermostat and the barostat are applied every 1 ps, and last until both temperature and the box dimension are stationary. The same thermostat is applied in the non-equilibrium shear simulations, while the barostat is deactivated. It is important to note that the use of a stochastic velocity rescaling algorithm under non-equilibrium conditions can produce artificial cooling, also known as the ‘flying ice cube effect’. This artefact can be mitigated or entirely removed by employing a profile-biased thermostat (Bernardi et al. Reference Bernardi, Todd and Searles2010) or a dissipative particle dynamics thermostat (Soddemann et al. Reference Soddemann, Dünweg and Kremer2003). In our case, we estimate that the use of velocity rescaling leads at worst to a local temperature deviation of less than 0.1 K. Therefore, we do not consider this effect to be substantial.
To produce a two-phase Couette flow, the lower and upper walls are displaced in opposite directions while the volume and temperature of the system are kept constant. This imposes a flow symmetry whereby the position of the centre of mass of the system is conserved, except for drifts caused by thermal fluctuations and numerical round-off errors. If the resulting flow is steady, then the magnitude of the contact line speed
$u_{cl}$
in the frame of reference of the moving wall equates to that of the moving walls in the laboratory frame of reference. By convention, the speed of advancing contact lines has positive sign, and that of receding contact lines has negative sign. The non-equilibrium simulations are performed for
$u_w\in [1.12,4.84]$
ms−1 and for a total time ranging between
${\sim}50$
and
${\sim}90$
ns, depending on the wall speed and the surface wettability.
Due to the sheer size of the molecular system and the length of the simulations, it is impractical to output, store and analyse frequently sampled trajectories containing atomic positions and coordinates. Moreover, the quasi-two-dimensional nature of the system can be exploited both for the extraction of the liquid/liquid interface location and for the comparison with two-dimensional CHNS equations. Density, velocity and temperature fields for both liquids are binned on-the-fly on a two-dimensional homogeneous structured grid in the
$xz$
plane, averaging over the direction spanned by
$y$
. The grid contains
$N_x=419$
cells along
$x$
, and
$N_z=105$
cells along
$z$
. Flow fields are also averaged in time in 20 ps windows, and stored after averaging. Further details regarding system preparation, equilibration and non-equilibrium runs can be found in the supplementary material.
3.3. Observables
The detection of the liquid/liquid interface and the measurement of contact line friction follow the procedure of Lācis et al. (Reference Lācis, Pellegrino, Sundin, Amberg, Zaleski, Hess and Bagheri2022). Details on the interface extraction are presented in Appendix A. Figure 3 shows the dynamic contact angle as a function of the speed of the contact lines. As can be noted by observing the different trend for negative and positive contact line speed, advancing and receding contact lines experience different frictions. This phenomenon has been previously observed for water/vapour interfaces moving on the same type of surface (Pellegrino & Hess Reference Pellegrino and Hess2022). We will therefore fit two separate contact line friction coefficients for advancing and receding contact lines. It is worth remarking that the different contact line frictions on advancing and receding sides are related to non-equilibrium dynamic behaviour, and should be distinguished from contact angle hysteresis, which refers to differences between advancing and receding contact angles at the onset of contact line motion. The shear viscosity coefficients of water and hexane can also be measured from molecular simulations; they are respectively
$\eta _w=0.69$
cP and
$\eta _h=0.36$
cP (refer to Appendix A for the details on the calculation).
Relation between contact line speed and dynamic contact angle for
$\theta _0\simeq 97.3^{\circ }$
(blue circles) and
$\theta _0\simeq 80.9^{\circ }$
(red diamonds), determined from MD simulations. Error bars refer to the uncertainty on the steady dynamic contact angle. Square markers indicate the dynamic contact angles computed from CHNS simulations, obtained through the calibration procedure discussed in § 4.

4. Comparison between simulation techniques
We calibrate the CHNS model following a systematic procedure. We first select the value of the interface thickness
$\varepsilon$
that matches the MD simulation results (see Appendix A). Contact line friction coefficients (
$\mu _{\!f}^{{adv}}$
and
$\mu _{\!f}^{{rec}}$
) are then extracted empirically from MD contact angle data (figure 3), fixing the threshold mobility
$M$
from the sharp interface condition. The equilibrium and dynamic contact angles are shown to be independent of
$M$
: this allows us to capture the correct interface curvature, as a first essential step. We subsequently refine
$M$
, still constrained by (2.9), to match the steady contact line displacement observed in MD simulations. We then verify the flow field to ensure that there is minimal streamline crossing, confirming that
$M$
is in the appropriate range. The Navier slip length
$\ell _N$
is not treated as a fitting parameter: it is fixed at a sub-nanometric value (of order
$10^{-3}$
nm, well below atomic length scales and therefore not physically meaningful) solely to ensure numerical stability, and we verify in § 5.1 that it has a weak effect on the steady contact line displacement for values in the range considered. This multi-observable approach ensures that the model accurately captures contact line physics, while simultaneously testing its robustness. The values of the parameters resulting from the calibration procedure are listed in table 1.
4.1. Interfacial curvature
The values of
$\mu _{\!f}^{adv}$
and
$\mu _{\!f}^{rec}$
are tuned to reconstruct the profiles of the contact line speed against the dynamic contact angle (figure 3). This choice stems from the interpenetration given by Molecular Kinetic Theory to the contact line friction coefficient, which measures the response of the uncompensated Young stress (or alternatively the contact angle) to the motion of the contact line.
Interface curvature profiles for hydrophobic surfaces, for
$u_{cl}$
values (a) 2.61 ms−1, (b) 3.35 ms−1, (c) 4.1 ms−1, and hydrophilic surfaces, for
$u_{cl}$
values (d) 1.12 ms−1, (e) 1.86 ms−1, (f) 2.98 ms−1. The interface angle
$\theta _I$
is computed taking the lower wall as reference. Therefore, the contact angle in the frame of reference of the upper wall would be
$\pi -\theta _I$
.

To compare the interfacial curvature, we compute the angle
$\theta _I(z)$
between the steady liquid/liquid interface and the
$x$
-parallel plane (see figure 1). Results are shown in figure 4. The reconfiguration of liquid/liquid interfaces is an effect of the two main channels of energy dissipation: contact line friction and viscosity. Contact line friction produces a difference between equilibrium and dynamic contact angle, and hence is responsible for the shifting the profile of
$\theta _I(z)$
downwards with respect to the straight line corresponding to the equilibrium interface. On the other hand, viscosity produces a deviation of the interface curvature from equilibrium, i.e. the inflection of
$\theta _I(z)$
. As we will discuss in § 5.1, the dynamic contact angle is not affected by Cahn–Hilliard mobility
$M$
, while the interface curvature profile is.
The profiles of
$\theta _I(z)$
show quantitative agreement in all cases where contact line speed is sufficiently small; this indicates that the phase field model is capable of capturing the effect of both contact line friction and viscosity for moderate deviations from equilibrium. The capability of replicating viscous bending is not surprising: this is essentially an outcome of the Navier–Stokes equations, thus it should be captured by continuous hydrodynamics. The accentuation of interface curvature upon increasing contact line speed agrees with the results of Fullana et al. (Reference Fullana, Zaleski and Amberg2025), which derived a scaling in the absence of contact line friction. On the other hand, the reconstruction of interface curvature in the near-wall region is mainly due to contact line friction. This represents an advancement with respect to previous studies, as it clearly shows that microscopic contact angle relaxation is as important as viscous bending in determining apparent contact angles, corresponding to zero-slope points in the graphs of figure 4.
4.2. Steady contact line displacement
After a sufficiently long transient, and for sufficiently small wall velocities, a steady two-phase Couette flow develops. The steady displacement between the advancing and the receding contact lines
$\Delta x_{cl}$
depends on the wall speed, and it is found to be sensitive to slip parameters
$M$
and
$\ell _N$
(see § 5.1). Hence it is reasonable to choose it as reference observable to calibrate CHNS equations against. The calibration is constrained by the sharp interface limit equation (2.9), so that the values of
$M$
and
$\varepsilon$
are bounded from below, while
$M$
and
$\ell _N$
are varied to minimise the difference with respect to the time-averaged steady displacement obtained from MD simulations.
Steady displacement against contact line speed. The error bars show the standard deviation of the contact line displacement computed from MD simulations.

The results shown in figure 5 correspond to the choice of parameters reported in table 1. For the hydrophobic substrate (
$\theta _0 = 97.3^\circ$
), the calibration is satisfactory: all results from CHNS simulations fall within the uncertainty of the average displacement computed from MD simulations across the full range of contact line speeds investigated. For the hydrophilic substrate (
$\theta _0 = 80.9^\circ$
), the agreement is similarly good at lower contact line speeds, but the phase field simulations systematically underestimate the steady displacement at higher speeds. This growing discrepancy with increasing velocity can be attributed to the absence of the diffusive flux coupling term in the Navier–Stokes momentum equation, present in the thermodynamically consistent formulations of Abels et al. (Reference Abels, Garcke and Grün2012), Yue (Reference Yue2020) or Brunk & ten Eikelder (Reference Brunk and ten Eikelder2026). This term becomes increasingly important at higher contact line speeds, where the diffusive mass flux across the interface contributes significantly to momentum transport. We note, however, that the water/hexane system considered here has a comparatively moderate density contrast (
$\rho _w/\rho _h \simeq 1.5$
); since this coupling term arises from, and scales with, the density difference between the two phases, its contribution in the present configuration is correspondingly limited, and becomes appreciable only at the largest contact line speeds investigated.
We remark that the same values of
$M$
,
$\varepsilon$
and
$\ell _N$
are used for both substrates and across the entire range of wetting speeds. Only the contact line friction coefficients (
$\mu _{\!f}^{adv}$
and
$\mu _{\!f}^{rec}$
) differ between the hydrophilic and hydrophobic surfaces, as these are extracted empirically from the MD results. This separation can be physically motivated; e.g.
$M$
influences the steady-state displacement through its contribution to diffusive slip at the contact line (see § 5.1), but does not affect the dynamic contact angle since
$M$
does not appear in the wall boundary condition (2.7). In contrast, the contact line friction coefficient
$\mu _{\!f}$
directly governs the relaxation of the contact angle towards equilibrium, and is therefore the sole parameter responsible for capturing the correct dynamic contact angle behaviour.
The only arbitrary parameter obtained via indirect calibration, the Navier slip length
$\ell _N$
, is sub-nanometric, in accordance with the physics of hydrogen-bond mediated wetting. While the Navier slip length is very small, it is not zero. We identify two needs for introducing a non-zero slip length. On the one hand, the sharp interface limit is attained only numerically; the thickness of the interface anti-correlates with the steady contact line displacement, i.e. a wider interface is characterised by a lower diffusive slip. Hence some non-zero Navier slip may be introduced to compensate for the rigidity of the interface. On the other hand, Navier slip may be introduced for the purpose of ensuring numerical stability. Stable simulations can be obtained also without introducing Navier slip, but require a smaller integration time step.
4.3. Flow field
The flow fields are then compared qualitatively to determine the effect of
$M$
on the streamlines and interface reconfiguration. The flow of the lower-viscosity liquid (hexane in our case) has to ‘adapt’ to the flow of the higher-viscosity liquid (water in our case) given that the tangential component of flow velocity to the interface remains continuous. This provokes the formation of a recirculation region and streamlines splitting close to the contact line in the hexane phase, which is captured by CHNS, as figure 6 shows. The only quantitative discrepancy between MD and phase field simulations lies in the size of the eddy in the hexane phase near the liquid/liquid interface. It should be noted that the maximum width of the eddy in phase field simulations is comparable to the length of two hexane chains: this type of sub-continuous flow cannot be accurately described by a continuous model that does not account for non-local steric interactions between molecules.
Comparison of the velocity field and the streamline profiles of CHNS simulations and MD simulations for
$u_w=1.86$
ms−1 and
$\theta _0=97.3^{\circ }$
. The black lines in the left-hand panels and the red lines in the right-hand panels indicate the liquid/liquid interfaces. Inset: streamline profile in the contact line region.

Figure 6. Long description
Panel A: The left-hand side shows a comparison of velocity fields for CHNS simulations and MD simulations. The color gradient represents velocity magnitude in meters per second, ranging from 0 to 2. The black lines indicate the liquid/liquid interfaces. Panel B: The right-hand side shows streamline profiles for Hexane and Water. The red lines indicate the liquid/liquid interfaces. Inset: A zoomed-in view of the streamline profile in the contact line region is provided.
We observe that there is no streamline crossing the liquid/liquid interface in the CHNS simulations, which match the MD simulations well in that aspect. Streamline crossing is known to become stronger as
$M$
is increased (Lācis et al. Reference Lācis, Pellegrino, Sundin, Amberg, Zaleski, Hess and Bagheri2022), and this suggests that the value of
$M$
chosen according to the sharp interface condition is in the right range. We also observe the position of the recirculating region, and hence the stagnation point to migrate towards the hexane phase. This observation is in agreement with observations by Yue et al. (Reference Yue, Zhou and Feng2010). Overall, the velocity fields calculated from MD and CHNS simulations, as shown in figure 6, agree qualitatively with the recirculating region in the hexane phase having higher velocity compared to the region close to the interface on the water phase. But we also notice slight differences in the bulk phase of hexane in both MD and CHNS simulations than when compared with that of water.
5. Discussion
5.1. Sensitivity analysis
Having established the set of parameters reported in table 1 through the calibration procedure, we now examine the sensitivity of the results to variations in these parameters. This serves two purposes: to assess the robustness of the calibration, and to clarify the distinct physical role of each parameter in controlling the observables of interest.
Effect of increasing the mobility parameter to (a) the interface profile and (b) interface bending,
$\theta _0=97.3^{\circ }$
,
$u_{cl}=1.86$
ms−1. The reference value is the lower bound of (2.9), i.e.
$M_0=\varepsilon ^2/(16\eta ^*)$
. Coloured dotted lines highlight the variation of near-wall interface curvature upon changing
$M$
.

We begin by examining the role of
$M$
. The mobility parameter affects the steady contact line displacement
$\Delta x_{cl}$
through its contribution to diffusive slip at the contact line, as shown in figure 7(a), which adds constructively with
$\ell _N$
, and it is therefore calibrated against
$\Delta x_{cl}$
under the constraint of (2.9). Varying
$M$
within the range permitted by the sharp interface condition (2.9) leaves the dynamic contact angle
$\theta$
unchanged: this can clearly be observed in figure 7(b), where the value of
$\theta _I$
at the walls remains unchanged. However,
$M$
does influence the interface curvature profile away from the wall (as shown again in figure 7
b), with larger
$M$
producing less pronounced interfacial bending. This observation is consistent with the results of Yue & Feng (Reference Yue and Feng2011b
), showing a similar effect of
$M$
on the apparent macroscopic contact angle.
We also proceed to verify the relation between
$\ell _S$
, which is the distance from the stagnation point to the wall – or in other words the slip of the contact line due to the flow between the stagnation point and wall – and
$\ell _D$
, the diffusion length defined as
$\ell _D = \sqrt {M\eta ^*}$
. We vary
$M$
,
$\ell _N$
and
$u_w$
, and find the relation to be
$\ell _S=2.9\ell _D$
for the lowest
$M$
possible according to the sharp interface condition and for all
$u_w$
and
$\ell _N$
. Table 2 gives a detailed view of the relations obtained for various parameters. Here, the capillary number is defined as
${Ca}=u_{cl}\eta ^*/\sigma$
. As we increase
$M$
from the strictly minimum permissible value according to inequality in (2.9) to a conservative value, i.e. up to twenty times its minimum value, the constant reduces from
$2.9$
and maintains a steady value of approximately
$2.5$
. From Yue et al. (Reference Yue, Zhou and Feng2010), who had a similar setup, we know this constant to be
$2.5$
, thereby reinforcing the results that we have obtained.
Relation between diffusion length
$\ell _D$
and slip length
$\ell _S$
, obtained by varying one parameter at the time (
$Ca$
,
$M$
and
$\ell _N$
). Inset: coordinate of the stagnation point.

Table 2. Long description
The table presents the relationship between diffusion length and slip length by varying parameters such as delta H over H, delta x over x, and delta epsilon N over epsilon N. It has four rows and three columns. The columns are labeled as delta H over H (percent), delta x over x (percent), and delta epsilon N over epsilon N (percent). The rows display the following values: Row 1: delta H over H (percent), -1.08, delta x over x (percent), -0.19. Row 2: delta H over H (percent), 1.08, delta x over x (percent), 0.39. Row 3: delta epsilon N over epsilon N (percent), 400, delta x over x (percent), -1.01. Row 4: delta epsilon N over epsilon N (percent), 2400, delta x over x (percent), -5.4.
The recent model by Fullana et al. (Reference Fullana, Zaleski and Amberg2025) allows us to connect the increase of
$\ell _D$
with
$M$
shown in table 2 with that in figure 7(b): the radius of curvature of the interface in the contact line region is expected to scale with
$\ell _D$
– or in other words, interface bending occurs more smoothly and on a longer distance as
$M$
increases. This ‘curvature smearing’ effect is expected to be more pronounced in macroscopic flows, where
$M$
and
$\varepsilon$
are orders of magnitude larger.
Finally, in order to understand the degree of effect that the errors in
$H$
and
$\ell _N$
have on the water–hexane system, we perturb the values chosen for the simulations. Table 3 shows the results of this sensitivity analysis. We perturb
$H$
by
$\pm 0.2$
nm, corresponding to the average grid size used to post-process the MD simulations. We see that there is negligible change in the steady-state displacement
$\Delta x$
of the water–hexane system, confirming that the uncertainty in
$H$
has negligible effect on the results. Regarding
$\ell _N$
, it is a free parameter introduced to circumvent the numerical instability arising from a zero slip length. We vary the
$\ell _N$
chosen in simulations, i.e.
$\ell _N=0.005$
nm, by a reasonable amount to see the difference in steady-state displacement with respect to increase in
$\ell _N$
as shown by
$\Delta \ell _N$
, and conclude that
$\Delta x$
is insensitive to
$\ell _N$
within the range tested.
Sensitivity of
$H$
in CHNS simulations, whose relative perturbation corresponds to the uncertainty on the wall location. Values for
$\ell _N$
sensitivity analysis are logarithmically spaced.

Table 3. Long description
The table presents sensitivity analysis results for different parameters in CHNS simulations. It has two rows and nine columns. The columns are labeled as follows: theta0 (deg.), muf*adv (cP), muf*rec (cP), zeta, chiadv, chirec, epsilon betar adv/eta*, epsilon betar rec/eta*, and epsilon betar rec/eta*. The first row shows values for theta0 as 97.3 degrees, muf*adv as 1.86 ± 0.09 cP, muf*rec as 4.09 ± 0.15 cP, zeta as 1.36 x 10-4, chiadv as 0.35 ± 0.03, chirec as 0.42 ± 0.02, epsilon betar adv/eta* as 1.68, epsilon betar rec/eta* as 6.33. The second row shows values for theta0 as 80.9 degrees, muf*adv as 2.71 ± 0.30 cP, muf*rec as 8.09 ± 0.43 cP, zeta as 1.36 x 10-5, chiadv as 0.42 ± 0.06, chirec as 0.43 ± 0.03, epsilon betar adv/eta* as 4.22, epsilon betar rec/eta* as 13.10.
5.2. Sharp interface limit with slip
Attaining the sharp interface limit means producing a physically meaningful, converged and unique solution by taking
$\varepsilon \rightarrow 0$
,
$M\rightarrow 0$
, under the constraint of inequality (2.9). Practically, a numerical sharp interface limit can be achieved by testing a set of increasingly smaller values of
$\varepsilon$
and
$M$
until the solution computed numerically becomes insensitive to these two parameters. For sufficiently small contact line velocities and in the absence of Navier slip at the liquid/solid interface, Yue & Feng (Reference Yue and Feng2011b
) showed that the wetting boundary condition (2.7) reduces to
\begin{equation} \left(\frac {2\sqrt {2}}{3}\sin \theta \right)\mu _{\!f}^* u_{cl} = \sigma \big (\cos \theta _0-\cos \theta \big ). \end{equation}
Equation (5.1) can be regarded as a local mobility relation for the contact line, equating the energy dissipated by contact line friction to the work due to the uncompensated Young stress, analogous to that derived by Molecular Kinetic Theory. This expression is also similar to that proposed by Fullana et al. (Reference Fullana, Kulkarni, Fricke, Popinet, Afkhami, Bothe and Zaleski2026) for the contact region generalised Navier boundary condition (CR-GNBC), obtained by regularising the uncompensated Young stress over a region of finite width under a quasi-stationary reduction; the only formal difference between the two expressions is the factor
$2\sqrt {2}(\sin \theta )/3$
in the left-hand side of (5.1), which is close to unity for moderately hydrophobic or hydrophilic surfaces.
Values of
$\mu _{\!f}^*$
,
$\zeta$
and
$\chi$
obtained by fitting (5.1) and evaluating (5.3) and (5.4). Note that we distinguish the values of
$\mu _{\!f}^*$
and
$\chi$
between advancing and receding contact lines, while
$\zeta$
ultimately depends only on the Navier slip length and the geometry of the system. The values of
$\beta _r$
are scaled by a factor
$\eta ^*/\varepsilon$
, simply to make them non-dimensional.

Table 4. Long description
Panel A: A table listing parameters obtained from a calibration procedure. The table includes columns for Ca, M (nm2 ps-1 bar-1), ℓN (nm), ℓS (nm), ℓD (nm), and ℓS/ℓD. Each row provides specific values for these parameters. Panel B: A velocity magnitude plot showing contours of velocity magnitude in meters per second (m/s). The plot uses a color scale ranging from blue to red, with blue representing lower velocities and red representing higher velocities. The plot includes a legend indicating the velocity magnitude scale and arrows representing the direction and magnitude of velocity vectors.
(a) Dynamic contact angle measured from MD simulations and the fit of (5.1). (b,c) Horizontal velocity profiles scaled by the wall velocity in the first density bin above the wall (inset), for the cases (b)
$\theta _0=97.3^{\circ }$
(circles) and (c)
$\theta _0=80.9^{\circ }$
(diamonds). Data are obtained by collecting and collapsing the velocity fields of all simulations, i.e. for all imposed wall velocities; error bars indicate the standard deviation between simulations. The values of
$\chi$
are reported as straight lines (
$\pm$
error), in correspondence with the locations of the advancing and receding contact line regions.

Figure 8(a) shows the best fit of (5.1) to MD simulation data (wall velocities against measured dynamic contact angles); table 4 reports the values of
$\mu _{\!f}^*$
. By comparing these results with those in table 1, it is clearly noticeable that the values of
$\mu _{\!f}^*$
substantially underestimate those of
$\mu _{\!f}$
, i.e. the contact line friction parameter obtained by calibrating CHNS. We therefore investigate the source of this discrepancy. Let us first propose a correction of (5.1) in case of non-zero slip velocity:
where in the right-hand side we have the contact line friction coefficient of a model including slip, i.e. where the flow speed at the wall is allowed to deviate from the wall speed. Since we are introducing a non-zero Navier slip length in the CHNS model, we expect the relative slip velocity at the solid–liquid interface (
$sl$
) to be, at a first-order approximation in the shear rate
$\dot {\gamma }$
,
The values of
$\zeta$
(reported in table 4) are too small to explain the difference between
$\mu _{\!f}$
and
$\mu _{\!f}^*$
. Conversely, we can determine the relative slip velocity at the contact line (
$cl$
) directly from (5.2) as the ratio of contact line friction coefficients:
The values of
$\chi$
are also reported in table 4. Figures 8(b) and 8(c) show the collapse of the profiles of the wall-parallel velocity, relative to the wall velocity, obtained by averaging over all the steady simulations. The drops located at the contact lines are quantitatively consistent with the values of
$\chi$
. Note that the longitudinal velocity drops are consistent with the ‘apparent perfect slip’ occurring at contact lines in steady flows according to to the formulation for the kinematic evolution of the contact angle of Fricke et al. (Reference Fricke, Köhne and Bothe2019).
This analysis suggests that the mismatch between the CHNS-calibrated and MD-measured contact line friction coefficients arises from large slip velocities localised at the contact line; this agrees with prior studies reporting significant slip at contact lines (Ren & Weinan Reference Ren and E2007), and with the observed anti-correlation between slip and contact line friction (Fernández-Toledano et al. Reference Fernández-Toledano, Blake, De Coninck and Kanduč2020). Interestingly, this extra slip component cannot be attributed to the interface mobility contribution of CHNS, since the dynamic contact angle (and thus the calibrated contact line friction coefficient) is insensitive to
$M$
.
To make our analysis more quantitative, we determine friction coefficients using the CR-GNBC formalism. Following the result by Ren & E (Reference Ren and E2007), we split the liquid/solid friction coefficient
$\beta$
into a singular and a regular part, the former localised at the contact line by a Dirac delta function:
We then smear
$\delta _{CL}$
over the contact line region by taking
$\delta _{CL}\simeq (1-C^2)/(2\sqrt {2}\,\varepsilon )$
; we choose this function as it peaks at the contact line and integrates to 1 when
$C$
is the equilibirum hyperbolic tangent solution of the Cahn–Hilliard equations. It is then possible to show that
The derivation of (5.6) follows the idea by Fullana et al. (Reference Fullana, Kulkarni, Fricke, Popinet, Afkhami, Bothe and Zaleski2026) and is reported in the supplementary material. We observe that the localisation term
$(1-C^2)$
appears in (2.7), and thus conclude that at the contact line,
The values of
$\beta _r$
estimated from (5.7) are reported in table 4 in non-dimensional form. The trend traces that of contact line friction coefficients, with higher values at receding contact lines and on hydrophilic surfaces.
This observation challenges the idea of relying solely on phase field diffusion to move contact lines under hydrodynamic no-slip conditions while neglecting contact line friction, as this approach cannot capture contact line asymmetry or local slip variations. While such a protocol can match some results, it still misses some key components engrained in molecular physics.
6. Conclusions
In this work, we have shown a comparison between MD simulations of a water/hexane Couette flow and a phase field model for the motion of the three-phase contact line. We have established a systematic calibration protocol where contact line friction is the sole parameter requiring semi-empirical fitting of MD data. The accurate reconstruction of contact line motion and near-wall interface bending stems from the appropriate choice of contact line friction. The coefficient is obtained by matching the relation between contact line speed and dynamic contact angles observed in MD: the direct transfer of information results in a better agreement between simulation techniques compared to our previous work (Lācis et al. Reference Lācis, Pellegrino, Sundin, Amberg, Zaleski, Hess and Bagheri2022). This highlights the importance of accounting for both hydrodynamic and molecular sources of energy dissipation in the mesoscale modelling of contact lines. We remark that the parametrisation of the CHNS equations is not arbitrary: the determination of CHNS parameters follows the calibration of
$\mu _{\!f}^{{adv}}$
and
$\mu _{\!f}^{{rec}}$
, and is constrained by numerics and by the sharp interface condition. Subatomic Navier slip is introduced essentially for numerical stability reasons. This demonstrates the robustness of CHNS in describing the physics of contact lines. The possibility of sampling the flow field from MD simulations in both fluid phases enables us to tackle one critical aspect, namely how to reduce the unphysical crossing of the liquid/liquid interface by flow streamlines. The tight adherence to the sharp interface condition reduces crossing, as shown by comparing flow profiles.
Despite its remarkable ability to reproduce several observables, the phase field model still misses a slip component, as discussed in § 5.2. Since constant Navier slip combined with interface diffusion is insufficient, alternative slip models could be explored, e.g. by making the slip length spatially dependent or localised at the interface through its dependence on the order parameter or its gradient. Alternatively, the slip length could be extracted directly from MD simulations following Bocquet & Barrat (Reference Bocquet and Barrat2013) and Herrero et al. (Reference Herrero, Omori, Yamaguchi and Joly2019). The generalised Navier boundary condition (GNBC) (Qian et al. Reference Qian, Wang and Sheng2003) provides another option by allowing independent tuning of hydrodynamic slip at the wall and contact line. However, Fullana et al. (Reference Fullana, Kulkarni, Fricke, Popinet, Afkhami, Bothe and Zaleski2026) have already shown that at contact lines, the GNBC reduces to a combination of Navier slip and a contact angle condition similar to (5.1), with the singular friction component being essentially contact line friction. Thus the GNBC is effectively equivalent to the boundary conditions already employed in this study, and an overall improvement is not guaranteed. Indeed, Lācis et al. (Reference Lācis, Johansson, Fullana, Hess, Amberg, Bagheri and Zaleski2020) found that GNBC does not outperform wall relaxation in predicting steady contact line motion or mitigating streamline crossing.
The omission of the flux coupling term in the present formulation leads to an underestimation of the response of the contact line to large wall velocities, thereby explaining why the phase field model progressively deviates from MD results as the contact line speed increases on hydrophilic surfaces. The inclusion of this term would be expected to improve the agreement at elevated contact line speeds, and constitutes a natural extension of the present model that we leave for future work.
A natural direction for the continuation of this work would involve removing the arbitrariness of the CHNS parameters completely. The main limitation of the method is the choice of
$\varepsilon$
, which is hard to interpret when considering interfaces with atom-scale sharpness (water/vapour, water/alkanes). Combinations of partially miscible liquids, such as water and alcohol, give rise to a truly diffused interface and thus are good candidates for extending the comparison between MD and CHNS simulations. Furthermore, wider interfaces are characterised by lower surface tension. The CHNS mobility
$M$
could then be estimated by simulating interface relaxation, as was e.g. proposed by Barclay & Lukes (Reference Barclay and Lukes2019), given that the process would be slow and thus easy to sample. The case of partially miscible biphasic systems, however, involves some modelling and computational challenges. Partial miscibility is not contemplated in the original formulation of the Cahn–Hilliard equations, and the typical double-well potential in the free-energy functional may need to be replaced by a logarithmic Flory–Huggins term. Furthermore, the decrease of surface tension leads to a generally less stable two-phase Couette flow, which needs to be driven with much smaller wall velocities.
Supplementary material
Supplementary material is available at https://doi.org/10.1017/jfm.2026.12239.
Acknowledgements
We thank Professor S. Zaleski (Sorbonne Université) and Dr S. Mirjalili (KTH) for fruitful scientific discussions and useful feedback. We also thank Dr P. Johannson and Dr U. Lācis for contributing to the flow-binning GROMACS code and to the FreeFEM++ code.
Funding
Numerical simulations were performed on resources provided by the Swedish National Infrastructure for Computing (grants NAISS 2023/5-279, NAISS 2023/1-19 and NAISS 2025/1-41) at PDC, Stockholm. We acknowledge funding from the Swedish Research Council (INTERFACE centre grant nos 2016-06119_VR and 2021-04820_VR), from the European Research Council (grants MUCUS StG2019-852529, LUBFLOW CoG-101088639 and INTER-ET CoG-2024-101171358).
Declaration of interests
The authors report no conflict of interest.
Data availability statement
The output of molecular dynamics simulations and the configuration files for GROMACS are openly available under a Creative Commons Attribution 4.0 International licence on Zenodo (Pellegrino & Hess Reference Pellegrino and Hess2024a ,Reference Pellegrino and Hess b ). The code to perform flow field binning on-the-fly is ported from the GROMACS fork of Dr P. Johansson (github.com/pjohansson/gromacs-flow-field). Post-processing scripts are available upon reasonable request. The CHNS FreeFEM++ solver is based on the code by Dr U. Lācis (github.com/UgisL/FreeFEM-NS-CH) and is available upon reasonable request.
Author contributions
M.P., P.K., S.B., O.T. and B.H. conceived the original idea. M.P. configured the molecular system, carried out molecular dynamics simulations, carried out simulations post-processing, and compared the results between simulation techniques. P.K. performed the phase field simulations and carried out simulations post-processing. M.P. and P.K. wrote the paper with feedback from all coauthors. S.B., G.A., O.T. and B.H. supervised the simulations, the writing and the revision of the manuscript. M.P. and P.K. contributed equally to this work.
Appendix A. Computation of transport coefficients
This appendix summarises the methods used to extract the transport coefficients from molecular dynamics simulations. The density of water and hexane is determined by simple equilibrium simulations at constant temperature and hydrostatic pressure (respectively 300 K and 1 bar). It results in
$\rho _w=997.9\pm 0.1$
kg m−
$^3$
and
$\rho _h=648.8\pm 0.6$
kg m−
$^3$
, where the uncertainty is due to the fluctuations of the box size when simulating at constant pressure.
The shear viscosity coefficient has been computed with both equilibrium and non-equilibrium simulations. The equilibrium approach consists in evaluating the integral of the off-diagonal components of the pressure tensor of a liquid box at equilibrium, and studying its long-time behaviour, according to Einstein’s formula:
\begin{equation} \eta = \lim _{t\rightarrow \infty }\frac {1}{6}\frac {V}{k_BT}\frac {\rm d}{\mathrm dt}\sum _{i\ne j} \left \langle {\left (\int _0^tP_{ij}(\tau )\,\mathrm d\tau \right )^2} \right \rangle. \end{equation}
Einstein’s formula determines viscosity independently of the shear stress applied to the system, hence it is suitable to characterise simple Newtonian liquids. An alternative approach is to continuously apply a shear deformation to the simulation box, and observe the response of the liquid:
where
$U_x$
is the maximum deformation velocity at the edge of the simulation box (such that
$\dot {\gamma }=U_x/L_x$
, for
$\dot {\gamma }$
the shear rate). This non-equilibrium approach is more flexible, as it can also be used to study the rheology of non-Newtonian liquids, but it determines the shear viscosity coefficient as a function of the shear rate. Hence multiple simulations at different shear rates are required: low shear rates produce a noisy but unbiased result, while high shear rates suppress noise but possibly reduce viscosity as the energy input in the system may be too large to be completely dissipated by the thermostat.
Table 5 reports the values of shear viscosity obtained from molecular simulations. Equilibrium simulations are approximately 130 ns long, and have been repeated 10 times for each liquid. Outputs have been analysed using the approach of Zhang et al. (Reference Zhang, Otani and Maginn2015) to extract the viscosity coefficient. Deform runs are 100 ns long, and have been repeated for three different deformation velocities. Values obtained with the equilibrium method are chosen as reference for phase field simulations due to their low uncertainty and independence from shear rates. The viscosity of hexane agrees well with values obtained from both MD simulations (Siu et al. Reference Siu, Pluhackova and Böckmann2012) and experiments (Klein et al. Reference Klein, Yan, Cui, Magee, Kroenlein, Rausch, Koller and Fröba2019). The viscosity of water underestimates the experimental value
${\simeq} 0.85$
cP (Huber et al. Reference Huber, Perkins, Laesecke, Friend, Sengers, Assael, Metaxa, Vogel, Mareš and Miyagawa2009), as expected for the SPC/E model, but is consistent with previously reported values obtained from MD simulations (González & Abascal Reference González and Abascal2010).
Viscosity in centiPoise (cP) obtained from molecular dynamics simulations using the equilibrium Einstein method and the non-equilibrium shear deformation method, for three different values of the deformation velocity.

Table 5. Long description
The table presents viscosity values in centiPoise (cP) for SPC/E water and OPLS-AA hexane, obtained through molecular dynamics simulations using the equilibrium Einstein method and the non-equilibrium shear deformation method. The table has four rows and three columns. The columns are labeled ‘Liquid’, ‘Einstein’, and ‘Deform velocity (nm ps-1)’. The row labels include ‘SPC/E water’ and ‘OPLS-AA hexane’. The values for ‘Einstein’ are given for Ux = 10-1, Ux = 10-2, and Ux = 10-3. The values for ‘Deform velocity’ are given for Ux = 10-1, Ux = 10-2, and Ux = 10-3. The table shows the viscosity values with their respective uncertainties.
(a) Example of a binary system used to measure water/hexane interface surface tension and width. (b) Interface profile extracted from MD simulations, used to define the intrinsic interface width
$\varepsilon _{md}$
.

Surface tension is obtained by computing the difference between the component of the pressure tensor that is perpendicular to the water/hexane interface and the average of the components parallel to the interface:
The calculation can be performed on a smaller biphase system without solid walls (figure 9). The result is
$\sigma =5.19\pm 0.24\times 10^{-2}$
Pa m, which is in good agreement with previous experiments (Goebel & Lunkenheimer Reference Goebel and Lunkenheimer1997) and MD simulations (Rivera et al. Reference Rivera, McCabe and Cummings2003). The same system can be utilised to compute the intrinsic interface width, as defined by e.g. Senapati & Berkowitz (Reference Senapati and Berkowitz2001). The intrinsic interface width is chosen as reference length instead of the thermal-capillary width as it is independent of the interface area. By fitting the equilibrium solution of the Cahn–Hilliard equation for a one-dimensional interface to the liquid density (averaged along the direction parallel to the interface), we obtain
$\varepsilon _{md}=0.18$
nm.
Result of interface extraction for
$u_w=3.72$
ms−1 and
$\theta _0=97.3^{\circ }$
. The scalar field shows liquid density, and the black solid line shows the liquid/liquid interface. Black crosses close to the contact line indicate the locations of the interface points used to compute the dynamic contact angle.

The horizontal position of the liquid/liquid interface in two-phase Couette flow simulations is determined as a function of the vertical coordinate using a local half-density criterion. Essentially, for each row indexed by
$j=1,\ldots ,N_z$
, the average local density of water
$\rho _w^{loc}$
is determined by averaging the density field in a section that is far enough from the liquid/liquid interface. The position of the interface is found by scanning across
$i=1,\ldots ,N_x$
, and linearly interpolating between the two bins having density closest to
$(1/2)\rho _w^{loc}$
. This local density criterion allows us to have a smooth interface profile even in the near-wall layering region, as can be observed in figure 10. The density profile of water is chosen to determine the liquid/liquid interface since it is the most dense liquid, hence the signal-to-noise ratio for the interface position is expected to be larger. Another alternative to the half-density criterion would be to identify the interface where the densities of water and hexane are equal. This second criterion, however, provided noisier measurements of the interface position and of the contact angle. The first bin suitable to extract the liquid/liquid interface is located 0.5 nm away from the reference position of silicon atoms. The equilibrium contact angle
$\theta _0$
and the dynamic contact angle
$\theta$
are measured respectively by fitting an arc of circle to the interface for
$u_{cl}=0$
, or by linearly interpolating the first three interface points closest to the wall for
$u_{cl}\ne 0$
, and computing the tangent or the cotangent of the slope.




95%
μf
μf∗
xz
θ0≃97.3∘
θ0≃80.9∘
ucl
ucl
θI
π−θI

uw=1.86
θ0=97.3∘
θ0=97.3∘
ucl=1.86
M0=ε2/(16η∗)
M
ℓD
ℓS
Ca
M
ℓN
H
ℓN
μf∗
ζ
χ
μf∗
χ
ζ
βr
η∗/ε
θ0=97.3∘
θ0=80.9∘
χ
±

εmd
uw=3.72
θ0=97.3∘