WorksComputer Science
DropFENO: A Data-Free, Physics-Based Operator-Learning Framework for Droplet Equilibria on Mixed-Wettability Patterned Surfaces
Abstract
We study whether the equilibrium of a drop on a chemically patterned wall, and the capillary forces that the pattern exerts on it, can be learned from the free energy alone, without solution data. We introduce DropFENO (Droplet Free-Energy Neural Operator), in which Fourier (FNO), tensor-factorised Fourier (TFNO) and wavelet (WNO) neural operators are trained in two and three dimensions on the diffuse-interface free energy of the drop, with its volume and centroid constraints imposed as penalties. The predictions are tested with the virtual-work (Hellmann–Feynman) theorem: the force exerted by the pattern on a held drop is a wall integral of the equilibrium field which, for a drop straddling a wettability step, reduces identically to the contact-line law . DropFENO reproduces this law and the energy landscape of a drop crossing a step, and reproduces the pinning of the receding contact line less accurately. The residual error lies in the soft modes of the capillary energy (small displacements of the interface and the contact line). This explains why the energy is predicted accurately while contact-line positions are not, and why on striped walls the operators return Cassie-like states instead of the edge-pinned states whose anisotropic apparent angles the reference minimiser shares with lattice Boltzmann simulations. On held-out patterned walls the median energy of the predictions lies \NdEmedRandFnoTwo of the free-drop energy above the best known minimum (FNO, two dimensions), at about one hundredth of the cost of a per-instance minimisation, and a refinement by a classical solver started from the prediction returns the reference state in almost all cases.
main.pdf
Introduction
A drop on a chemically patterned wall settles into a shape that minimises its free energy under the constraint of fixed volume. The minimiser encodes most of what one wants to know about the wetting of the pattern: the apparent contact angles and their anisotropy on stripes [3, 13], the pinned or depinned state of the contact line at a wettability edge [10, 26, 16], and, through the dependence of the minimum energy on the position of the drop, the capillary force that drives a drop across a wettability step or gradient (Brochard, 1989; [29]). Computing it is a constrained, nonconvex variational problem that must be solved anew for every pattern and every position. Surface Evolver [2], diffuse-interface energy minimisation and the long-time limit of lattice Boltzmann or phase-field dynamics are the standard tools [22, 21, 20]; each solve costs from seconds to hours, and parametric studies over pattern families multiply that cost.
Neural operators learn maps between function spaces from samples of their action and evaluate them at a cost independent of the solver that produced the samples [15] (Lu et al. 2021; Li et al. 2021). The Fourier neural operator (FNO) of Li et al. (2021), its tensor-factorised variant (TFNO) [14] and the wavelet neural operator (WNO) [30] are three representative architectures, which parametrise the global kernel respectively by dense spectral weights, by a low-rank canonical-polyadic factorisation of those weights, and by a mixing of wavelet coefficients. Trained on data, they are surrogates of a numerical solver and inherit both its cost (the training set) and its errors. Physics-informed training replaces or supplements the data by the residual of the governing equations [27, 31] (Li et al. 2024), and data-driven and physics-informed networks have been applied to the classification of wetting states and to droplet wetting and spreading on rough surfaces [23, 24 b]; for problems that derive from a variational principle the residual can be replaced by the energy itself, as in the deep Ritz method for single instances [7] and in variational operator learning [11]. For a free-boundary problem with a contact line, the energy formulation is convenient: the Euler–Lagrange equation is a nonlinear elliptic equation with a nonlinear boundary condition at the wall and Lagrange multipliers for the volume and centroid constraints, whereas the energy is a sum of local terms that involve at most first derivatives of the field, and its constrained minimiser satisfies all of these conditions.
Two questions remain open, and they are the subject of this paper; we address them with a framework that we call DropFENO (Droplet Free-Energy Neural Operator). The first is whether an operator trained only on the free energy (with no solution field ever computed, stored or shown to it) reaches the accuracy of a converged per-instance minimiser over a broad family of chemically heterogeneous walls, in two and in three dimensions, and how the three architectures compare when the solution is a sharp interface meeting a patterned wall. The second, which is more important for the physics, is how to verify such a prediction when no data exist. Pointwise agreement with a reference field is necessary but says little about the physics, because the quantities of interest in wetting (forces, angles, pinning) are functionals of the field that can be sensitive to small errors near the contact line. We show that the constrained-minimisation structure itself provides a precise test. By the Hellmann–Feynman (virtual-work) theorem the force exerted by the pattern on a drop held at equilibrium is an explicit wall integral of the equilibrium field, and for a drop straddling a wettability step this integral reduces identically to the contact-line force law , with the wetted chord on the step. The force law is thus an exact property of the true minimiser which an approximate field does not satisfy in general; testing an operator against it, and against the slope of its own energy landscape, measures whether it has learnt the physics, not only how close it is to a reference solution.
The problem we consider is the static counterpart of the dynamics in our two- and three-dimensional lattice Boltzmann simulations of drops that migrate across hybrid and striped wettability patterns. There, the force that holds a drop on a step was found to follow the contact-line law with the chord of the footprint, and stripes produced a pronounced anisotropy of the apparent angles. Here the same questions are asked of the equilibrium problem, without any dynamics and without any data. We show that (i) DropFENO reproduces the contact-line force law, the energy landscape of a drop crossing a step and, less accurately, the pinning of the rear contact line at the step, as emergent properties of predictions made independently at each position; (ii) all three DropFENO operators, trained only on the energy, predict equilibrium fields whose median energy lies within a fraction of a per cent of the converged minimum, almost always in the basin of the correct state, at a cost about two orders of magnitude lower than the per-instance solve; (iii) their residual error is concentrated in the soft modes of the energy (displacements of the interface and of the contact line), which explains why the energy is accurate while contact-line positions are not, why on striped walls the operators return Cassie-like averaged states instead of the edge-pinned states that set the apparent angles, and why a classical solver started from a prediction converges faster only to a coarse tolerance; (iv) the architectures differ: the dense FNO is the most accurate, the factorised TFNO comes within a factor of three of it with 150 times fewer parameters, and the local wavelet kernel of the WNO brings no advantage for a problem whose response to the pattern is non-local; and (v) with gravity, the same force balance gives the rest position of a drop on an inclined wall with a wettability step and the inclination at which it slides off. A by-product of the analysis is a constraint artefact of general relevance to diffuse-interface and physics-informed calculations: a volume constraint imposed through the linear liquid fraction supersaturates the vapour by the Gibbs–Thomson (Kelvin) effect, which in three dimensions can hold a third of the liquid or evaporate the drop altogether and which biases the force inferred from the energy landscape; an indicator that is flat in the bulk phases removes it exactly.
The paper is organised as follows. § 1.2 states the variational problem, derives the virtual-work force and the contact-line law, and describes the discretisation. § 2 describes the data-free training, the three operators and the reference solver. § 2.2 verifies the reference minimiser against Young’s law, the vapour state and the force identity, with both choices of the liquid indicator. § 3 assesses the accuracy, basin selection and cost of the operators over the pattern family. § 3.2 turns to the physics: the force on a drop crossing a step in two and three dimensions, and the apparent angles on stripes. § 3.3 adds gravity and treats a drop on an inclined wall. § 3.4 examines the factorisation rank, the prior, the training budget and the transfer to a finer grid; § 3.5 interprets the results through the stiffness of the operator error, and § 3.6 concludes.
Problem formulation
Free energy of a drop on a chemically patterned wall
We consider a liquid drop in contact with its vapour above a flat, chemically heterogeneous wall (Figure 1). The two fluids are described by a phase field ( liquid, vapour) and the wall by its local Young angle . The equilibrium is the minimiser of the Cahn–Hilliard free energy with the wall energy of Cahn ([5, 12])

Figure 1. The equilibrium problem. (a) Section of the computational box: a liquid drop () in its vapour (), separated by a diffuse interface of width , rests on a wall whose Young angle varies along the wall (strip: hydrophobic blue, hydrophilic orange; profile below: ). The box is periodic in and and closed by a no-flux boundary at the top. The centroid constraint holds the drop at ; its multiplier is the external force needed to hold it there, equal and opposite to the capillary force exerted by the pattern. (b) The same problem in three dimensions: the wall field and the holding position are the only inputs; the drop volume is fixed.
with the cubic wall energy
The constant is chosen so that the planar profile carries the interfacial tension , which is our unit of energy per unit area. Because , the wall energy of a wetted minus a dry patch is , so that Young’s law is recovered locally; the cubic function has and therefore does not alter the bulk values of at the wall ([12]). The wettability enters the problem only through the wall field .
The minimisation is subject to two constraints,
where are the wall-parallel coordinates. The volume constraint fixes the drop size, in three dimensions ( per unit depth in two). The liquid indicator rises from 0 to 1 across the interface and, like the wall function , is flat at ; the reason for this choice, rather than the linear liquid fraction , is explained in § 1.2.3. The centroid constraint pins the drop at a prescribed position on the pattern. On a heterogeneous wall a drop held at an arbitrary is not free: the constraint supplies exactly the external force needed to hold it there, and the constrained minimiser is the static shape of a drop held by that force. Varying therefore traces the quasi-static energy landscape along which a drop migrates, and its gradient is the capillary driving force.
The virtual-work force and the contact-line force law
Translate the wall pattern rigidly by relative to the fluid, . The bulk energy and both constraints are invariant under a simultaneous translation of the fluid, so the constrained minimum energy depends only on the relative position of drop and pattern. Since is stationary with respect to all admissible variations, the derivative of with respect to is the explicit (partial) derivative alone: this is the Hellmann–Feynman, or virtual-work, theorem (Feynman, [8]):
is the net capillary force exerted by the pattern on the drop (positive towards higher ). It requires only the wall trace of the equilibrium field, involves no derivative of , and is exact at the constrained minimum. For a straight step crossed by the drop, , and equation (4) becomes
where the constant is the contribution of the dry wall (and, in a periodic box, of the returning step), and is the length of the wetted chord of the footprint on the step line, weighted by the diffuse wall trace. For a sharp interface is the geometric chord and (5) is the classical contact-line force of a drop straddling a wettability step (Brochard, [4]; Subramanian et al., [29]); in two dimensions is the unit depth. The derivation shows that the law is an identity of the equilibrium problem whenever the step is straddled, independent of the drop shape, and that it fails as soon as a contact line sits on the step itself, where takes intermediate values: this is the pinning regime, in which the contact line is held at the step while its local angle sweeps between the two Young angles (Gibbs, [10]; Oliver et al., [26]).
Equation (4) is the central diagnostic of this paper (Figure 2; its discrete form is algorithm 1). An approximate minimiser, in particular a neural operator, satisfies (4) only to the extent that it is a true constrained minimiser; comparing the force computed from (4) with the finite-difference slope of its own energy landscape and with tests the physics of the prediction, not its similarity to a target field.

Figure 2. The virtual-work test of contact-line physics. (a) A drop held across a straight wettability step: the footprint cuts a chord of length on the step line, and the pattern pulls the drop towards the more wettable side with the force . (b) For any candidate equilibrium field the force can be obtained in three independent ways: (i) from the wall trace through the virtual-work integral (4), (ii) from the slope of the energy landscape traced by independent solves, and (iii) from the geometric chord through the contact-line law (5). The three coincide at a true constrained minimum when the step is straddled, so their mismatch measures the quality of an approximate minimiser without reference data.
The liquid indicator and the Gibbs–Thomson supersaturation
The choice of the indicator in (3) is not innocuous. In the bulk, stationarity of the Lagrangian requires , where is the multiplier of the volume constraint, equal to minus the Laplace pressure of the drop. With the linear liquid fraction, , the right-hand side is the constant , and both bulk phases are shifted off ; under the bound only the vapour can respond, and with it is supersaturated by
This is the diffuse-interface counterpart of the Kelvin effect. Its consequences grow with the ratio of the box to the drop volume and with : the liquid stored in the vapour is per cell, which is a few per cent of in our two-dimensional box but about a third of in the three-dimensional one, where a drop at evaporates completely into the supersaturated vapour (§ 2.2). The centroid then includes a uniform background that does not move with the drop, so that the multiplier of the centroid constraint, , exceeds the virtual-work force (4) by the factor ; and the exchange of mass between drop and vapour is a slow, nearly degenerate mode for iterative minimisers. All three effects are artefacts of the constraint, not of the physics of the drop. With , which satisfies , the bulk equation is satisfied exactly by , the vapour stays at , the constraints measure the drop alone, and the centroid translates rigidly with it, so that exactly. We use throughout and document the linear choice in § 2.2 for comparison.
Discretisation
The fields live on a uniform grid of unit spacing with : cells in two dimensions and in three, periodic in and , with the wall below the first cell row and a no-flux boundary at the top. The energy (1) is evaluated with forward differences,
and the volume and centroid by the corresponding sums. The virtual-work force (4) is evaluated with a central difference of the sampled wall field, , which telescopes to across any step. All computations below are carried out with the discrete problem (7); the reference solutions and the neural operators solve exactly the same problem, so that every difference between them is a difference in the quality of the minimisation.
DropFENO: data-free operator learning of capillary equilibria
The solution operator and the training objective
For a fixed drop volume the equilibrium defines a solution operator
from the wall wettability field and the holding position to the constrained energy minimiser. We approximate by a neural operator with weights and train it by minimising the expected value of the physical objective over a distribution of wall patterns and positions,
with (two dimensions) or (three dimensions), the energy of a free drop. No equilibrium field enters (9): the inputs are drawn afresh at every iteration from and the only training signal is the energy of the predicted field, which is the same energy that defines the physics. Because the minimiser of (9) over all maps is the pointwise constrained minimiser of (for ), training is an amortised optimisation: the cost of solving the variational problem is paid once, during training, for the whole family [1]. The pipeline is drawn in Figure 3 and listed as algorithm 2. The penalty weight is increased geometrically from to over the first 60% of training, a continuation that lets the network first learn the shape and then enforce the constraints.

Figure 3. Overall architecture of DropFENO, the data-free operator, and its physics loss. Wall patterns and holding positions are drawn afresh at every iteration from the distribution (Figure 4) and turned into the input channels , which include the analytic cap prior . The neural operator (lifting , four operator blocks, projection ; Figure 5 and Figure 6) returns a correction that is added to and mapped through to the field , which satisfies by construction. The physics loss scores by its free energy (7) and by penalties on the volume and centroid constraints, equation (9); its gradient with respect to the weights, obtained by automatic differentiation through the energy, is the only training signal (dashed). No equilibrium field is used at any stage of training. After training, a prediction costs one forward pass and can optionally be refined by the reference minimiser (Figure 8).
The pattern distribution. is a mixture of six families of wall fields (four in two dimensions) (Figure 4), with the two Young angles of each pattern drawn uniformly in : uniform walls; a single smoothed step placed within of the drop; stripes of period , area fraction and random phase, running along or (in three dimensions) along ; checkerboards (, three dimensions only); and smooth random patches obtained by Gaussian filtering and thresholding white noise. The drop position is drawn within of the box centre. The distribution is generic: it contains no information on any of the test configurations of § 2.2–§ 3.2 beyond their pattern family, and the test patterns (e.g. the specific Young angles of the lattice Boltzmann walls used for comparison) are never drawn exactly.

Figure 4. The six families of wall patterns of the training distribution (top view of the wall, schematic). Each training instance draws a family, two Young angles and the parameters of the family, and a holding position within of the box centre (dashed circle: drop footprint of radius ). The test patterns of § 2.2–§ 3.2 are never drawn exactly.
Output parametrisation and the analytic prior
The network does not output directly. It outputs a correction to the field of a diffuse spherical cap,
where the cap of volume , centred above , has the Cassie-like mean angle over a disc of radius under the drop. The tanh enforces the bound and the prior supplies the trivial part of the answer (the size and the mean shape), so that the network learns the response to the pattern; the last layer is initialised to zero, so that training starts from the prior. The prior is itself an approximation built from the inputs alone and contains no solution data; an ablation without it (§ 3.4) quantifies its role.
Architectures
All three operators share the structure of Li et al. (2021): a pointwise lifting of the input channels to a width , blocks
with a pointwise linear map, and a pointwise projection to the scalar . The inputs are the wall field extended uniformly in , the normalised coordinates , and, in three dimensions, , and the prior . Because is not periodic, the latent fields are zero-padded by eight cells at the top before the global operators and cropped afterwards. The three operators differ only in the global kernel . Figure 5 shows the forward pass with its tensor shapes, Figure 6 the three kernels, and algorithm 3 lists one prediction.

Figure 5. (a) forward pass (two dimensions; shapes channels ). — ; lift — , GELU, ; pad — cells; block — ; crop ; project — to , GELU, to 1; — ; . (b) operator block . Global kernel : Fourier (FNO), CP-Fourier (TFNO) or Haar wavelet (WNO). Local map : convolution. : couples all cells (long range); : keeps local detail; Fourier weights act on modes, not on cells. Figure 5: Block diagram of the operator. (a) Forward pass in two dimensions with the tensor shapes: pointwise lifting of the four input channels to the latent width , zero padding of the non-periodic direction, operator blocks, cropping and pointwise projection to the scalar correction . In three dimensions the input has five channels and the grid is . (b) One operator block, equation (11): a global kernel and a pointwise linear map act in parallel, followed by a GELU activation. The three operators differ only in (Figure 6).

Figure 6. (a) FNO: dense spectral convolution. FFT ; keep ; multiply each mode by ; zero the other modes; iFFT . Params per block complex (2D: 1.57 M real). (b) TFNO: the same convolution with a CP-factorised weight tensor. . is never formed: is contracted with (), scaled mode-wise by , and expanded with (). Params per block complex (2D, : 8.3 k real). (c) WNO: Haar wavelet kernel, levels. ; ; ; ; . Haar analysis: . Learned channel mixing of and at each of the locations. Inverse Haar ( set to 0) . Local in space and in scale: the kernel acts on the coarsest coefficients only, and the pointwise path carries the finer detail. Params per block , with (2D) or 7 (3D) detail bands and coarsest cells (2D: 0.59 M). Figure 6: The three global kernels . (a) FNO: Fourier transform, multiplication of the retained modes by dense complex matrices, inverse transform. (b) TFNO: the same convolution with the weight tensor replaced by its rank- canonical-polyadic factorisation, equation (12), drawn as a tensor network (one leg per index) and applied factor by factor. (c) WNO: a three-level Haar analysis of the padded latent field, learned channel mixing of the coarsest approximation and detail coefficients at every coarse location, and the inverse transform with the finer detail bands set to zero. Parameter counts are per block for the two-dimensional configurations of Table 1.
FNO. is a convolution evaluated in Fourier space, , with a dense complex weight on each retained mode and zero elsewhere (Li et al., 2021). Because the field is real, only non-negative wavenumbers are kept in the last direction, so that modes are retained in every other direction and in the last one; one kernel has complex weights.
TFNO. The weight tensor of the FNO is replaced by a complex canonical-polyadic (CP) factorisation of rank [14],
which reduces the number of complex weights of one kernel from to and is applied without forming , by contracting the factors in sequence.
WNO. acts in a wavelet basis (Tripura & Chakraborty, [30]): a -level orthonormal Haar transform of , a learned channel mixing, location by location, of the approximation and the detail coefficients at the coarsest level, and the inverse transform with the finer detail coefficients set to zero. The kernel is local in space and in scale, in contrast to the global Fourier modes of the FNO, which makes it a candidate for a field that contains a thin interface and a pinned contact line.
We refer to the three variants as DropFENO-FNO, DropFENO-TFNO and DropFENO-WNO, and to them collectively as DropFENO; in figures and tables they are labelled FNO, TFNO and WNO. They are implemented in PyTorch from these definitions; Table 1 lists their sizes.
| operator | global kernel | modes or grid | params (2D) | params (3D) | ||
| FNO | dense spectral | / | – | 6.30 M | 14.75 M | |
| TFNO | CP-factorised spectral | / | 42.8 k | 39.7 k | ||
| WNO | Haar wavelet, | / | – | 2.37 M | 4.10 M |
Table 1. The three operators. Retained Fourier modes (FNO, TFNO) or coarsest-level wavelet grid (WNO), latent width and CP rank are given as two-dimensional / three-dimensional values; all operators have blocks and the same lifting and projection.
Training
Training uses AdamW (weight decay ) with a one-cycle learning-rate schedule (peak ), gradient clipping at norm one, batches of eight (two dimensions) or two (three dimensions) independently drawn patterns, 6000 (two dimensions) and 4000 (three dimensions) iterations, i.e. and distinct problem instances, each seen once. The training histories of the energy and of the constraint residuals are shown in Figure 7. All computations run on CPUs: training on four threads per job (two for the extended-budget runs of § 3.4), reference solves and evaluation on two. The configuration, cost and training history of every run, including the ablations, are given in the Supplementary Information (Table S3, Figure S4 and Figure S3).
Figure 7. Data-free training of the three operators in two (a–c) and three (d–f) dimensions. (a,d) Energy of the predicted fields, averaged over each batch of freshly drawn patterns (running mean); the scatter reflects the variety of the patterns, not the optimisation. (b,e) Volume and (c,f) centroid residuals, enforced only through the penalty whose weight grows from 10 to over the first 60% of training.
Table S3: Configuration and cost of every training run. Instances: number of distinct random problems seen (iterations × batch). All runs use a peak learning rate of and the penalty continuation . Params in thousands; training wall-clock time on the CPU threads listed.
| run | iterations | batch | instances | seed | prior | threads | params (k) | time (h) |
| FNO 2D | 6000 | 8 | 48,000 | 0 | yes | 4 | 6,301.2 | 0.90 |
| TFNO 2D () | 6000 | 8 | 48,000 | 0 | yes | 4 | 42.8 | 0.67 |
| WNO 2D | 6000 | 8 | 48,000 | 0 | yes | 4 | 2,369.1 | 0.86 |
| FNO 2D, seed 1 | 6000 | 8 | 48,000 | 1 | yes | 4 | 6,301.2 | 0.84 |
| FNO 2D, no prior | 6000 | 8 | 48,000 | 0 | no | 4 | 6,301.2 | 1.02 |
| FNO 2D, 3× budget | 18000 | 8 | 144,000 | 0 | yes | 2 | 6,301.2 | 4.08 |
| TFNO 2D, 3× budget | 18000 | 8 | 144,000 | 0 | yes | 2 | 42.8 | 3.53 |
| TFNO 2D, | 6000 | 8 | 48,000 | 0 | yes | 4 | 13.9 | 0.67 |
| TFNO 2D, | 6000 | 8 | 48,000 | 0 | yes | 4 | 18.0 | 0.98 |
| TFNO 2D, | 6000 | 8 | 48,000 | 0 | yes | 4 | 75.8 | 0.98 |
| FNO 3D | 4000 | 2 | 8,000 | 0 | yes | 4 | 14,749.6 | 1.92 |
| TFNO 3D | 4000 | 2 | 8,000 | 0 | yes | 4 | 39.7 | 1.20 |
| WNO 3D | 4000 | 2 | 8,000 | 0 | yes | 4 | 4,100.0 | 2.26 |
Table S3. Configuration and cost of every training run.
Figure S3. Training schedules (FNO runs; identical for all operators). (a) Penalty weight . (b) Learning rate of the one-cycle schedule (5% warm-up, cosine decay).
Figure S4. Training histories of the two-dimensional ablation runs against the fraction of training completed (running mean over 40 logged iterations). (a,b) FNO: main run, second seed, no prior, three times the budget. (c,d) TFNO: CP ranks 4–64 and three times the budget. (a,c) Batch-mean energy; (b,d) volume residual.
Reference solutions
To judge the operators we solve each test instance individually by a classical method: an augmented-Lagrangian loop for the constraints around a bound-constrained quasi-Newton minimisation (L-BFGS-B) of the discrete energy directly in , started from the analytic cap, until the constraint residuals are below and the energy is stationary. Working directly in with bounds, rather than in the tanh parametrisation that is natural for the network, avoids the vanishing gradients of tanh at the bulk values . Because steps and stripes admit several metastable minima, the reference for those problems is the lowest of three solves started from caps with the Cassie-like mean angle and with the two extreme angles of the pattern. The reference solutions are never used in training. The procedure is shown in Figure 8 and listed as algorithm 4.

Figure 8. The reference minimiser used to judge the operators (§ 2.1.4). An augmented-Lagrangian loop enforces the volume and centroid constraints around a bound-constrained quasi-Newton (L-BFGS-B) minimisation of the discrete energy directly in . For steps and stripes the loop is run from three caps and the lowest minimum is kept. Started from an operator prediction instead of a cap, the same loop is the “refinement” of § 3. The converged multipliers are the holding force and the Laplace pressure.
Algorithm 1 Virtual-work test of a predicted or computed equilibrium (Figure 2)
Require: step pattern ; held positions ; a map (operator or minimiser)
for do
;
▹ virtual-work force, (4)
wetted chord of the footprint on the step line
end for
▹ slope of the landscape
return , and ; agreement of the three for straddled steps tests the physics of
Algorithm 2 Data-free training of the solution operator (Figure 3)
Require: pattern distribution ; operator ; iterations ; batch size ; penalty range , ; peak learning rate
initialise , with the last layer of set to zero so that at the start
for do
▹ penalty continuation
for do ▹ fresh problems, never repeated
draw
▹ algorithm 3, lines 1–4
end for
▹ equation (9)
by automatic differentiation through , , ; clip
with one-cycle learning rate (peak ), weight decay
end for
return ▹ no equilibrium field has been used
Algorithm 3 Prediction of an equilibrium field (one forward pass; Figure 5 and Figure 6)
Require: wall field , holding position , drop volume , trained weights
mean of over the disc ▹ Cassie-like angle
diffuse spherical cap of volume and angle above , equation (10)
▹ extended in ; channel in 3D only
; pad by 8 cells at the top in
for do
▹ FNO, TFNO or WNO kernel
end for
crop in ;
return
Algorithm 4 Reference minimiser and refinement (Figure 8)
Require: wall field, , ; set of initial fields (three caps for steps and stripes, one cap otherwise, or an operator prediction for refinement)
for each do
; ; choose
repeat
by L-BFGS-B, warm-started at
\hfill
until and stationary
store the candidate
end for
return the candidate of lowest energy; its multiplier is the holding force
Verification of the reference and of the virtual-work force
Before the operators are assessed, the reference solutions must be shown to be minimisers of the discrete problem (7), and the virtual-work force (4) must be shown to be the physical force. Three independent checks are made; their results are collected in Figure 9. Each check is also run with the linear indicator , to make concrete the constraint artefact of § 1.2.3.
Figure 9. Verification of the reference minimiser and of the constraint formulation. (a) Apparent contact angle minus Young angle on uniform walls, for the reference and the operators, in two (open symbols) and three (filled) dimensions. (b) Supersaturation of the vapour with the linear liquid fraction as indicator, against the Gibbs–Thomson prediction (6); with the indicator used in this work vanishes to machine precision. (c) Force on a drop held across the step: virtual-work force (4) and slope of the energy landscape, with the indicator (filled) and with the linear fraction (open), for which the slope exceeds the force by .
Young’s law. On uniform walls with the apparent contact angle, obtained from a least-squares circle fitted to the contour above the first three cell rows, departs from the prescribed Young angle by at most in two dimensions (r.m.s. ) and by at most in the two orthogonal sections of the three-dimensional caps (Figure 9a). The departure is not a convergence error: restarting the minimiser from caps of angle returns the same state to (the one exception, a start at on the wall, ends in a distinct state higher). It is a property of the discrete Cahn wall at an interface width of about three cells, and it is the problem the operators are trained to solve. All comparisons below are therefore made with the discrete minimiser, not with the continuum angle.
The vapour and the drop volume. With the indicator the bulk vapour of every reference solution sits exactly at the bound (median deviation zero in both dimensions; the only departures are the exponential tails of the interface), and the volume constraint measures the drop alone. With the linear indicator it does not (Figure 9b). For the two-dimensional drop at the vapour sits at , and over the twelve uniform walls the measured shift , divided by the Gibbs–Thomson prediction (6) with the curvature of the fitted circle, is 1.01 on average (largest deviation 0.09). In three dimensions, where and the box is larger relative to the drop, the shift at is 0.0375, a fraction 0.34 of the prescribed volume is held in the vapour, and the drop at evaporates entirely (largest value of in the box, ). The supersaturation is quantitatively the Kelvin effect of the diffuse model, and with the linear indicator the ‘drop’ that a solver returns is smaller than the drop that was asked for.
The force on a drop straddling a step. For a drop held across a step, the virtual-work force must equal per unit depth independently of the drop shape and of the held position, as long as the step is straddled (equation (5)). Over the 26 straddling states of the three two-dimensional step walls of Table 2 it does so to within . The slope of the energy landscape, , a quantity computed independently from the energies alone, is –, and the drop itself, measured by the midpoint of its contact lines, moves by – times the displacement of the centroid (Figure 9c, filled symbols). The force, the energy landscape and the kinematics are thus mutually consistent, and the contact-line law is recovered as an identity of the minimiser. With the linear indicator the force is unchanged, but the slope is – and the drop moves by – times the centroid (open symbols): the centroid includes the vapour excess, which does not move with the drop, and the multiplier of the centroid constraint overestimates the capillary force by the factor . The same consideration applies to any diffuse-interface or pseudopotential calculation of the force on a drop from the response of its energy to a displacement of its centre of mass, and to any physics-informed loss built on a linear volume fraction.
Table 2: Held-out test problems. None of them is used in training. The reference minimum of the step and stripe problems is the lowest of three starts; for all problems it is further compared with the refined operator predictions (§ 3). Angles in degrees; (2D) and 12 (3D) lattice units.
| set | content | 2D | 3D |
| uniform | (2D), 60, 90, 120, 140 (3D) | 12 | 4 |
| step | , , (2D; first only in 3D); | 51 | 9 |
| stripes | mixed , , half-period –12; area-fraction , (3D: 6), –; sharp edges | 16 | 11 |
| random | training distribution, independent seed | 100 | 20 |
Table 2.
Accuracy of the data-free operators
Test problems and error measures
The operators are tested on problems that were never used in training (Table 2): (i) twelve uniform walls with ; (ii) a drop held at seventeen positions across three sharp-edged steps whose Young angles are those of the lattice Boltzmann walls used for comparison (, , ); (iii) striped walls with the same angles, of half-period – and area fraction –, with sharp (unsmoothed) stripe edges and periods down to , below the range sampled in training; and (iv) 100 patterns drawn from the training distribution with an independent random seed. The structured sets (ii) and (iii) contain configurations that are deliberately away from the training distribution (held positions up to from the box centre, sharper and narrower stripes), and they are the ones of physical interest.
For each problem we compare the energy of the prediction with the best minimum known for that problem. Because stripes and steps admit several metastable minima, the reference solver is started from three caps (with the Cassie-like mean angle and with the two extreme angles of the pattern) and the lowest minimum is kept; in addition, every operator prediction is used as the starting point of a reference solve (“refined” prediction), and the lowest of all these minima defines (Figure 10). The energy gap is a strict measure: it is non-negative for any field that satisfies the constraints, it vanishes only at the global minimum among those found, and it does not depend on the choice of norm, which affects pointwise field errors at a diffuse interface. We also report the relative error of the field, the intersection-over-union (IoU) of the liquid regions , the constraint residuals and the apparent angles. Per-run and per-family statistics, the distributions of the constraint residuals and the forces of every random problem are tabulated in the Supplementary Information (Table S4–Table S7, Figure S5 and Figure S6).

Figure 10. Evaluation workflow. Every held-out problem is predicted by the operator in one forward pass and solved independently by the reference minimiser; the prediction is also refined by the same minimiser. The best known minimum is the lowest of the reference and refined energies, and every prediction is scored against it and against the reference field by the metrics listed.
| run | med. | P90 | IoU | ||||
| FNO 2D | 0.057 | 0.965 | 0.001 | ||||
| TFNO 2D () | 0.120 | 0.936 | 0.002 | ||||
| WNO 2D | 0.118 | 0.939 | 0.002 | ||||
| FNO 2D, seed 1 | 0.060 | 0.966 | 0.001 | ||||
| FNO 2D, no prior | 0.138 | 0.929 | 0.003 | ||||
| FNO 2D, 3 budget | 0.026 | 0.986 | 0.000 | ||||
| TFNO 2D, 3 budget | 0.063 | 0.966 | 0.001 | ||||
| TFNO 2D, | 0.126 | 0.939 | 0.002 | ||||
| TFNO 2D, | 0.123 | 0.941 | 0.002 | ||||
| TFNO 2D, | 0.118 | 0.941 | 0.001 | ||||
| FNO 3D | 0.067 | 0.956 | 0.104 | ||||
| TFNO 3D | 0.080 | 0.944 | 0.075 | ||||
| WNO 3D | 0.069 | 0.954 | 0.113 |
Table S4. Accuracy of every run on the random held-out set: energy gap (median and 90th percentile), relative field error, intersection-over-union of the liquid regions, volume and centroid residuals, and absolute error of the virtual-work force (in units of ) with respect to the reference. Gaps of the main runs are taken to the best known minimum , those of the ablation runs to the reference minimum.
| operator | set | iterations | (s) | (s) | ||
| 2D FNO | uniform | 12 | 368 | 4.0 | 3.7 | |
| 2D FNO | step | 51 | 478 | 6.8 | 5.8 | |
| 2D FNO | stripes | 16 | 409 | 4.1 | 4.3 | |
| 2D FNO | random | 100 | 466 | 6.4 | 5.8 | |
| 2D TFNO | uniform | 12 | 348 | 5.2 | 3.7 | |
| 2D TFNO | step | 51 | 490 | 6.8 | 5.8 | |
| 2D TFNO | stripes | 16 | 414 | 5.6 | 4.3 | |
| 2D TFNO | random | 100 | 478 | 6.2 | 5.8 | |
| 2D WNO | uniform | 12 | 343 | 4.7 | 3.7 | |
| 2D WNO | step | 51 | 508 | 6.8 | 5.8 | |
| 2D WNO | stripes | 16 | 407 | 3.9 | 4.3 | |
| 2D WNO | random | 100 | 480 | 4.7 | 5.8 | |
| 3D FNO | uniform | 4 | 428 | 87.1 | 49.4 | |
| 3D FNO | step | 9 | 550 | 118.3 | 87.1 | |
| 3D TFNO | uniform | 4 | 390 | 82.7 | 49.4 | |
| 3D TFNO | step | 9 | 527 | 116.9 | 87.1 | |
| 3D WNO | uniform | 4 | 414 | 78.8 | 49.4 | |
| 3D WNO | step | 9 | 548 | 104.2 | 87.1 |
Table S7. Refinement of the operator predictions by the reference minimiser: number of problems, median number of quasi-Newton iterations and wall-clock time of the refinement, median time of the reference solve from the analytic cap, and median relative field difference between the refined prediction and the reference.
Figure S5. Constraint residuals of the predictions on all held-out problems: (a,c) volume, (b,d) centroid; (a,b) two dimensions, (c,d) three dimensions. Residuals below are shown at .
Figure S6. Virtual-work force , equation (4), of the operator predictions against that of the reference minimiser on the random held-out problems: (a) two dimensions, (b) three dimensions. The dotted line is equality.
Energy gap, field error and basin selection
Figure 11 shows predictions for eight held-out two-dimensional problems, and Figure 12 summarises the two-dimensional results. On uniform walls the energy gap of the FNO has a median of (TFNO , WNO ), and the apparent angles agree with the reference to a fraction of a degree. On the held-out random patterns the median gaps are , and for the FNO, TFNO and WNO, and the median field errors are 0.057, 0.120 and 0.118. To put the energy gap in perspective: in two dimensions a gap of equals the tension energy of 0.1 lattice units of additional interface, and the median field error of the FNO corresponds to a mean displacement of the contour by about half a lattice cell. The volume constraint, enforced only through the penalty, is satisfied to a median (FNO).
Figure 11. Held-out two-dimensional problems, two of each pattern family, never seen in training: field predicted by the data-free FNO (shading, with its interface as a solid line) and interface of the reference minimiser (dashed). The strip below each drop shows the wall wettability , from hydrophobic (blue) to hydrophilic (orange). The energy gap to the best known minimum, , and the intersection-over-union of the liquid regions are given in each panel. The same problems predicted by the TFNO and the WNO are shown in the Supplementary Information.
Figure 12. Accuracy and cost in two dimensions. (a) Energy gap to the best known minimum for every test problem (dots) and its median (bars), by pattern family, for the three operators; structured sets on the left, random held-out patterns on the right. (b) Field error against energy gap. (c) Cumulative distribution of the intersection-over-union of the predicted and reference liquid regions. (d) Wall-clock time per problem on two CPU threads: reference solve from the analytic cap, operator prediction, and reference solve started from the operator prediction. Gaps below are shown at .
The difficulty of a pattern grows with the number of contact-line positions it makes available: the gaps on the uniform walls are an order of magnitude smaller than on steps, stripes and random patches, on which the contact line must be placed at, or pinned on, a wettability edge. The largest gaps (up to ) occur for random patches whose many edges create closely spaced metastable states.
A central question for a data-free operator is whether it selects the right state among several metastable minima. Refining each prediction with the reference solver answers it. On the 100 random problems the refined FNO prediction returns to the reference minimum (same energy to , median distance below ) in all but 1 case, and in that case it reaches a minimum lower than the best of the three reference starts: the operator, trained to minimise the energy over a whole distribution of problems, found a better state than the classical solver started from the natural initial guesses. The gap on the random patterns is therefore an approximation error inside the correct basin, not a wrong basin. On the structured sets, which lie partly outside the training distribution, the results are less uniform: 1 of the 51 step problems and 2 of the 16 stripe problems are refined into a minimum higher than the reference: the prediction sits in the basin of a neighbouring metastable state, with a different number of stripes wetted or with the front line on the other side of the step, and these cases account for the largest gaps of Figure 12(a). The two other operators behave in the same way: every refined TFNO and WNO prediction on the uniform and random walls returns to the reference minimum (with one exception for the TFNO), and on the structured walls the same few step and stripe problems (1 and 2 for the TFNO, 1 and 2 for the WNO) end in a neighbouring metastable state. Basin selection is therefore a property of the problem (of how close in energy the competing states are) more than of the architecture.
The three architectures. The FNO is the most accurate operator on every family: its median energy gap is three to eight times smaller than that of the TFNO and the WNO on uniform walls, steps and random patterns, but only 1.2–1.6 times smaller on the stripes, where all three operators return similar Cassie-like states (§ 3.2.2; Figure 12a). The TFNO achieves this with 42.8 k parameters, against 6.30 M for the FNO: a factor of about 150 fewer, at the cost of at most about three in the energy gap. The WNO, whose local wavelet kernel might be expected to suit a thin interface, does not outperform the global Fourier kernels; its errors are largest on the step walls (median , against for the FNO), plausibly because there the response of the drop to the pattern is non-local: the position of the far contact line is set by the volume constraint, not by the wall beneath it.
Three dimensions
Table 3 collects the results in both dimensions, and Figure 13 shows the three-dimensional ones by family. In three dimensions the FNO reaches median energy gaps of on uniform walls, on stripes and on the random patterns, comparable to two dimensions, although it was trained on six times fewer problem instances. The step problems are the hardest (, IoU 0.874): the drop is held up to from the step, where in the periodic box it also meets the returning step, and the contact line is pinned on an edge in about half of the held positions (§ 3.2.1). Refinement of the uniform and step predictions returns the reference minimum in all but 1 case. The ranking of the architectures is that of two dimensions but the spread is smaller: on the random patterns the TFNO reaches and the WNO , on the steps and , and each of them, after refinement, ends in a higher minimum on one step problem. A three-dimensional prediction costs 628 ms (TFNO 575 ms, WNO 778 ms) against a median of 117.8 s for the reference solve, a factor of about 188.
| median | IoU | |||||||
| operator | uniform | step | stripes | random | random | (ms) | (s) | |
| 2D FNO | 0.965 | 47 | 5.8 | |||||
| 2D TFNO | 0.936 | 38 | 5.8 | |||||
| 2D WNO | 0.939 | 47 | 5.8 | |||||
| 3D FNO | 0.956 | 628 | 117.8 | |||||
| 3D TFNO | 0.944 | 575 | 117.8 | |||||
| 3D WNO | 0.954 | 778 | 117.8 |
Table 3. Accuracy and cost of the data-free operators on the held-out sets of Table 2: median energy gap per set, median intersection-over-union of the liquid regions on the random set, wall-clock time of one prediction and median time of one reference solve on the random set. In three dimensions only the uniform and step predictions were refined, so that is the reference minimum for the stripe and random sets.
Figure 13. Accuracy and cost in three dimensions, as in Figure 12. The random held-out set contains twenty patterns, so that some families have a single member. (d) Only the reference solve from the analytic cap and the predictions are timed, since the random three-dimensional problems were not refined. Gaps below are shown at .
Cost
A prediction costs 47 ms (FNO) on two CPU threads, against a median of 5.8 s for one reference solve on the same two threads, a factor of about 123 (Figure 12d); training costs 40–55 minutes per operator in two dimensions and 1.2–2.3 hours in three, on four CPU threads. The training cost of the FNO is recovered after about 570 two-dimensional or 60 three-dimensional problems, and a parametric study such as the force–position curves of § 3.2.1, which with three starts per position takes the classical solver about a quarter of an hour in two dimensions and forty minutes in three, costs a few seconds. Using the prediction as the initial guess of the reference solver does not shorten the solve, however (median 6.4 s): the multipliers of the augmented Lagrangian start from zero, so that the first subproblem pulls even an accurate initial field away from the constrained minimum, and the quasi-Newton solver retraces most of the path (about 200 iterations in the first outer cycle from either start, for the five random problems that we profiled). Warm-starting the multipliers as well, by fitting them to the predicted field, removes this penalty but helps only at coarse tolerance (§ 3.5). The operator and the classical solver are complementary: the first gives an approximate equilibrium in the correct basin in milliseconds, the second makes it exact when that is needed.
Capillary physics recovered by DropFENO without data
A drop held across a wettability step
Figure 14 follows a two-dimensional drop that is held at successive positions across a step from a hydrophobic () to a hydrophilic () wall. Each point is an independent constrained minimisation (reference) or an independent forward pass of an operator; the operators were never shown a step at most of these positions relative to the box, nor these Young angles.
Figure 14. A two-dimensional drop held at position across a wettability step (step at , hydrophobic for ): reference minimiser (lines) and operators (symbols), each point an independent solve or prediction. (a) Equilibrium energy landscape for three steps. (b) Virtual-work force (4) in units of ; the plateau at unity is the contact-line law (5). (c) Positions of the two contact lines for the step: the front line snaps onto the hydrophilic side at , the rear line is pinned at the step for .
Energy landscape. The equilibrium energy is flat while the drop rests entirely on one wall, falls steeply while it straddles the step, and flattens again once it rests on the hydrophilic wall (Figure 14a). The total decrease of the energy, , and for the three steps, is the work that the step can do on a drop that crosses it quasi-statically, and an upper bound on the energy available to a released drop. The operators reproduce the landscape, including the positions of its two kinks, without having been trained on any landscape: each point is a separate prediction, and the landscape emerges from the consistency of the predictions across positions.
Force and the contact-line law. The virtual-work force (Figure 14b) makes the structure explicit. It vanishes while the drop is on one wall, jumps to when the advancing contact line reaches the step ( for the step), and keeps exactly this value, independently of the deformation of the drop, for as long as both contact lines are on opposite sides of the step: this is the contact-line force law of equation (5), here an identity of the equilibrium problem. The FNO reproduces the plateau to a median relative error of in 25 of the 26 straddling states (TFNO 24, WNO 22). The states it misses lie at the snap position itself, where the drop with its front line just before the step and the drop with the front line just past it are nearly degenerate.
Pinning of the receding contact line. Beyond the rear contact line reaches the step and stays there (Figure 14c): instead of crossing onto the hydrophilic wall it is pinned at the edge, while the drop is pulled further. Gibbs’ criterion ([10, 26]) allows a contact line on an edge to take any angle between the two Young angles; as increases the local angle at the rear decreases from the hydrophobic towards the hydrophilic value, the wall trace at the step decreases from , and the force falls continuously to zero, reached when the rear line is released at . The response of the drop to the step is therefore strongly asymmetric: the advancing line snaps onto the hydrophilic side, the receding line is pinned at the edge. In the pinning regime the force is a functional of the field at the contact line itself, which is the most difficult output of the problem, and the operators are least accurate there (mean absolute error of of 0.15 for the FNO over the 13 pinned states): their rear contact line reaches the step too late, so that the predicted drop still straddles the step and carries the full force over part of the range in which the reference drop is already pinned.
The three-dimensional step: the chord law. In three dimensions the force on a straddling drop is no longer a constant: by (5) it is times the chord that the footprint cuts on the step line, which grows from zero as the advancing line reaches the step, passes through a maximum close to the footprint diameter, and falls again as the rear line approaches (Figure 15). In the periodic box a drop held far from the step also touches the returning step, and the law then reads . The reference force, computed from the wall trace alone, follows this law with the geometric chords measured on the contour to within 1.0 per cent in all 5 straddling states, with a maximum . In the remaining states a contact line sits on an edge (the rear line on the step, or the advancing line on the returning, hydrophilic-to-hydrophobic edge), and the force departs from the chord law exactly as the pinning argument of § 1.2.2 predicts: the chord on the line vanishes while on the edge, and with it the force, takes intermediate values. This is the statement, here derived and verified for the equilibrium problem, that our lattice Boltzmann simulations found to hold for the force that drives a three-dimensional drop across a step. The FNO reproduces the force of the straddling states to a median relative error of 0.04 (TFNO 0.06, WNO 0.07); over all held positions, including the pinned ones, its median error is 0.15 of the largest force (TFNO 0.19, WNO 0.21). As in two dimensions, the operators err where a contact line sits on an edge (Figure 15).
Figure 15. A three-dimensional drop (, ) held at nine positions across a step in a periodic box. (a) Virtual-work force (4) of the reference minimiser (filled circles) and of the operators (open symbols) against the contact-line law evaluated with the reference chords (line). (b) The chord cut by the footprint on the step line and, dashed, the chord on the returning step of the periodic box. Shaded: states in which a contact line sits on an edge, where the force departs from the chord law.
Apparent angles on striped walls
Two dimensions: pinning on the stripe edges. On a striped wall the equilibrium drop has its contact lines on stripe edges whenever it can, and its apparent angle is then not the Cassie–Baxter angle but whatever angle the volume and the positions of the two pinned lines impose ([3, 16]). The reference minimisers show this clearly (Figure 16a,Figure 16b): for the stripes of equal width the apparent angle varies non-monotonically between and as the half-period grows from 2 to 12 cells, about the Cassie–Baxter value of ; on the walls of varying area fraction it stays within of the Cassie–Baxter curve for the shorter period but departs from it by more than for , for which the drop spans only about two periods. The operators do not resolve this selection. Their apparent angles stay within – (FNO) on the equal-width stripes, close to the Cassie–Baxter angle, with an r.m.s. deviation from the reference of
Figure 16. Apparent contact angles on striped walls. (a) Two dimensions, mixed stripes of width ; the Cassie–Baxter angle and the two Young angles are shown as horizontal lines. (b) Two dimensions, stripes of period and hydrophilic fraction , with the Cassie–Baxter angle. (c) Three dimensions, mixed stripes: angle across (, filled) and along (, open) the stripes, compared with the drops of our three-dimensional lattice Boltzmann simulations at the same .
(TFNO , WNO ) over all stripe problems: the predicted contact lines sit between edges rather than on them, and the predicted drop is an average over the pattern. Because a contact-line displacement along a stripe is one of the softest modes of the energy (§ 3.5), these predictions are nevertheless close in energy to the pinned state (median gap ), and refinement carries all but 2 of them into the reference minimum. The apparent angle on a striped wall is thus the quantity most sensitive to the soft-mode error of an energy-trained operator, and the one for which a refinement step is indispensable.
Three dimensions: the anisotropy of the apparent angle. On a three-dimensional striped wall the pinning acts only across the stripes: the contact line can slide along a stripe edge but not across it, so that the footprint is shaped by the stripes (Figure 17k). The apparent angle measured in the section across the stripes, , and along them, , then differ. The reference minimisers on the stripes show an anisotropy of up to (Figure 16c): for , and ; for , and ; for , and . These are, to within six degrees, the angles of the drops in our three-dimensional lattice Boltzmann simulations at comparable ( and at , and at , and at ), obtained there at a 2.5 times larger drop radius and as the end state of an impact and relaxation. The agreement shows that the anisotropy found in the dynamic simulations is an equilibrium property, set by which stripe edges the contact line is pinned on, and that the non-monotonic dependence on reflects the discrete number of stripes spanned by the footprint. The operators, in contrast, predict nearly isotropic drops: and differ by at most for the FNO (TFNO , WNO ) and stay near the Cassie–Baxter value, as in two dimensions, while the energy gap on these walls remains small (median ). The anisotropy of the apparent angle is, with the pinned receding line on a step, the clearest example of a physically important quantity that lies in the soft modes of the energy, and therefore of a quantity that an energy-trained operator resolves least accurately.
Figure 17. Held-out three-dimensional problems (, cells): a uniform wall at , a drop held centrally on the step, stripes of half-period and a checkerboard. (a–d) Drop surface predicted by the data-free FNO above the patterned wall (colour: , blue hydrophobic, orange hydrophilic), shown over the central cells. (e–h) Section through the centre of the drop perpendicular to : predicted field (shading), its interface (solid) and the interface of the reference minimiser (dashed). (i–l) Wetted footprint of the FNO (solid) and of the reference (dashed) over the wall pattern.
Gravity and inclined walls
The results above are for drops much smaller than the capillary length. For larger drops gravity flattens the drop, and on an inclined wall its component along the wall must be balanced by the wall pattern for the drop to remain at rest. In this section we extend DropFENO to gravity in two dimensions, verify the reference solutions against the Young–Laplace equation, and use the virtual-work force to predict where a drop comes to rest on an inclined wall with a wettability step and at which inclination it slides off (Figure 18).
Figure 18. A drop on a wall inclined by , with a wettability step and the hydrophobic side downhill. The weight component pulls the drop downhill and the pattern force of the step pulls it towards the hydrophilic side; the drop rests where the two balance, equation (14), and slides off when the weight exceeds the largest force the step can exert. The normal component flattens the drop.
Formulation
With the Bond number and a wall inclined by an angle , gravity has a component normal to the wall, , and a component along it, , directed downhill (towards ). The gravitational energy of the liquid is
with the liquid indicator of the constraints (3) and the height above the wall. The normal part does not depend on the position of the drop along the wall, so that the bulk energy remains invariant under a translation of the fluid and the virtual-work force (4) is unchanged: it is still the wall integral of the equilibrium field, and the contact-line law (5) still holds for a straddled step, independently of the deformation of the drop by gravity. The tangential part is linear in and equals for a drop held at its centroid ; it therefore does not change the held shape, and only adds the weight to the force balance. A free drop on the inclined wall rests where the pattern force balances its weight,
where is the virtual-work force of the held drop at the normal Bond number . The largest force a step can exert is the plateau value of a straddling drop, so that in two dimensions the drop slides off the step when
This is the analogue, for a chemical step, of the retention force of a drop of width held by contact-angle hysteresis ([9]): the difference of the cosines of the two Young angles takes the place of the hysteresis. For the step, , and equation (15) gives for and for ; for the step holds the drop at any inclination.
Training and reference. Because the tangential part does not change the held shape, the operator needs only as an additional input. We train an FNO and a TFNO with the architectures and budget of § 2, with a constant input channel , drawn uniformly in for every training instance, and with added to the energy in the loss (9); the cap prior is unchanged, so that the network learns the deformation by gravity. Training takes 0.9 h (FNO) and 0.7 h (TFNO) on four CPU threads, with the reference solves running at the same time. The reference minimiser of § 2.1.4 is used with the same energy. For the inclined wall it is run without the centroid constraint and with both components of gravity, starting from a cap on the hydrophilic side (); it then finds the rest position of a free drop directly, without using equation (14).
Drop shapes and accuracy
On uniform walls the diffuse-interface reference minima agree with the sharp-interface solution of the Young–Laplace equation with gravity for the same volume and Young angle: for the drop height and base length differ from it by at most 4.4 and 4.8 per cent (Figure 19a,Figure 19b). At the differences are up to 1.6 and 5.5 per cent; they are the lattice effect on the contact angle discussed in § 2.2. The largest difference in height under gravity occurs for the flattest drops (, a height of 13 cells at ), for which the interface width is no longer small compared with the drop height. At the drop is 27 per cent lower and its base 26 per cent wider than at for , and 24 per cent cent lower and 68 per cent wider for . DropFENO reproduces this deformation with a median error of 0.29 cells in the height and 0.64 cells in the base length (Figure 19c). Table 4 lists the energy gaps: the FNO reaches a median of on uniform walls, on the step and on random patterns with random . These gaps are larger than without gravity (, and ), most on uniform walls, because the same training budget now has to cover the additional parameter . The TFNO is less accurate than the FNO by a factor of four to nine, a larger factor than without gravity. A prediction takes 14 ms (FNO), against a median of 5.8 s for a reference solve.
Figure 19. Drops on uniform walls under gravity (two dimensions). (a) Height and (b) base length against the Bond number for four Young angles: sharp-interface Young–Laplace solution (lines), reference minimiser (filled circles) and DropFENO (FNO, open squares). (c) Interfaces at for , 0.25, 0.5 and 1: reference (solid) and DropFENO (dashed).
| median | IoU | |||||
| operator | uniform | step | random | random | (cells) | (ms) |
| FNO | 0.959 | 0.63 | 14 | |||
| TFNO | 0.927 | 1.04 | 11 |
Table 4. Accuracy of DropFENO with gravity on held-out problems: median energy gap (capillary plus gravitational energy) per set, median intersection-over-union of the liquid regions on the random set, median error of the drop height over all sets (lattice units) and wall-clock time of one prediction. The median reference solve takes 5.8 s.
The step under gravity
Figure 20 repeats the step of § 3.2.1 at , 0.5 and 1 on a horizontal wall. The plateau of the force is unchanged by gravity, as the virtual-work argument predicts: for the straddling states of the reference at it equals to within . Gravity changes where the plateau begins and ends, because a flatter drop has a longer base: the plateau extends from to at and from to at , where the first value is the position at which the advancing line reaches the step and the second the position at which the receding line becomes pinned at the step and the force begins to fall. DropFENO follows these shifts. As without gravity, its largest errors are in the pinning range: over the held positions at which the reference force lies between 5 and 95 per cent of the plateau, the mean absolute error of of the FNO is 0.17.
Figure 20. A drop held across the step on a horizontal wall at , and : reference minimiser (lines) and DropFENO (FNO, open squares). (a) Energy landscape, including the gravitational energy. (b) Virtual-work force; the plateau does not depend on . (c) Positions of the two contact lines at (dotted) and (solid).
Rest position and sliding on an inclined wall
On the inclined wall the free drops of the reference come to rest with the downhill contact line held at the step, in the pinning range of the force (Figure 21a). As increases the weight grows and the drop rests closer to the step, until it slides off between and for and between and for , close to the values and of equation (15). For the 16 retained drops the pattern force computed from the wall trace balances the weight to within (Figure 21b); the small residual reflects the finite tolerance of the free minimisation, in which a translation of the drop is a very soft mode, and the discrete lattice. The reference thresholds obtained by bisection at 4 Bond numbers lie within of equation (15), all slightly above it, which is consistent with the same small residual resistance of the free drops (Figure 21c).
Figure 21. Free drops on the inclined wall with the step. (a) Rest position against the inclination for and : free drops of the reference minimiser (circles; crosses: the drop slides off) and DropFENO from the force balance (14) on held drops (lines); dashed lines mark the threshold of equation (15). (b) Pattern force against weight for the retained reference drops; the dotted line is equality. (c) Sliding angle against the Bond number: equation (15) (line), DropFENO (squares) and reference bisection (circles with the final bracket).
DropFENO predicts the same quantities from held drops only. For each inclination we evaluate the FNO force on 241 held positions, which takes a few seconds, and apply the force balance (14) to a drop released at . For the retained drops the predicted rest positions differ from those of the free reference drops by on average (at most ); the one exception is at , just above the threshold of equation (15), at which the reference drop is still retained and DropFENO predicts that it slides. This error is consistent with the error of the operator in the pinning range, where the rest position is set. The sliding angles predicted by the FNO, from its maximum force, lie within of equation (15) for . The retention threshold, which depends only on the plateau of the force, is therefore predicted accurately, whereas the rest position, which depends on the pinned contact line, inherits the soft-mode error of the operator identified in § 3.5.
Ablations: factorisation, prior, budget and resolution
Rank of the factorised kernel. Figure 22(a) places every two-dimensional operator in the plane of parameter count and median energy gap on the random held-out set. The CP rank of the TFNO matters little: rank 4 (13.9 k parameters) gives , rank 8 gives , rank 32 (the default, 42.8 k) and rank 64 (75.8 k) , against for the dense FNO with 6.30 M parameters. A sixteen-fold increase of the rank thus improves the gap by less than a factor of 1.4, and the remaining factor of about 2.5 to the dense FNO is not closed within the range of ranks tested: the dense spectral weights of the FNO are compressible to below one per cent of their size at a moderate, not a negligible, loss of accuracy.

Figure 22. Ablations in two dimensions. (a) Median energy gap on the random held-out set against the number of trainable parameters: TFNO for CP ranks –, FNO, WNO, a second FNO seed and FNO and TFNO trained with three times the budget. (b) FNO with and without the analytic cap prior, by pattern family. (c) Zero-shot transfer to a grid refined by a factor of two (same physical problem, and doubled in lattice units).
Seed and training budget. A second FNO trained from a different initialisation and with a different stream of training patterns reaches (first seed ), and its median gaps on the individual pattern families differ from those of the first by at most about 20%, except on the uniform members of the set, where the gaps are smallest and differ by 40%. With this single pair of seeds as an indication of the spread, the differences between architectures reported in § 3, which are factors of two or more, are significant, whereas differences of a few tens of per cent are not. Tripling the number of training iterations, and with it the number of distinct training patterns, reduces the median gap of the FNO from to , a factor of nearly four, and that of the TFNO from to (Figure 22a). The operators are therefore far from saturated at the budget used in the rest of the paper, whose accuracies are conservative; in the data-free setting additional training instances cost only the compute to draw and evaluate them. Even with three times the budget, however, the TFNO does not reach the FNO trained with the base budget, so that the advantage of the dense kernel is not an artefact of under-training.
The analytic prior. Without the cap prior of equation (10) (the network then outputs directly, with the same inputs other than ), the FNO still learns the constrained equilibrium, but its median gap on the random set rises from to , and on every pattern family it is two to four times larger, on uniform walls more than twenty times (Figure 22b). The prior is not required, but it is worth more than tripling the training budget: it supplies the drop size and the mean shape, which the network otherwise has to learn from the volume and centroid penalties alone, and leaves the network to learn only the response of the drop to the pattern.
Resolution. Neural operators are often credited with discretisation invariance. For the present problem the claim fails, for a physical reason. Refining the grid by a factor of two at fixed physical problem (drop radius and interface width both doubled in lattice units, step width scaled accordingly) and evaluating the trained operators without retraining increases the median energy gap on uniform walls from to for the FNO and on the step problems from to (Figure 22c). The discrete energy depends on the interface width in lattice units, which sets both the contact angle actually realised by the Cahn wall (§ 2.2) and the cost of the interface, and an operator trained at has learnt the minimiser of that discrete problem, not of its continuum limit. Retraining at the finer resolution costs no data, only compute.
Discussion
Where the error of an energy-trained operator lives. An operator trained on the energy is penalised for an error in proportion to , with the Hessian of the energy at the minimiser, and not in proportion to . It is therefore free to leave error in the soft directions of and is driven hard to remove it from the stiff ones. The Rayleigh quotient of the actual FNO error on the random patterns has a median of 0.09 (TFNO 0.23, WNO 0.26), against 0.56 for smooth random perturbations of the same interfacial support and 3.80 for white ones (Figure 23a); the translation mode of the interface, the softest physically meaningful direction, has 0.031. The residual error is thus a small displacement or tilt of the interface and of the contact line, not a distortion of the interface profile. Three observations of § 3–§ 3.2 follow from this. First, the energy gap is small while the field error is not, because the second is dominated by modes that cost almost no energy. Second, the quantities that are first order in these soft modes (the position of a contact line on an edge, and with it the force in the pinning regime) are the least accurate outputs, whereas the force on a straddling drop, which depends only on which side of the step each line lies, is reproduced to a few parts per million. Third, the prediction accelerates a classical solver only for a coarse tolerance. In a single stiff-penalty quasi-Newton pass with multipliers fitted to the initial field, the FNO prediction reaches a gap of after a median of 25 iterations, against 313 from the analytic cap (median ratio 6.0 over 30 random problems); but to reach and it still needs 363 and 598 iterations, a gain of only 1.8 and 1.5, because the remaining error lies precisely in the ill-conditioned directions that limit the convergence of the solver (Figure 23b). The operator and the solver are, in this sense, complementary rather than redundant.

Figure 23. Where the error of an energy-trained operator lives. (a) Stiffness of the operator error on the 100 random held-out problems, with the Hessian of the discrete energy at the reference minimiser, against interface-localised smooth and white noise and the translation mode of the interface (dotted). (b) Energy gap along a quasi-Newton solve started from the analytic cap and from the FNO prediction (median and quartiles over 30 random problems); dotted lines mark the tolerances of § 3.5.
The virtual-work test as a verification principle. Without data, the usual measures of a surrogate (agreement with a held-out solution) presuppose the classical solver that the surrogate is meant to replace. The virtual-work identity (4) supplies a test that does not: an operator that has learnt the constrained minimiser must return a force that equals the slope of its own energy landscape and, on a straddled step, the contact-line value . Both checks require only forward passes of the operator. The same construction applies to any operator trained on a variational principle with a parametric external field (the Hellmann–Feynman force on a nucleus in electronic-structure surrogates, the configurational force on a defect in elasticity, the force on an inclusion in a membrane), and it tests the physics of a prediction rather than its similarity to a reference field.
Constraints in physics-informed losses. The Gibbs–Thomson artefact of § 1.2.3 is not specific to neural operators. It affects any diffuse-interface calculation that imposes the volume or the centre of mass through the linear liquid fraction (a common choice in phase-field energy minimisation and in physics-informed losses for two-phase problems), and its size grows with the ratio of the box to the drop volume and with the interface width relative to the drop: the vapour is shifted by , and each unit volume of vapour holds a liquid volume . In our three-dimensional box it holds a third of the liquid in the vapour and evaporates a drop at . An indicator with adds no cost and removes it exactly; we recommend it for any such loss.
Limitations. The diffuse interface is three cells wide and the drops are 16 (two dimensions) and 12 (three dimensions) cells in radius. The operators solve the discrete problem at this resolution, including its lattice-induced departures from Young’s law, and do not transfer zero-shot to a finer grid (§ 3.4). Gravity is treated in two dimensions only (§ 3.3); in three dimensions the retention force is times the chord, which itself depends on the Bond number. The problem is static: the operators predict equilibria and the landscape , not the dissipative dynamics along it, and the hysteresis of a moving contact line enters only through the multiplicity of metastable states. Which of these states an operator returns is decided by its training and is not controlled; on the structured walls a few predictions lie in the basin of a neighbouring state. Finally, the pattern distribution is generic but finite; patterns far outside it, such as stripes much narrower than the interface, are outside the scope of the present operators.
Conclusions
DropFENO, a set of neural operators trained on the free energy alone without any solution field, learns the capillary equilibrium of drops on chemically patterned walls in two and three dimensions to within a small fraction of the free-drop energy, at a cost two orders of magnitude below that of a per-instance minimisation, and almost always in the basin of the reference state. The constrained-minimisation structure of the problem supplies the means to verify them without data. The virtual-work theorem makes the capillary force an explicit functional of the equilibrium field; on a straddled step it reduces identically to the contact-line law , which the reference minimiser satisfies to better than one part in a thousand in two dimensions and to about one per cent with the geometric chord in three, and which the operators reproduce as an emergent property of predictions made independently at each position. The comparison identifies the limits of energy-based training: the error lives in the soft modes of the energy, so that contact-line positions on edges (the pinned receding line at a step, the edge-pinned lines that set the apparent angle on stripes) are the least accurate outputs, while the energy and the force on a straddling drop are the most accurate. For these outputs a short refinement by a classical solver, started from the prediction, recovers the pinned state in nearly all cases. These accuracies are conservative: tripling the training budget, which without data costs only compute, reduces the median gap of the FNO by a further factor of nearly four. Among the architectures the dense FNO is the most accurate, the CP-factorised TFNO trades a factor of three in accuracy for a factor of 150 in size, and the local wavelet kernel of the WNO brings no advantage. With gravity, which leaves the virtual-work force unchanged, the same force balance gives the rest position of a drop on an inclined patterned wall and the inclination at which it slides off; the threshold depends only on the plateau of the force and is predicted accurately, whereas the rest position depends on the pinned contact line. Finally, the choice of the liquid indicator in the constraints matters: the linear liquid fraction creates a Gibbs–Thomson supersaturation of the vapour that can hold a third of the liquid and biases forces inferred from energy landscapes, and an indicator flat in the bulk phases removes it. Both the virtual-work test and the constraint remedy carry over to any operator or physics-informed network trained on a variational principle with constraints.
Supplementary Information
The Supplementary Information contains a notation table, the configuration and cost of every training run, per-run, per-family and per-angle accuracy tables, refinement statistics, training histories and schedules, constraint residuals, virtual-work forces of every random problem, galleries of the TFNO and WNO predictions, schematics of the wavelet decomposition and of the input layout, and the pattern sampler and stiffness diagnostic as algorithms.
Data and code availability
The DropFENO source code (the free energy and constraints, the FNO, TFNO and WNO operators, the data-free training, the reference minimiser, and the scripts that reproduce every figure and table) is available at https://github.com/Ganesh1591/DropFENO and will be made public upon publication. No training data exist: the operators are trained on the free energy alone.
Author contributions (CRediT)
G.S. Meshram: conceptualisation, methodology, software, validation, formal analysis, investigation, visualisation, writing (original draft). P.P. Chakrabarti: supervision, methodology, writing (review and editing). S. Chakraborty: supervision, conceptualisation, writing (review and editing).
Acknowledgements
The authors acknowledge the Computational Facility of the Indian Institute of Technology Kharagpur for providing the computing resources used in this work.
Declaration of interests
The authors report no conflict of interest.
References
Supplementary Information for DropFENO: A Data-Free, Physics-Based Operator-Learning Framework for Droplet Equilibria on Mixed-Wettability Patterned Surfaces
Ganesh Sahadeo Meshram; Partha Pratim Chakrabarti; Suman Chakraborty
This document supplements the main paper on DropFENO with the notation, the architecture and training details of every run, additional accuracy statistics, training histories, constraint residuals, the virtual-work forces of the random held-out problems, galleries of the TFNO and WNO predictions, and two auxiliary algorithms. No additional training or solves were performed for it: every figure and table is produced from the result files of the main study by the script make_si.py and the gallery scripts. Figures, tables and algorithms are numbered with the prefix S; references without it point to the main paper.
supplementary.pdf
Notation
Table S1 lists the symbols used in the main paper and in this document.
| symbol | meaning | symbol | meaning |
| phase field, liquid, vapour | solution operator, its approximation | ||
| local Young angle of the wall | trainable weights | ||
| interface width, tension | input channels | ||
| double well, wall and indicator functions | analytic cap prior, | ||
| continuous, discrete free energy | network output (correction) | ||
| liquid volume, its target | lifting and projection | ||
| drop centroid, holding position | global kernel, pointwise map of block | ||
| radius of the free drop | latent width, number of blocks | ||
| free-drop energy | retained Fourier modes | ||
| multipliers (pressure, holding force) | CP rank of the TFNO | ||
| virtual-work force | Haar levels of the WNO | ||
| (chord) | wetted chord on the step line | penalty weight | |
| apparent angle (circle fit) | |||
| pattern distribution | IoU | intersection-over-union of |
Table S1. Notation. Lattice units throughout: unit cell spacing, , .
Architecture details
Table S2 lists the grids and hyperparameters of the two- and three-dimensional configurations; Figure S1 shows the input layout and the padding, and Figure S2 the wavelet bands used by the WNO kernel (complementing Figure 6 of the main paper). Algorithm S1 lists the pattern sampler of Figure 4 of the main paper.
| two dimensions | three dimensions | |
| grid | ||
| drop radius , interface width | ||
| input channels | ||
| latent width , blocks | ||
| padding of inside the operator | 8 cells | 8 cells |
| FNO/TFNO retained modes | ||
| TFNO CP rank | ||
| WNO Haar levels , coarsest grid | ||
| lifting | conv. to , GELU, conv. | conv. to , GELU, conv. |
| projection | conv. to , GELU, conv. to | conv. to , GELU, conv. to |
| parameters FNO / TFNO / WNO | 6.30 M / 42.8 k / 2.37 M | 14.75 M / 39.7 k / 4.10 M |
Table S2. Grids and hyperparameters of the operators. Parameter counts are real numbers (complex weights count twice).

Figure S1. (a) Input channels of the two-dimensional operator: the wall field extended uniformly in , the normalised height, the horizontal distance from the holding position and the analytic prior. (b) The latent field is zero-padded by eight cells at the top before the global kernels, because the direction is not periodic, and cropped after the last block; the wall lies below the first row.

Figure S2. Haar bands of the padded two-dimensional latent field after levels. The WNO kernel mixes the channels of the coarsest approximation and of the three coarsest detail bands with weights that depend on the location on the coarse grid; the finer details are set to zero, so that the kernel is a smooth, local, multi-scale operator and local detail is carried by the pointwise path .
Algorithm S1 Pattern sampler (Figure 4 of the main paper)
Require: grid (), drop radius , random generator
family uniform choice among {uniform, step, stripes , patches} (2D) or these with stripes and checkerboard (3D)
; ,
if uniform then
else if step then
else if stripes then draw period , fraction , phase; smoothed periodic indicator
else if checkerboard then draw and phases;
else smoothed step of Gaussian-filtered white noise (filter scale ) patches
end if
; for a step, shift the pattern so that the step lies within of
return
Training runs
Table S3 lists every training run of the study, with its cost. All runs use the same schedules (Figure S3): a geometric continuation of the penalty weight from 10 to over the first 60% of the iterations and a one-cycle learning rate. Figure S4 compares the histories of the ablation runs of § 3.4 of the main paper. Without the prior the network starts from everywhere, with an energy fourteen times that of the free drop and a volume error of order one, and recovers a drop within the first tenth of training; its volume residual stays about twice as large as that of the runs with the prior until the end. The CP rank has no visible effect on the histories, consistent with panel (a) of Figure 22 of the main paper.
Additional accuracy statistics
Table S4 extends Table 3 of the main paper to every run and adds the 90th percentile of the energy gap, the constraint residuals and the error of the virtual-work force. Table S5 breaks the random held-out set down by family, Table S6 gives the apparent angles on uniform walls behind panel (a) of Figure 9 of the main paper, and Table S7 the cost of the refinement. Figure S5 shows that the penalty enforces the volume and the centroid to a few parts in for every operator and both dimensions, so that the energy gaps of the main paper are not an artefact of violated constraints. Figure S6 compares the virtual-work force of each prediction with that of the reference on all random problems, and Figure S7 the cost of a refinement started from a prediction with that of a solve started from the analytic cap.
| family | FNO | FNO IoU | TFNO | TFNO IoU | WNO | WNO IoU | |
| 2D uniform | 21 | 0.988 | 0.983 | 0.985 | |||
| 2D step | 26 | 0.954 | 0.915 | 0.909 | |||
| 2D stripes | 20 | 0.970 | 0.944 | 0.949 | |||
| 2D patches | 33 | 0.942 | 0.910 | 0.910 | |||
| 3D uniform | 4 | 0.986 | 0.985 | 0.985 | |||
| 3D step | 3 | 0.984 | 0.975 | 0.981 | |||
| 3D stripes | 4 | 0.865 | 0.857 | 0.860 | |||
| 3D stripes | 1 | 0.752 | 0.741 | 0.746 | |||
| 3D patches | 4 | 0.873 | 0.871 | 0.869 | |||
| 3D checkerboard | 4 | 0.903 | 0.899 | 0.898 |
Table S5. Random held-out set broken down by pattern family: number of problems, median energy gap and median IoU of each operator.
| ref. | FNO | TFNO | WNO | FNO | TFNO | WNO | |
| 40 | 37.7 | 40.4 | 42.8 | 40.7 | |||
| 50 | 48.4 | 50.4 | 52.8 | 50.5 | |||
| 60 | 59.4 | 60.2 | 62.2 | 60.4 | |||
| 70 | 68.3 | 70.0 | 71.4 | 70.2 | |||
| 80 | 79.8 | 79.9 | 80.7 | 80.0 | |||
| 90 | 90.0 | 90.1 | 90.2 | 89.9 | |||
| 100 | 101.4 | 100.1 | 99.8 | 99.8 | |||
| 110 | 109.2 | 109.7 | 109.5 | 109.6 | |||
| 120 | 118.4 | 119.8 | 119.4 | 119.5 | |||
| 130 | 130.6 | 130.1 | 129.4 | 129.4 | |||
| 140 | 141.5 | 140.3 | 139.3 | 139.3 | |||
| 150 | 150.6 | 150.4 | 149.1 | 149.1 |
Table S6. Uniform walls in two dimensions: apparent contact angle (degrees) measured by a circle fit to the interface of the reference minimiser and of each operator, and the energy gap of each operator.
Figure S7. Refinement of the two-dimensional predictions on the random held-out set. (a) Quasi-Newton iterations of the refinement against the energy gap of the prediction. (b) Cumulative distribution of the wall-clock time of the reference solve from the analytic cap and of the refinement of each operator’s prediction.
Galleries of the TFNO and WNO predictions
Figures S8–S11 repeat Figure 11 of the main paper and Figure 17 of the main paper for the other two operators on the same held-out problems.
Figure S8. As Figure 11 of the main paper, for the TFNO.
Figure S9. As Figure 11 of the main paper, for the WNO.
Figure S10. As figure 17 of the main paper, for the TFNO.
Figure S11. As figure 17 of the main paper, for the WNO.
Stiffness diagnostic
The diagnostic of panel (a) of Figure 23 of the main paper measures how stiff the error of a prediction is with respect to the energy: the Rayleigh quotient of the error with the Hessian of the discrete energy at the reference minimum, compared with that of interface-localised noise and of the translation mode of the interface (algorithm S2). The Hessian is never formed: each quotient needs one Hessian-vector product by double automatic differentiation of the energy.
Algorithm S2 Stiffness of the operator error (panel (a) of Figure 23 of the main paper)
Require: reference minimum , prediction , wall field
function
▷ Hessian-vector product by autograd
return
end function
▷ weight localised on the interface
, white Gaussian noise
, noise averaged over cells
▷ rigid shift of the interface
return
References
- [1]Amos, B. 2023 Tutorial on amortized optimization. Found. Trends Mach. Learn. 16, 592–732.
- [2]Brakke, K.A. 1992 The Surface Evolver. Exp. Math. 1, 141–165.DOI
- [3]Brandon, S., Haimovich, N., Yeger, E. & Marmur, A. 2003 Partial wetting of chemically patterned surfaces: the effect of drop size. J. Colloid Interface Sci. 263, 237–243.pubmed.ncbi.nlm.nih.gov/12804908
- [4]Brochard, F. 1989 Motions of droplets on solid surfaces induced by chemical or thermal gradients. Langmuir 5, 432–438.DOI
- [5]Cahn, J.W. 1977 Critical point wetting. J. Chem. Phys. 66, 3667–3672.
- [7]E, W. & Yu, B. 2018 The deep Ritz method: a deep learning-based numerical algorithm for solving variational problems. Commun. Math. Stat. 6, 1–12.arxiv.org/abs/1710.00211
- [8]Feynman, R.P. 1939 Forces in molecules. Phys. Rev. 56, 340–343.DOI
- [9]Furmidge, C.G.L. 1962 Studies at phase interfaces. I. The sliding of liquid drops on solid surfaces and a theory for spray retention. J. Colloid Sci. 17, 309–324.DOI
- [10]Gibbs, J.W. 1906 The Scientific Papers of J. Willard Gibbs, vol. 1, p. 326. Longmans, Green and Co.
- [11]Goswami, S., Yin, M., Yu, Y. & Karniadakis, G.E. 2022 A physics-informed variational DeepONet for predicting crack path in quasi-brittle materials. Comput. Methods Appl. Mech. Engng 391, 114587.DOI
- [12]Jacqmin, D. 2000 Contact-line dynamics of a diffuse fluid interface. J. Fluid Mech. 402, 57–88.DOI
- [13]Jansen, H.P., Bliznyuk, O., Kooij, E.S., Poelsema, B. & Zandvliet, H.J.W. 2012 Simulating anisotropic droplet shapes on chemically striped patterned surfaces. Langmuir 28, 499–505.DOI
- [14]Kossaifi, J., Kovachki, N., Azizjadenesheli, K. & Anandkumar, A. 2023 Multi-grid tensorized Fourier neural operator for high-resolution PDEs. arXiv:2310.00120.arxiv.org/abs/2310.00120
- [15]Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya, K., Stuart, A. & Anandkumar, A. 2023 Neural operator: learning maps between function spaces with applications to PDEs. J. Mach. Learn. Res. 24 (89), 1–97.
- [16]Kusumaatmaja, H. & Yeomans, J.M. 2007 Modeling contact angle hysteresis on chemically patterned and superhydrophobic surfaces. Langmuir 23, 6019–6032.pubmed.ncbi.nlm.nih.gov/17451253
- [20]Meshram, G.S. 2025 Quantifying surface wettability in textured surfaces using two-dimensional pseudopotential multiphase lattice Boltzmann model. J. Adhes. Sci. Technol. 39, 1472–1496.DOI
- [21]Meshram, G.S. & Biswal, G. 2024 Effect of solid-fluid interaction strength on water droplet placed centrally at the curved surfaces using lattice Boltzmann method. AIP Conf. Proc. 3108, 030012.
- [22]Meshram, G.S., Chakraborty, S., Chakrabarti, P.P., Biswal, G. & Kondaraju, S. 2023 Hydrophobicity analysis of the surfaces with rectangular micropillars using pseudopotential multiphase lattice Boltzmann method. In Conference on Fluid Mechanics and Fluid Power (FMFP 2023), pp. 361–374.
- [23]Meshram, G.S., Chakraborty, S. & Chakrabarti, P.P. 2025 Demarcating wetting states classification of the textured surfaces using machine learning. Procedia Comput. Sci. 258, 3672–3681.DOI
- [24]Meshram, G.S., Chakrabarti, P.P. & Chakraborty, S. 2026a Learning droplet wetting from kinetic theory: lattice-Boltzmann-driven physics-informed neural networks for rough surfaces. Langmuir.DOI
- [26]Oliver, J.F., Huh, C. & Mason, S.G. 1977 Resistance to spreading of liquids by sharp edges. J. Colloid Interface Sci. 59, 568–581.DOI
- [27]Raissi, M., Perdikaris, P. & Karniadakis, G.E. 2019 Physics-informed neural networks: a deep learning framework for solving forward and inverse problems involving nonlinear partial differential equations. J. Comput. Phys. 378, 686–707.
- [29]Subramanian, R.S., Moumen, N. & McLaughlin, J.B. 2005 Motion of a drop on a solid surface due to a wettability gradient. Langmuir 21, 11844–11849.
- [30]Tripura, T. & Chakraborty, S. 2023 Wavelet neural operator for solving parametric partial differential equations in computational mechanics problems. Comput. Methods Appl. Mech. Engng 404, 115783.arxiv.org/abs/2205.02191
- [31]Wang, S., Wang, H. & Perdikaris, P. 2021 Learning the solution operator of parametric partial differential equations with physics-informed DeepONets. Sci. Adv. 7, eabi8605.





















