원시데이터 수집 시스템
선정목록으로

The diffuse solid method for wetting and multiphase fluid simulations in complex geometries

간접 관련 필름·전자재료 · (18) VENT(방수통기 부품) (11) 배리어 필름(15) 디스플레이 패널재료(24) 패션(코오롱FnC)

기본 정보

저자
  1. Fandi Oktasendra — Department of Physics, Durham University 1 , Durham DH1 3LE,|||Department of Physics, Universitas Negeri Padang 2 , Padang 25131,
  2. Michael Rennick — Department of Physics, Durham University 1 , Durham DH1 3LE,|||Institute for Multiscale Thermofluids, School of Engineering, University of Edinburgh 3 , Edinburgh EH9 3FD,
  3. Samuel J. Avis — Department of Physics, Durham University 1 , Durham DH1 3LE,
  4. Jack R. Panter — School of Engineering, Mathematics and Physics, University of East Anglia 4 , Norwich NR4 7TJ,
  5. Halim Kusumaatmaja — Department of Physics, Durham University 1 , Durham DH1 3LE,|||Institute for Multiscale Thermofluids, School of Engineering, University of Edinburgh 3 , Edinburgh EH9 3FD,
DOI
10.1063/5.0267171
저널
Physics of Fluids
발행년도
2025
발행기관
American Institute of Physics
피인용수
2
라이선스
cc-by
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.1063/5.0267171
토픽
Surface Modification and Superhydrophobicity
OpenAlex ID
W4410167023

평가 내용

관련도
간접 관련
사업분야
필름·전자재료 · (18) VENT(방수통기 부품)
부 분야
(11) 배리어 필름, (15) 디스플레이 패널재료, (24) 패션(코오롱FnC)
R&D 측면
분석·모델링
확신도
0.80
근거 용어
wetting, multiphase fluid simulations, complex geometries, contact angle, surface textures
판단 근거
복잡한 기하학적 구조에서의 젖음성(wetting)과 다상 유체 흐름을 시뮬레이션하는 수치 해석 방법론을 다루고 있습니다.
R&D 활용 포인트
방수통기 부품(VENT)의 다공성 막 구조 설계, 배리어 필름의 표면 기능성(발수/방수) 제어, 또는 기능성 섬유의 표면 처리 공정 최적화를 위한 수치 모델링에 활용 가능합니다.
평가 입력
본문 114,039자 중 30,032자 발췌

초록

We develop a diffuse solid method that is versatile and accurate for modeling wetting and multiphase flows in highly complex geometries. In this scheme, we harness N+1-component phase field models to investigate interface shapes and flow dynamics of N fluid components, and we optimize how to constrain the evolution of the component employed as the solid phase to conform to any pre-defined geometry. Implementations for phase field energy minimization and lattice Boltzmann method are presented. Our approach does not need special treatment for the fluid–solid wetting boundary condition, which makes it simple to implement. To demonstrate its broad applicability, we employ the diffuse solid method to explore wide-ranging examples, including droplet contact angle on a flat surface, particle adsorption on a fluid–fluid interface, critical pressure on micropillars and on Salvinia leaf structures, capillary rise against gravity, Lucas-Washburn's law for capillary filling, and droplet motion on a sinusoidally undulated surface. Our proposed approach can be beneficial to computationally study multiphase fluid interactions with textured solid surfaces that are ubiquitous in nature and engineering applications.

본문 114,039자

본문 펼치기
### The Diffuse Solid Method for Wetting and Multiphase Fluid Simulations in Complex Geometries Fandi Oktasendra, <sup>1, 2</sup> Michael Rennick, <sup>1, 3</sup> Samuel J. Avis, <sup>1</sup> Jack R. Panter, <sup>4</sup> and Halim Kusumaatmaja <sup>1, 3</sup> 1) _Department of Physics, Durham University, Durham DH1 3LE, United Kingdom_ 2) _Department of Physics, Universitas Negeri Padang, Padang 25131, Indonesia_ 3) _Institute for Multiscale Thermofluids, School of Engineering, University of Edinburgh, Edinburgh EH9 3FD, United Kingdom_ 4) _School of Engineering, Mathematics and Physics, University of East Anglia, Norwich NR4 7TJ, United Kingdom_ (*Electronic mail: [halim.kusumaatmaja@ed.ac.uk)](mailto:halim.kusumaatmaja@ed.ac.uk) (*Electronic mail: [jack.panter@uea.ac.uk)](mailto:jack.panter@uea.ac.uk) (Dated: 29 April 2025) We develop a diffuse solid method that is versatile and accurate for modeling wetting and multiphase flows in highly complex geometries. In this scheme, we harness _N_ + 1-component phase field models to investigate interface shapes and flow dynamics of _N_ fluid components, and we optimize how to constrain the evolution of the component employed as the solid phase to conform to any pre-defined geometry. Implementations for phase field energy minimization and lattice Boltzmann method are presented. Our approach does not need special treatment for the fluid-solid wetting boundary condition, which makes it simple to implement. To demonstrate its broad applicability, we employ the diffuse solid method to explore wide-ranging examples, including droplet contact angle on a flat surface, particle adsorption on a fluid-fluid interface, critical pressure on micropillars and on _Salvinia_ leaf structures, capillary rise against gravity, Lucas-Washburn’s law for capillary filling, and droplet motion on a sinusoidally undulated surface. Our proposed approach can be beneficial to computationally study multiphase fluid interactions with textured solid surfaces that are ubiquitous in nature and engineering applications. I. INTRODUCTION Inspired by the extraordinary diversity of surface structures adapted to manipulating liquids in nature <sup>1,2</sup>, there is a rapid and increasing drive to fabricate complex physical and chemical textures with functional wetting properties <sup>3</sup> . This is particularly prevalent in the field of surface science, which has seen a range of recent innovations across fog harvesting <sup>4</sup>, robust liquid-repellent surfaces <sup>5</sup>, directional wetting <sup>6</sup>, and wettability control for sensing <sup>7</sup> . This has been enabled by advances in fabrication methods of increasingly complex surface microstructures, such as additive manufacturing (3D printing) <sup>8</sup>, photolithography <sup>9</sup> and self assembly <sup>10</sup> . However, the interest in understanding wetting interactions with complex surface structures is not only limited to fundamental wetting physics, but spans a diverse range of fields, from open microfluidics in biomedicine <sup>11</sup>, to sub-milimeter manufacturing in engineering <sup>12</sup>, and carbon storage in geology <sup>13</sup> . To complement experimental and theoretical efforts, there is a need for efficient and accurate simulation methods that are capable of modeling the statics and dynamics of capillary phenomena on highly complex solid structures. Ideal simulation methods must achieve the following aims: (1) accuracy in modeling surface tensions and contact angles, (2) generality and accuracy in describing the solid geometry, and (3) computational efficiency. In this work, to achieve these aims, we present the Diffuse Solid Method which is applied both to the Lattice Boltzmann Method (for fluid dynamics), and to a phase-field energy minimization method (for static equilibria). In this, we use a _N_ + 1-phase diffuse interface method that models _N_ evolving fluid components and 1 solid component that we limit the evolution of. A principal outcome is to show how to control this partial evolution of the solid to con form to any user-defined geometry, without compromising the accuracy of the liquid contact angles. While we demonstrate the scheme for _N_ = 2, the scheme can be easily generalized to an arbitrary number of components. Importantly, the interfacial energy balance is intrinsically accounted for by the phase field free energy, and no separate scheme is required for the fluid-solid wetting boundary condition. Previously, a number of alternative simulation methods have been developed towards achieving accurate wetting simulations on curved and complex boundaries. At the highest level, these simulation strategies are split into two classes: sharp interface models, where the fluid interface is modeled as infinitely thin and explicitly tracked during simulations <sup>14,15</sup> ; and diffuse interface models, where each fluid phase is associated with a smoothly varying order parameter, and fluidfluid interfaces have a characteristic thickness <sup>16,17</sup> . Sharp interface models are often more efficient computationally, however, they are cumbersome for problems that entail topological changes in the fluid interface shapes, such as due to droplet break-up and coalescence, as well as interface pinning and depinning events <sup>17–21</sup> . Since these effects are essential to capture for the problems of interest in this work, here we shall focus on diffuse interface models. For diffuse interface models, there are already wellestablished methods for incorporating fluid-solid interactions on flat surfaces <sup>22–25</sup>, including liquid contact angle and contact line pinning and depinning due to regions of different surface chemistry. However, current extensions to complex, and often curved, solid shapes are either cumbersome or introduce unwanted artifacts. This is a principal issue when employing diffuse interface models on methods that are based on fixed, regular grids, such as the Lattice Boltzmann Method. However, it is desirable to use such methods as they are highly efficient for parallel and GPU computing, and hence are becoming increasingly popular for solving large-scale simulation challenges <sup>26–28</sup> . Within the Lattice Boltzmann Method, a common approach to multiphase flows on curved and complex solids is to treat the surface via the conceptually simple staircase approximation, <sup>29–31</sup>, or similarly, as in the case of the Homogenised Lattice Boltzmann Method, by defining voxellated regions of space within the solid body to be momentum sinks <sup>32</sup> . This, however, leads to interface pinning at the corners of the approximated shapes, and in problems where surface energies are important (such as capillary rise as we shall demonstrate), the solid-fluid interaction area is dramatically overestimated. A key strategy to enable simulations on solid surfaces which do not conform to the underlying (Eulerian) mesh, is the Immersed Boundary Method, in which the solid surface is described via a superimposed non-conformal (Lagrangian) mesh. Recent advances have overcome core challenges to this method for use in multiphase flows (namely poorly obeyed mass conservation and limited stable fluid density ratios) that now allow accurate wetting boundary conditions <sup>33,34</sup> . Nonetheless, an inherent downside of the Immersed Boundary Method is the need for additional interpolation steps between the Eulerian and Lagrangian meshes. A contrasting approach which entirely avoids the explicit description of the solid boundary is Fluid Particle Dynamics, in which the solid is modeled as a highly viscous liquid <sup>35,36</sup> . A core advantage of this method is that no special wetting boundary conditions are required: the correct contact angles emerge implicitly from the diffuse interface interactions. Although this method is successful for, e.g. colloidal systems, where the solids are always spherical, this cannot achieve solid geometries with arbitrary user-defined shapes. Sitting between the solid and liquid methods is the Diffuse Domain approach, currently employed in Cahn-Hilliard and Navier-Stokes solvers <sup>37</sup> . In this, the solid domain is identified with an order parameter, exactly as for the fluid phases. In contrast to Fluid Particle Dynamics however, the solid order parameter is not updated in time, and is instead fixed upon initialization. In order to accurately capture the contact angles on the solid phase, it is essential to have the correct solid-fluid diffuse interfacial profiles. Recently, this has been achieved through using a pre-simulation stage to relax the solid order parameter via a diffusion process <sup>38,39</sup> . However, the Diffuse Domain approach suffers from an inherent limitation: relaxing the solid diffuse interface also allows the overall shape of the solid object to evolve away from the desired geometry. A principal achievement in our work is to develop a method of constraining the solid morphology, while allowing the correct diffuse interface to form. This method is essential in order to accurately model wetting on complex geometries, and to allow implementation in free energy minimization and the Lattice Boltzmann methods. Following the description of our Diffuse Solid Method in Sec. II, we rigorously demonstrate it’s broad applicability and accuracy across a range of benchmarks. In Sec. III, static phenomena are investigated, featuring droplets on curved surfaces as a test of the contact angle accuracy, equilibrium capillary rise to test the energy contribution accuracy, and critical intrusion pressures on micropillared surfaces as a test of the pressure implementation. A case study is then shown, to show how our method can be applied to understand the wetting properties of nature-inspired surface structures. In Sec. IV, we advance to study dynamic phenomena via the Lattice Boltzmann Method: capillary filling in micro-channels, and droplet motion on an undulating surface. II. DIFFUSE SOLID METHOD A. Phase Field Energy Minimization The diffuse solid method uses a phase field model with _N_ + 1 immiscible components in which the local composition of each component is represented by an order parameter _Cn_, where _n_ = _{_ 1 _,_ _···_ _,_ _N_ + 1 _}_ . Here we focus on _N_ = 2 for concreteness. In this context, we designate one component, _C_ 1, as a solid phase and the rest, _C_ 2 and _C_ 3, as fluids which shall be referred to as liquid and gas phases, respectively. The ternary model ( _N_ + 1 = 3) used in this work is based on the work of Semprebon, _et al._ <sup>40</sup>, in which the thermodynamics of the system are described by a free-energy functional of the fluids that captures the immiscibility of the fluid components and the surface tensions between different fluids. The phase interface is modelled using a diffuse interface with a finite thickness, which yields a smooth transition region between two different phases. For the phase field energy minimization approach, the total free energy of the system can be written as Ψ( _Cn_ ) = _V_ <sup>(Ψb +</sup> <sup>Ψi +</sup> <sup>Ψcs +</sup> <sup>Ψcf)d</sup> <sup>_V,_</sup> (1) where all of the energy densities are integrated over the system’s volume, _V_ . The bulk energy density of the phases, Ψb, is modeled using a double well potential Ψb = 3 ### ∑ _n_ =1 _<u>κn</u>_ 2 <sup>_C_</sup> _n_ <sup>2(1</sup> <sup>_−Cn_</sup> <sup>)2</sup> <sup>_._</sup> (2) Here, the _κn_ ’s are tunable parameters related to the interfacial tension between different fluids. The form of potentials chosen in this model has two minima at _Cn_ = 0 and 1. We then relate _Cn_ = 0 to indicate the absence of component _n_ and _Cn_ = 1 to indicate pure component _n_ . We also normalise the total composition to unity so that _C_ 1 + _C_ 2 + _C_ 3 = 1 to obtain _C_ 3 = 1 _−C_ 1 _−C_ 2, which reduces the number of the order parameter in the system that needs to be optimised. It is worth noting that this constraint allows _C_ 1 and _C_ 2, in principle, to have any value. Ψi is referred to as the gradient energy density, which accounts for the energy penalty for having interfaces. The gradient term takes the form Ψi = ### ∑3 κn ′ (3) _n_ =1 2 <sup>_|_</sup> <sup>_∇_</sup> <sup>_Cn|_</sup> <sup>2</sup> <sup>_,_</sup> where _κn_ <sup>_′_</sup> <sup>’s</sup> <sup>are</sup> <sup>also</sup> <sup>tunable</sup> <sup>parameters</sup> <sup>whose</sup> <sup>values</sup> <sup>deter-</sup> mine the contribution of the gradient terms to the total free energy. In combination, Ψb and Ψi energetically penalize the formation of interfaces between each pair of phases, such that the surface tension between phases _n_ and _m_, _γnm_, is given by _γnm_ = <sup>_<u>α</u>_</sup> (4) 6 <sup>(</sup> <sup>_κn_</sup> <sup>+</sup> <sup>_κm_</sup> <sup>)</sup> <sup>_._</sup> _α_ is the characteristic interface width, For the diffuse solid method, a key addition is the confining potential Ψcf. This potential acts only on the ‘solid’ phase, which throughout we choose to be phase 1. Ψcf must achieve two purposes (1) to confine phase 1 to a defined region of arbitrary geometry (which we call the ‘solid region’, _S_ ), (2) to allow the interface of phase 1 to relax into the equilibrium diffuse interfacial profile. This latter point is essential to accurately define the surface tensions with the solid phase, as defined in Eq. (4). These can both be achieved by defining (11) Ψcf( r ) = _α_ = ~~�~~ ( _κn_ <sup>_′_</sup> + _κm_ <sup>_′_</sup> ) _/_ ( _κn_ + _κm_ ) _,_ (5)   _ψ_ cf if _C_ 1 _>_ 0 _._ 5 and r _∈_ _S,_ _ψ_ cf if _C_ 1 _<_ 0 _._ 5 and r _∈/_ _S,_ 0 otherwise _,_ that describes the smooth variation of _Cn_ across an interface. For a planar interface (e.g. spanning the _z_ _−_ _y_ plane) between phases _n_ and _m_, this profile takes the form _Cn_ ( _x_ ) = 2 <sup><u>1</u></sup> <sup>+</sup> <sup><u>1</u></sup> 2 <sup>tanh</sup> 2 <sup>_<u>x</u>_</sup> _α_ <sup>_._</sup> (6)  Here, the value of _Cn_ varies between 0 and 1 across the interface, and we take the value of _Cn_ = 0 _._ 5 as the interfacial boundary between the two phases. We can further use the definition of _α_ to simplify the simulation variables by relating _κ{_ <sup>_′_</sup> _n,m}_ <sup>and</sup> <sup>_κ{n,m}_</sup> <sup>via (</sup> <sup>_κ_</sup> _n_ <sup>_′_</sup> <sup>+</sup> <sup>_κ_</sup> _m_ <sup>_′_</sup> <sup>) =</sup> <sup>_α_</sup> <sup>2(</sup> <sup>_κn_</sup> <sup>+</sup> <sup>_κm_</sup> <sup>).</sup> <sup>In this work,</sup> where r defines the position of each point in the system, and _ψ_ cf = _β_ ( _C_ 1 _−_ 0 _._ 5) <sup>2</sup> . _β_ is a positive variable controlling the strength of the potential. This form of Ψcf energetically penalizes the solid phase from moving out of the solid region, and likewise energetically penalizes fluid phases from enter<u>ing</u> the solid region, so centering the solid-fluid interface at <u>the solid region boundary.</u> a b _{_ <sup>_′_</sup> _n,m}_ <sup>and</sup> <sup>_κ{n,m}_</sup> <sup>via (</sup> <sup>_κ_</sup> _n_ <sup>_′_</sup> _n_ <sup>_′_</sup> <sup>+</sup> <sup>_κ_</sup> _m_ <sup>_′_</sup> _κ{_ <sup>_′_</sup> _n,m}_ <sup>and</sup> <sup>_κ{n,m}_</sup> <sup>via (</sup> <sup>_κ_</sup> _n_ <sup>_′_</sup> <sup>+</sup> <sup>_κ_</sup> _m_ <sup>_′_</sup> <sup>) =</sup> <sup>_α_</sup> <sup>2(</sup> <sup>_κn_</sup> <sup>+</sup> <sup>_κm_</sup> <sup>).</sup> <sup>In this work,</sup> we take _κn_ <sup>_′_</sup> <sup>=</sup> <sup>_α_</sup> <sup>2</sup> <sup>_κn_</sup> <sup>and use</sup> <sup>_α_</sup> <sup>= 1 (this and all other parame-</sup> we take _κn_ <sup>_′_</sup> <sup>=</sup> <sup>_α_</sup> <sup>2</sup> <sup>_κn_</sup> <sup>and use</sup> <sup>_α_</sup> <sup>= 1 (this and all other parame-</sup> ters are in lattice units, L.U., unless otherwise stated). While we will call _α_ the interface width, it is noted that for _α_ = 1, the transition between _Cn_ = 0 _._ 1 and _Cn_ = 0 _._ 9 occurs over a range of 4 _._ 4 _α_ . In order to relate the phase field model parameters _κ_ to physical interfacial characteristics (namely the surface tensions _γ_ ), Eq. (4) can be inverted to yield, Gas ( _C3_ ) Solid ( _C1_ ) c d Liquid ( _C2_ ) C1 0 1 _κ_ 1 = <sup><u>3</u></sup> _α_ <sup>(</sup> <sup>_γ_</sup> <sup>12 +</sup> <sup>_γ_</sup> <sup>13</sup> <sup>_−_</sup> <sup>_γ_</sup> <sup>23)</sup> <sup>_,_</sup> _κ_ 2 = <sup><u>3</u></sup> _α_ <sup>(</sup> <sup>_γ_</sup> <sup>12</sup> <sup>_−_</sup> <sup>_γ_</sup> <sup>13 +</sup> <sup>_γ_</sup> <sup>23)</sup> <sup>_,_</sup> (7) FIG. 1. Schematic of implementing the diffuse solid method for a droplet on a flat surface in the energy minimization. (a) Initialization of the flat solid geometry ( _C_ 1) and the gas phase ( _C_ 3). (b) The diffuse solid interface with a thickness of _α_ is formed after a number of iterations as highlighted by the inset which also shows the tanh profile of the solid component ( _C_ 1) across the interface. (c) Initialisation of the liquid phase ( _C_ 2) using a staircase approximation. (d) The final result after the minimization process is completed. In the simulation, we discretize Ψ in Eq. (1) into _Lx ×_ _Ly ×_ _Lz_ cubic lattice points (called nodes), in which each node is associated with a value of _{Cn}ijk_, where the indices _i, j,_ _k_ indicate the spatial dimension in the _x-_, _y-_, and _z-_ directions. The grid spacing, _G_, is set to be equal to the interface width _α_, which is taken to be 1. Depending on the case being investigated, we employ two types of boundary conditions: the periodic and symmetry boundary conditions. The energy minimization is then carried out using the computationally efficient L-BFGS algorithm <sup>45,46</sup>, optimized for both memory usage and processing speed. During the minimization routine, the value of _{Cn}ijk_ of each node is updated in order to achieve the minimum total energy configuration. The implementation of the diffuse solid method during the energy minimization process in the simulation is carried out in two stages, as illustrated in Fig. 1. In the first stage, energy minimization is performed to create a solid geometry with a smooth and diffuse solid interface <sup>47</sup> . The solid is initialized as _κ_ 3 = <sup><u>3</u></sup> _α_ <sup>(</sup> <sup>_−γ_</sup> <sup>12 +</sup> <sup>_γ_</sup> <sup>13 +</sup> <sup>_γ_</sup> <sup>23)</sup> <sup>_._</sup> Ψcs is the constraining energy density that allows the system to preserve either the pressure difference between liquid and gas phases, ∆ _P_, or the volume of the liquid phase, _V_ l, during the minimisation. Following Oktasendra, _et_ _al._ <sup>41</sup>, when the former is desired, the constraining potential takes the form, Ψcs = _−_ ∆ _PV_ l _,_ (8) whereas for the latter, Ψcs = <sup><u>1</u></sup> (9) 2 <sup>_k_</sup> <sup>cs(</sup> <sup>_V_</sup> <sup>l</sup> <sup>_−V_</sup> <sup>0)2</sup> <sup>_._</sup> Here, _k_ cs _>_ 0 is a constant, and _V_ 0 is the target volume. The volume of the liquid phase, _V_ l can be calculated as _V_ l = _V_ <sup>_C_</sup> <sup>2d</sup> <sup>_V._</sup> (10) Thus far, the described model is similar to that we have previously published for phase field energy minimisation <sup>41–44</sup> . component 1 ( _C_ 1) within the desired geometry. The remaining system is filled with pure gas ( _C_ 3), and the liquid phase ( _C_ 2) is fixed at 0 (Fig. 1(a)). The total free energy is subsequently minimized using the L-BFGS algorithm. During this stage, the energy minimization process is truncated at a specific number of iterations (typically, _n_ iter = 10) to allow the solid-gas diffuse interface to form without strongly perturbing the intended solid geometry’s shape (Fig. 1(b)). Once this stage is complete, the liquid phase ( _C_ 2) is initialized in the system according to a predefined configuration (Fig. 1(c)). The solid phase ( _C_ 1) is now fixed, while the liquid ( _C_ 2) and gas ( _C_ 3) phases are allowed to vary. The total free energy is now minimized under these constraints (Fig. 1(d)). Convergence of the minimization process is determined based on an _rms_ gradient condition: convergence is achieved when _|_ _∇_ Ψ _|<_ 10 <sup>_−_</sup> <sup>5</sup> . The determination of _n_ iter, _α_, _β_, and the domain dimensions are chosen to balance the accuracy of the solid geometry, accuracy of the wetting properties described in Section III, and computational time. A systematic investigation of the impact of each of these parameters is performed in Supplementary Material, Section A. B. Lattice Boltzmann Method Next, we will describe how the diffuse solid method can be integrated with lattice Boltzmann method to model wetting dynamics involving solid boundaries of complex shapes. Generally, the continuum equations of motion solved by the lattice Boltzmann method comprise of three equations. First, the continuity equation _∂t_ _ρ_ + _∇_ _·_ ( _ρ_ v ) = 0 _,_ (12) which describes the conservation of mass in a fluid with density _ρ_ and velocity v . Second, the incompressible Navier-Stokes equation _∂t_ ( _ρ_ v )+ _∇_ _·_ ( _ρ_ vv ) = _−_ _∇_ _·_ _P_ + F + _η_ ∆ v _,_ (13) which describes the conservation of momentum. Here, _P_ denotes the pressure, _η_ is the dynamic viscosity and F = F _s_ + F _g_ is the body force applied to the fluid. F _s_ is the surface tension force between the two fluid components in the system and F _g_ is the external body force (e.g., gravitational force). Third, we need another equation to enforce the phase separation of the two fluid components and evolve their interface shapes. The Cahn-Hilliard equation can be written in terms of the relevant order parameter _Ci_ : _∂tCi_ + _∇_ _·_ ( _Ci_ v ) = _∇_ _·_ ( _M_ _∇_ _µi_ ) _._ (14) We will assume the mobility _M_ is a constant for simplicity, and the chemical potential _µi_ = _δ_ <sup>_<u>δ</u>_</sup> _C_ <sup><u>Ψ</u></sup> _i_ <sup>can</sup> <sup>be</sup> <sup>derived</sup> <sup>from</sup> <sup>the</sup> free energy of the system. As with the free energy minimization scheme, there are two stages of computations when employing the diffuse interface method. The first stage is to create the smooth and diffuse solid interface. This can be done by employing an energy minimization scheme as discussed in Sec. II A. Alternatively, we can also use lattice Boltzmann approach to relax the _C_ 1 _−_ _C_ 3 (solid-gas) interface to its tanh profile. To do this, we can write the free energy from Eq. (1) using the constraint _C_ 1 + _C_ 3 = 1, (18) If the solid has sharp features or corners, to avoid numerical instabilities, we can carry out the diffuse solid initialization in two steps. First, we perform a short lattice Boltzmann run, typically with larger _β_ and Ω in Eq. (55), and then redefine the solid locations as the positions where _C_ 1 _>_ 0 _._ 5. Typically, this step is only necessary where the solid geometry has corners with a radius of curvature that is comparable to 4 _._ 4 _α_ . Following this, a further initialization run is performed, where the diffuse solid is evolved using the updated solid locations. After this point, the order parameter _C_ 1 is not evolved anymore. The second stage of the simulations is to evolve the fluid order parameters ( _C_ 2 and _C_ 3) for a fixed diffused solid ( _C_ 1 order parameter distribution) using the continuity, Navier-Stokes and Cahn-Hilliard equations. Starting from Eq. (1), we can Ψ = - <sup>�</sup> <u>(</u> _<u>κ</u>_ <u>1 +</u> _<u>κ</u>_ <u>3)</u> _C_ 1 <sup>2(1</sup> <sup>_−_</sup> <sup>_C_</sup> <sup>1)2 + Ψcf(</sup> <sup>r</sup> <sup>)</sup> 2 + <sup>_<u>α</u>_</sup> <sup>2(</sup> <sup>_<u>κ</u>_</sup> <sup><u>1 +</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3)</u></sup> 1 <sup>2</sup> <sup>_H_</sup> <sup>(</sup> <sup>_C_</sup> <sup>1)</sup> <sup><u>1 +</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3)</u></sup> ( _∇_ _C_ 1) <sup>2</sup> + Ω _C_ 1 <sup>2</sup> 2 (15) + Ω(1 _−_ _C_ 1) <sup>2</sup> _H_ (1 _−_ _C_ 1) d _V,_ where the constraining term, Ψcs, is ignored because the lattice Boltzmann method conserves total volumes. The additional final terms using the Heaviside step function, _H_, and parametrised by Ω <sup>48</sup> are used to prevent the order parameter deviating from the range _C_ 1 _∈_ (0 _,_ 1), which can improve simulation stability during the solid initialisation when the value of _β_ in Ψcf( r ) is large. For this initialization stage, for simplicity, we set the density, viscosity and mobility to be uniform everywhere with _ρ_ = 1, _η_ = <sup>_<u>ρ</u>_</sup> 3 <sup>(</sup> <sup>_τ −_</sup> <sup>0</sup> <sup>_._</sup> <sup>5) =</sup> 6 <sup><u>1</u></sup> <sup>obtained by set-</sup> ting _τ_ = 1, and _M_ = <sup><u>(</u></sup> <sup>_<u>τg−</u>_</sup> 3 <sup><u>0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5)</u></sup> <sup>_<u>ρ</u>_</sup> 3 <sup>(</sup> <sup>_τ −_</sup> <sup>0</sup> <sup>_._</sup> <sup>5) =</sup> 6 <sup><u>1</u></sup> <sup>obtained by set-</sup> 3 <sup><u>0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5)</u></sup> = 6 <sup><u>1</u></sup> ting _τ_ = 1, and _M_ = <sup><u>(</u></sup> <sup>_<u>τg−</u>_</sup> 3 <sup><u>0</u></sup> <sup>_<u>.</u>_</sup> <sup><u>5)</u></sup> = 6 <sup><u>1</u></sup> <sup>obtained by setting</sup> <sup>_τg_</sup> <sup>= 1.</sup> As is common in lattice Boltzmann method <sup>49</sup>, _τ_ and _τ_ g are relaxation parameters that are related to the fluid viscosity and mobility parameter. Given the free energy model in Eq. (55), the surface tension force and chemical potential are given by Fs = _−C_ 1 _∇_ _µ,_ (16) _µ_ = <sup>_<u>δ</u>_</sup> <sup><u>Ψ</u></sup> _δC_ 1 = ( _κ_ 1 + _κ_ 3) _C_ 1(1 _−_ 3 _C_ 1 + 2 _C_ 1 <sup>2)</sup> + <sup>_<u>δ</u>_</sup> <sup><u>Ψcf(</u></sup> <sup><u>r</u></sup> <sup><u>)</u></sup> _δC_ 1 _−_ _α_ <sup>2</sup> ( _κ_ 1 + _κ_ 3)∇ <sup>2</sup> _C_ 1 (17) + 2Ω _C_ 1 _H_ ( _C_ 1) _−_ 2Ω(1 _−_ _C_ 1) _H_ (1 _−_ _C_ 1) _,_ _<u>δ</u>_ <u>Ψcf(</u> <u>r</u> <u>)</u> _δC_ 1  =   2 _β_ ( _C_ 1 _−_ 0 _._ 5) if _C_ 1 _>_ 0 _._ 5 and r _∈_ _S,_ 2 _β_ ( _C_ 1 _−_ 0 _._ 5) if _C_ 1 _<_ 0 _._ 5 and r _∈/_ _S,_ 0 otherwise _._ 3 <sup><u>1</u></sup> <sup>is the sound speed and</sup> leave out the (now constant) terms in _C_ 1 and apply the constraint that _C_ 3 = 1 _−C_ 1 _−C_ 2 to get, where _c_ <sup>2</sup> _s_ <sup>2</sup> _s_ <sup>=</sup> 3 <sup><u>1</u></sup> <sup>_<u>·</u>_</sup> <sup><u>c</u></sup> <sup>_<u>i</u>_</sup> <sup><u>)2</u></sup> + <sup><u>u</u></sup> <sup>_<u>·</u>_</sup> <sup><u>u</u></sup> 2 _c_ <sup>4</sup> _s_ 2 _c_ <sup>2</sup> _s_ 2 _c_ <sup>2</sup> _s_ <u>u</u> _<u>·</u>_ <u>c</u> _<u>i</u>_ _c_ <sup>2</sup> _s_ + <sup><u>(</u></sup> <sup><u>u</u></sup> <sup>_<u>·</u>_</sup> <sup><u>c</u></sup> <sup>_<u>i</u>_</sup> <sup><u>)2</u></sup> - - _<u>κ</u>_ 22 <sup>_C_</sup> 2 <sup>2(1</sup> <sup>_−C_</sup> <sup>2)2 +</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>(1</sup> <sup>_−C_</sup> <sup>1</sup> <sup>_−C_</sup> <sup>2)2(</sup> <sup>_C_</sup> <sup>1 +</sup> <sup>_C_</sup> <sup>2)2</sup> _si_ ( u ) = (27) Ψ = 2 <sup>_C_</sup> 2 <sup>2(1</sup> <sup>_−C_</sup> <sup>2)2 +</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>(1</sup> <sup>_−C_</sup> <sup>1</sup> <sup>_−C_</sup> <sup>2)2(</sup> <sup>_C_</sup> <sup>1 +</sup> <sup>_C_</sup> <sup>2)2</sup> (19) accounts for the advective terms in the Navier-Stokes equation. The form of the force _Fi_ is given by <sup>48,50,51</sup> + _α_ <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>2</u></sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>2</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>2)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>1 +</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>2)2�</sup> d _V._ �( _c_ _i −_ _u_ ) _·_ _∇_ _ρsi_ ( u )+ <sup>_<u>c</u>_</sup> <sup>_<u>i ·</u>_</sup> <sup>_<u>F</u>_</sup> _c_ <sup>2</sup> _s_ _ωi_ _._ (28) The benefit of this approach is that the surface tension between fluids _C_ 2 and _C_ 3 and the contact angle of the _C_ 2 component with the diffuse solid are given from the following relations (see Supplementary Material, Section B) _Fi_ = �1 _−_ <sup><u>1</u></sup> 2 _τ_ _f_ <sup><u>+</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3)</u></sup> _,_ cos _θ_ = <sup>_<u>κ</u>_</sup> <sup><u>3</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>κ</u>_</sup> <sup><u>2</u></sup> 6 _κ_ 2 + _κ_ 3 _γ_ 23 = <sup>_<u>α</u>_</sup> <sup><u>(</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>2 +</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3)</u></sup> _,_ _κ_ 2 + _κ_ 3 . Although in principle incompressibility is not vital for this method, it has been shown to reduce spurious velocities around the diffuse interface <sup>50</sup> and this form of _f_ <sup>_eq_</sup> can aid with stability when a density ratio between fluid components included. This ensures that our model can be compatible with problems where inertia is important. Directional gradients _∇_ are given by a second order isotropic central difference scheme. Moments of the distribution function provide the hydrodynamic pressure and velocity _._ (20) From the definition of the free energy in Eq. (19), we are able to derive the surface tension force for the Navier-Stokes equation and chemical potential for the Cahn-Hilliard equation, given by Fs = _−C_ 2 _∇_ _µ,_ (21) with 8 ### ∑ _i_ =0 8 ### ∑ _i_ =0 _fi_ + <sup>_<u>δt</u>_</sup> (29) 2 <sup>u</sup> <sup>_·_</sup> <sup>_∇_</sup> <sup>_ρ,_</sup> _fi_ + <sup>_<u>δt</u>_</sup> 2 c _i fi_ + <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> (30) 2 <sup>_µ_</sup> <sup>_∇_</sup> <sup>_C._</sup> c _i fi_ + <sup><u>∆</u></sup> <sup>_<u>t</u>_</sup> 2 _<u>δ</u>_ <u>Ψ</u> _µ_ = _δC_ 2 (22) _P_ = _ρ_ u = = _κ_ 2 _C_ 2(1 _−_ 3 _C_ 2 + 2 _C_ 2 <sup>2)</sup> + _κ_ 3(1 + _C_ 2)( _C_ 1 <sup>2</sup> <sup>+</sup> <sup>2(</sup> <sup>_−_</sup> <sup>1</sup> <sup>+</sup> <sup>_C_</sup> <sup>2)</sup> <sup>_C_</sup> <sup>2</sup> <sup>+</sup> <sup>_C_</sup> <sup>1(</sup> <sup>_−_</sup> <sup>1</sup> <sup>+</sup> <sup>3</sup> <sup>_C_</sup> <sup>2))</sup> _−α_ <sup>2</sup> _κ_ 2∇ <sup>2</sup> _C_ 2 _−_ _α_ <sup>2</sup> _κ_ 3∇ <sup>2</sup> _C_ 1 _._ Now, we will give specific details for the lattice Boltzmann <sup>49</sup> implementation in this study, which is used to discretise equations (12), (13) and (14). The evolution of the macroscopic variables is expressed using distribution functions _fi_ which are stored over a discrete regular grid. Distributions can travel to adjacent grid points in a discrete number of velocity directions c _i_ with weightings _ωi_ in each direction. In this study, we use the D2Q9 stencil with A consequence of choosing _fi_ <sup>_eq_</sup> from Eq. (26) is that the fluid density no longer arises from the distribution functions _fi_ . Instead, it is a function of the fluid concentration, which evolves through the Cahn-Hilliard equation (14). The lattice Boltzmann equation for the Cahn-Hilliard equation is given by _gi_ ( x + c _iδt_ _,t_ + _δt_ ) _−gi_ ( x _,t_ ) = _−_ <sup><u>1</u></sup> _τg_ - _gi_ ( x _,t_ ) _−_ _g_ <sup>_eq_</sup> _i_ - _,_ (31) <sup>_eq_</sup> _i_ <sup>(</sup> <sup>x</sup> <sup>_,t_</sup> <sup>)</sup> with the equilibrium distribution _g_ <sup>_eq_</sup> _i_ <sup>given by52</sup> _,_ (23) (1 _−_ _ω_ 0) _µ_ + _C_ (1 + _ω_ 0 _si_ ( u )) _,_ if _k_ = 0 _,_ (32) _ωiµ_ + _ωiCsi_ ( u ) _,_ otherwise. c = - 0 1 _−_ 1 0 0 1 _−_ 1 1 _−_ 1 0 0 0 1 _−_ 1 1 _−_ 1 _−_ 1 1 _g_ <sup>_eq_</sup> _i_ <sup>=</sup> and The zeroth moment of the distribution function gives the fluid concentration _ω_ = - <u>4</u> <u>1</u> <u>1</u> <u>1</u> <u>1</u> <u>1</u> <u>1</u> <u>1</u> <u>1</u> - _._ (24) 9 9 9 9 9 36 36 36 36 8 ### ∑ _i_ =0 _gi._ (33) For simplicity, we choose the BGK collision operator, although extension to other collision models is possible. This choice leads to the following lattice Boltzmann equation _C_ = _fi_ ( x + c _iδt_ _,t_ + _δt_ ) _−_ _fi_ ( x _,t_ ) = _−_ <sup><u>1</u></sup> _τ_ - _fi_ ( x _,t_ ) _−_ _fi_ <sup>_eq_</sup> _i_ <sup>_eq_</sup> <sup>(</sup> <sup>x</sup> <sup>_,t_</sup> <sup>)</sup> + _δt_ _Fi_ ( x _,t_ ) _._ (25) It is customary in lattice Boltzmann to take _δt_ = 1. Given that we solve the incompressible Navier-Stokes equation (13), _fi_ <sup>_eq_</sup> takes the form <sup>48,50</sup> The mobility appearing in the Cahn-Hilliard equation is given by _M_ = _c_ <sup>2</sup> _s_ <sup>(</sup> <sup>_τg_</sup> <sup>_−_</sup> <sup>0</sup> <sup>_._</sup> <sup>5)</sup> <sup>_δt_</sup> <sup>_._</sup> (34) In our simulations, we relate the fluid density and viscosity as functions of the concentration as given by _<u>C</u>_ <u>2</u> _ρ_ = _ρ_ 3 +( _ρ_ 2 _−_ _ρ_ 3) _C_ 2 + _C_ 3 _,_ (35) + _ρsi_ ( u ) _,_ (26) _τ_ = _τ_ 3 +( _τ_ 2 _−_ _τ_ 3) _H_ ( _C_ 2 _−C_ 3) _,_ (36) _η_ = <sup>_<u>ρ</u>_</sup> (37) 3 <sup>(</sup> <sup>_τ −_</sup> <sup>0</sup> <sup>_._</sup> <sup>5)</sup> <sup>_._</sup> _fi_ <sup>_eq_</sup> = _ωi_ - _<u>P</u>_ _c_ <sup>2</sup> _s_ Moreover, in our lattice Boltzmann scheme, to implement noslip boundary condition at the solid boundary, we apply an interpolated bounce back boundary condition <sup>53</sup> . The interface distance for the interpolation is approximated by assuming a the fluid concentration follows a tanh profile normal to the interface _Cn_ = <sup><u>1</u></sup> 2 <sup>+</sup> <sup><u>1</u></sup> 2 <sup>tanh</sup> 2 <sup>_<u>x</u>_</sup> _α_ <sup>_._</sup> (38) The distance to the interface along an arbitrary direction d <sup>ˆ</sup> is then given by (39) ���� _,_ or the solid interface line, for the spherical particle case, to a circle, both for the 2D and 3D cases. Note that, as shown in Fig. 2(a) and (c), there is small, localized distortion at the three phase contact line. However, this deformation has negligible effect as the droplet or the particle size is always much larger, hence is ignored in the contact angle measurement. The comparison between the input ( _θ_ analytical from Eq. (20)) and measured ( _θ_ measured) contact angles are shown in Fig. 2(e). From this figure, it can be seen that the simulation results are in good agreement with the analytical prediction for a wide range of contact angles. We note that for low contact angles ( _θ_ _≤_ 10 <sup>_◦_</sup> ) in the spherical case, the three-phase contact line meets near the north pole of the sphere, and due to the diffuse interface, the accuracy of the contact angle measurement reduces, yielding a relatively large error. Otherwise, we find that the errors of the presented data are typically less than 2 <sup>_◦_</sup> . Similar accuracy for the contact angle is also obtained for the lattice Boltzmann method, as illustrated in the Supplementary Material, section D. At this stage it is instructive to compare the accuracy of the contact angles when using the Diffuse Solid Method, with the widely-used staircase approximation. To achieve this, we perform a contact angle hysteresis test, whereby the volume of a sessile droplet is incrementally increased and then reduced, with the contact angle measured at each step. This procedure is performed on a planar surface at varying inclination angles relative to the underlying mesh, from 0 <sup>_◦_</sup> to 45 <sup>_◦_</sup> (all other angles being equivalent to this range). Furthermore, this test is carried out at four representative analytical contact angles, _θ_ analytical = 30 <sup>_◦_</sup>, 60 <sup>_◦_</sup>, 90 <sup>_◦_</sup>, and 120 <sup>_◦_</sup> . In Fig. 2(f) and (g), an example is shown of a 2D drop with _θ_ analytical = 30 <sup>_◦_</sup>, on an surface of inclination angle 40 <sup>_◦_</sup>, for the staircase approximation and diffuse solid method respectively. Magnifications of the surfaces show the roughness introduced by the staircase approximation, compared to the smooth surface when using Diffuse Solid Method. In Fig. 2(h), the results of the contact angle hysteresis test are shown. For the staircase approximation, the mean measured contact angle _θ_ measured, indicated by the black dashed line, deviates substantially from _θ_ analytical by up to 25 <sup>_◦_</sup> . The grey area indicates the range of _θ_ measured observed, which has a maximum value of 20 <sup>_◦_</sup> . Both of these effects are caused by the underlying surface roughness, by increasing the contact area of the drop compared to a flat plane, and introducing artificial pinning. In comparison, for the diffuse solid method, the mean _θ_ measured, indicated by the solid blue line, deviates by a maximum of 0 _._ 4 <sup>_◦_</sup>, with a maximum range (light blue area) of 2 <sup>_◦_</sup> . Thus, the diffuse interface method is effective at creating smooth, off-lattice surface geometries. B. Capillary Rise We next consider the fundamental wetting phenomenon of capillary rise of a liquid in a smooth cylindrical tube <sup>54,55</sup> . The equilibrium rise height of liquid within the tube can be understood from an energetic perspective. On changing the height of liquid in the tube, the total energy change of the system, _D_ = ���� ˆn _<u>x·</u>_ d <sup>ˆ</sup> where ˆn = _∇_ _Cn/|_ _∇_ _Cn|_ is the normal direction to the interface. Pseudocode to describe the full simulation procedure is provided in the Supplementary Material, Section C. III. PHASE FIELD ENERGY MINIMIZATION A. Liquid Contact Angle We first benchmark the Diffuse Solid Method by measuring the contact angle of liquid wetting on both flat and curved solid surfaces within 2-dimensional (2D) and 3-dimensional (3D) frameworks. For wetting on flat surfaces, we simulate a liquid droplet deposited on a chemically homogeneous solid surface. The simulation domain for the 2D and 3D cases are 300 _×_ 100 and 300 _×_ 300 _×_ 80, respectively. A sharp-interface solid surface of thickness 10 is initialised at the base and allowed to evolve into a diffuse interface during the minimisation process. A sessile liquid drop of radius 30 is then placed on this diffuse-interface solid, and the system is further minimized until equilibrium is achieved, yielding the final configuration shown in Fig. 2(a,b). Periodic boundary conditions are applied along the horizontal directions, while symmetry boundary conditions are enforced in the vertical direction (Fig. 2(a,b)). For wetting on curved solid surfaces, we position a spherical solid particle of radius 30 at the liquid-gas interface within simulation domains of 100 _×_ 100 (2D) and 60 _×_ 60 _×_ 100 (3D). The solid particle is initialised using a staircase approximation and undergoes relaxation steps to form a smooth surface. The liquid is then introduced into the system. In the 2D case, periodic boundary conditions are applied along the horizontal directions, while symmetry boundary conditions are enforced in the vertical direction to ensure a flat liquid-gas interface, as shown in Fig. 2(c). For the 3D case, computational efficiency is optimized by simulating only a quarter of the sphere, with symmetry boundary conditions imposed in all directions (Fig. 2(d)). The parameters _γ_ 23 = �8 _/_ 9, _γ_ 12 = 1, _β_ = 10 and _n_ iter = 10 are used for these benchmark simulations. The contact angles are varied between 10 <sup>_◦_</sup> and 150 <sup>_◦_</sup> to show a broad applicability of our method. The measurement of the contact angle is done by fitting the liquid-gas interface line, for the droplet case, Symmetry a b Symmetry c Symmetry d f Staircase g DSM 30 20 10 0 -10 -20 20 10 0 -10 -20 Symmetry Symmetry Symmetry Symmetry h _θ_ analytical = 30 <sup>o</sup> _θ_ analytical = 60 <sup>o</sup> _θ_ analytical = 90 <sup>o</sup> Symmetry Symmetry _θ_ analytical = 120 <sup>o</sup> Staircase DSM 0 10 20 30 40 Inclination / <sup>o</sup> e Symmetry 5 0 -5 0 30 60 90 120 150 180 _θ_ analytical / <sup>o</sup> -300 10 20 30 40 Inclination / <sup>o</sup> FIG. 2. Equilibrium shapes of liquids wetting (a,b) flat and (c,d) curved solid surfaces in 2D and 3D cases, respectively. Images also show boundary conditions used in simulations for each case. (e) Comparison of the input ( _θ_ analytical) and measured ( _θ_ measured) contact angles for wetting cases on flat and curved surfaces in 2D and 3D. (f,g) Pinning investigation for a drop on an inclined plane using a binary phase field model with a staircase approximation to the surface, and using the Diffuse Solid Method (DSM) respectively. Images show a 40 <sup>_◦_</sup> surface inclination angle with a drop with _θ_ analytical = 30 <sup>_◦_</sup> . (h) Comparison between the staircase approximation and DSM mean contact angle and range of contact angles exhibited as the volume of a drop on an inclined plane is gradually increased and reduced. Mean angles are indicated by a dashed black line (staircase) or solid black line (Diffuse Solid Method). The range of contact angles is indicated by the grey-shaded (staircase) or blue-shaded (Diffuse Solid Method) regions. ∆ _E_, can be described as a sum of interfacial (∆ _E_ surface) and gravitational (∆ _E_ g) contributions, ∆ _E_ = ∆ _E_ surface + ∆ _E_ g _._ (40) ∆ _E_ surface can be broken into a sum of individual interfacial energy contributions, ∆ _E_ surface = ∆ _A_ lg _γ_ lg + ∆ _A_ ls _γ_ ls + ∆ _A_ gs _γ_ gs _,_ (41) where ∆ _A_ lg, ∆ _A_ ls and ∆ _A_ gs are the area changes of the liquidgas, liquid-solid and gas-solid interfaces respectively, and _γ_ lg, _γ_ ls, and _γ_ gs, are the surface tensions of the same respective interfaces. If we assume a dry capillary tube as an initial state, then we have ∆ _A_ gs = _−_ ∆ _A_ ls = _−_ 2 _πrc_ ( _hc_ + _hm_ ), where, as shown in Fig. 3(a), _rc_ is the tube radius, _hc_ is the capillary rise height (here defined from the bottom of the tube to the bottom of the meniscus) and the meniscus height _hm_ . Famously, Jurin’s Law describes the equilibrium rise height in such a system, but it has only recently been shown that the precise rise height that Jurin’s law describes is the mean rise height _h_ <sup>¯</sup> <sup>56</sup> : where _λc_ is the capillary length ( _λc_ = - _γlg/ρg_ ). Here, as in ref. <sup>56</sup>, the shooting method is employed in MATLAB to solve _h_ ¯ = <sup><u>2</u></sup> <sup>_<u>γ</u>_</sup> <sup><u>lg cos</u></sup> <sup>_<u>θ</u>_</sup> _ρgrc_ _._ (42) The rise heights _hc_ and _hm_ cannot in general be analytically determined, and likewise neither can the energetic contributions in Eq. (40). However, as shown previously, these quantities can be determined numerically by solving the YoungLaplace equation for this axisymmetric system <sup>56</sup>, _<u>z</u>_ <sup>_′′_</sup> _<u>z</u>_ <sup>_′_</sup> <u>3</u> + <u>2</u> _x_ (1 + _′_ 2) (1 + _z′_ 2) _x_ (1 + _z_ <u>1</u> = <sup>_<u>z</u>_</sup> <u>2</u> _λc_ <sup>2</sup> _,_ (43) 35 30 25 20 15 10 5 0 3.5 3.0 2.5 2.0 1.5 1.0 0.5 0.0 x10 <sup>3</sup> x10 <sup>3</sup> Simulation Numerical solution the meniscus profile, rise heights, and energetic contributions. To evaluate our simulations against this established numerical method, we begin by initialising a cylindrical tube with an inner radius of _rc_ using a staircase approximation of a hollow cylinder with a sharp interface. We set _β_ = 10 in the confining potential and _n_ iter = 10 steps to smooth out the solid interface. The gravitational force is applied as a body force per unit volume, _Fb_ = _ρg_, in the vertical direction after the liquid phase is initialised in the system. This gravitational force enters the total free energy functional as an additional external energy term rc hm hc a b c Ψg = _V_ - _f_ g _C_ 2 _z_ - d _V,_ (44) 0 30 60 90 3.0 2.0 1.0 0.0 -1.0 -2.0 -3.0 -4.0 -5.0 where _f_ g is the gravitational force density. We use water as the rising liquid with properties: _ρ_ = 1000 kg m <sup>_−_</sup> <sup>3</sup> and _γ_ lg = 0 _._ 0728 N m <sup>_−_</sup> <sup>1</sup> . The gravitational acceleration is _g_ = 9 _._ 81 m s <sup>_−_</sup> <sup>2</sup> . All of these physical parameters are then converted into simulation units via the gravitational force density: _f_ g = _ρg_ ( _γ_ 23 _P′_ 2) _/_ ( _γ_ lg _P_ 2), where _P′_ and _P_ are the length scale of the capillary tube in physical and simulation units, respectively, and _γ_ lg and _γ_ 23 are the liquid-gas interfacial tensions in physical and simulation units, <u>respectively.</u> We use these values in simulations: _γ_ 23 = �8 _/_ 9, _P_ = 80 and _P_ <sup>_′_</sup> = 10 <sup>_−_</sup> <sup>2</sup> m. Simulation Numerical solution 10 20 30 40 _f_ g = _ρg_ ( _γ_ 23 _P_ values in simulations: _γ_ 23 = �8 _/_ 9, _P_ = 80 and _P_ <sup>_′_</sup> = 10 <sup>_−_</sup> <sup>2</sup> m. To reduce the computational cost, we only simulate half of the cylinder and apply symmetry boundary conditions along all directions. The typical simulated capillary rise in a smooth cylinder tube is shown in Fig. 3(a). Figure 3(b) presents the measured rise height of liquid in a smooth cylinder tube for varying wetting contact angles and tube radii (see inset). The simulations accurately capture the dependence of the rise height on _θ_ and _rc_, demonstrating a strong agreement with the numerical solution of Eq. (43). Additionally, we analyzed the variations in interfacial energy, ∆ _E_ surface, and gravitational potential energy, ∆ _E_ g, obtained from simulations for different contact angles, comparing them with the theoretical prediction of Eq. (40), as shown in Fig. 3(c). The change in interfacial energy is computed from the bulk and squared gradient terms within the free energy model in Eq. (1). The change in gravitational potential energy is derived from the gravitational force term in Eq. (44). The energy calculations show excellent agreement with theoretical predictions. C. Critical Pressure on Micropillared Surfaces We study the wetting transition on superhydrophobic surfaces, also known as the Cassie-Baxter to Wenzel transition. In this, a liquid droplet transitions from a state suspended on top of the surface texture to a collapsed state where the droplet fully wets the structure. This is associated with a reduction in the apparent contact angle of the droplet and a loss of superhydrophobicity. The wetting transition occurs if the pressure difference between the liquid and gas is larger than a critical pressure given by the surface textures, which depends upon the equilibrium contact angle. At higher equilibrium contact hc 100 80 60 40 20 0 rc 0 30 60 90 ���� <sup>�</sup> ���� <sup>�</sup> FIG. 3. (a) A snapshot of the liquid-gas interface at equilibrium in a capillary rise simulation within a cylindrical tube. The tube radius _rc_, the contact angle _θ_, the rise height _hc_ and the meniscus height _hm_ are shown in the enlarged view. (b) The measured rise height _hc_ (data points) plotted against contact angle _θ_ with _rc_ = 26 (main panel) and inner tube radii _rc_ with _θ_ = 60 <sup>_◦_</sup> (inset), and compared to the numerical solution given by Eq. (43) (solid line). (c) The change in the gravitational potential energy ∆ _E_ g and the surface energy ∆ _E_ surface obtained from simulation and numerical solution plotted against contact angle _θ_, where _rc_ = 26. 0.03 0.02 0.01 0 -0.01 -0.02 -0.03 angles, it is harder for the liquid to enter the texture, resulting in a higher critical pressure. We consider a 2D system where the solid is textured with rectangular micropillars, as shown in Fig. 4(a). We simulate a liquid layer suspended on top of two pillars separated by a gap _s_ instead of simulating a whole droplet on a patterned surface (see enlarged view in Fig. 4(a)). We make this approximation assuming that the droplet size is much larger than the pillar size and spacing. In our simulations, these values are used: _a_ = 40, _h_ = 170, _b_ = 160, _β_ = 10 and _n_ iter = 10. The system is fitted into a simulation box of 160 _×_ 200. We incorporate pressure into the system by applying a pressure difference between the liquid and gas phase, ∆ _P_, in the free energy functional in Eq. (8). In order to obtain an accurate critical pressure, we apply a binary search algorithm <sup>57,58</sup> around the critical pressure value with a tolerance level of 10 <sup>_−_</sup> <sup>4</sup> . Theoretically, for the 2D model system used here, the critical pressure is given by <sup>59–61</sup> ∆ _Pc_ = _−_ <sup><u>2</u></sup> <sup>_<u>γ</u>_</sup> <sup><u>lg cos</u></sup> <sup>_<u>θ</u>_</sup> _,_ (45) _s_ where _γ_ lg is the liquid-gas surface tension; _θ_ is the equilibrium contact angle of the droplet on the corresponding flat surface, and _s_ = _b_ _−_ _a_ is the wall-to-wall spacing between two adjacent pillars. The equilibrium shapes of the liquid-gas interface at the critical pressure are shown in the snapshots of Fig. 4(b), in which concave and convex menisci occur due to the liquidsolid surface tension for _θ_ = 60 <sup>_◦_</sup> and _θ_ = 112 <sup>_◦_</sup>, respectively. At the transition (∆ _P >_ ∆ _Pc_ ), the suspended liquid-gas interface abruptly collapses, enabling the liquid phase to displace the trapped gas and completely fill the gap between the pillars. The critical pressure dependency on the equilibrium contact angle, _θ_, and the pillar spacing, _s_, is shown Fig. 4(b). As predicted by Eq. (45), the critical pressure is linearly dependent on cos _θ_ . For _θ_ _<_ 90 <sup>_◦_</sup>, the critical pressure is negative, indicating that the energy barrier is low and the transition to the collapsed state is energetically favourable. On the contrary, the positive critical pressures for _θ_ _>_ 90 <sup>_◦_</sup> suggest the system has a higher energy barrier, making the transition not energetically favourable to occur unless some external perturbations from the liquid pressure are added to the system. As the separation increases, the critical pressure reduces making it more favorable for the liquid to transition to a collapsed state. The simulated critical pressures are in good agreement with the prediction. D. The Salvinia Paradox Having validated the Diffuse Solid Method, we now demonstrate its utility in representing real structures of complex geometry through a case study of the so-called ’Salvinia Paradox’. First investigated by Barthlott _et al._ in 2010 <sup>62</sup>, the Salvina Paradox concerns the wetting properties of the hairlike structures that coat the leaves of the _Salvina_ water fern. In the species _Salvina molesta_, these mm-long hairs have a complex, ’eggbeater’ geometry, which is modelled in Fig. 5(a). a b Pl Suspended state Pl Collapsed state ? Pg <u>s</u> <mark>h</mark> ~~<mark>a</mark>~~ b Simulation Analytical solution s 0 60 120 0.03 0.02 0.01 0 0 30 60 90 120 150 180 - / <sup>o</sup> FIG. 4. (a) Schematic of a droplet undergoing a transition from a suspended state to a collapsed state on a 2-dimensional periodically patterned surface with a rectangular micropillar geometry having width _a_, pillar spacing _s_, pillar height _h_ and periodicity _b_ . _θ_ is the equilibrium contact angle on the corresponding flat surface. _P_ l and _P_ g are the pressure in the liquid and gas (surrounding air), respectively. The enlarged view shows the liquid-gas interface underneath the droplet hanging between two adjacent pillars in a suspended state and is used as the system setup in simulations. (b) Measured critical pressure plotted against contact angle, where _s_ = 81, and pillar spacing (inset), where _θ_ = 112 <sup>_◦_</sup>, and compared with the analytical prediction to Eq. (45). Snapshots show liquid-gas interface shapes at the critical pressure for _θ_ = 60 <sup>_◦_</sup> and _θ_ = 112 <sup>_◦_</sup> . The habitat of _Salvina molesta_ is on the surface of rivers and lakes, and plants are susceptible to being submerged. However, the plants also require an air layer close to the leaf (plastron) to be maintained gaseous exchange. The eggbeater hairs are an adaptation that allow the plastron to be maintained when submerged. The four arms are coated in a hydrophobic wax, and through their physical structure maintain a superhydrophobic suspended state when submerged. This resists the intrusion of water into the plastron. The paradox arises because the uppermost tip of the hair is hydrophilic, a feature which conventionally is assumed to be detrimental to superhydrophobicity. However, it has been shown experimentally that whereas the hydrophobic structured base resists the intrusion of water, the hydrophilic tip resists the exit of air as bubbles from the plastron. These two different wetting behaviours are suggested to work synergistically to maintain the plastron, even in flowing water <sup>62</sup> . To measure the effectiveness of these structures at resisting breakdown of the plastron, it is useful to consider the extrusion and intrusion pressures, the pressures at which the liquid a b c Extrusion c Extrusion Triangulated mesh 160 water e Difference 160 140 120 100 80 60 40 20 water air water air water 160 140 120 100 80 60 40 20 _θ_ tip / <sup>o</sup> Δ _P'_ Int-Δ _P_ 'Ext <mark>Tip-mediated</mark> <mark>Base-mediated</mark> _θ_ tip / <sup>o</sup> Diffuse solid geometry 200 160 120 80 40 d Intrusion 160 140 120 ( _θ_ base = 160 <sup>_o_</sup>, _θ_ tip = 35 <sup>o</sup> ) 100 <mark>Base-mediated</mark> _Ds_ 100 <mark>Base-mediated</mark> 80 water f Salvinia pressure range 120 100 80 air <mark>Tip-mediated</mark> _θ_ tip / <sup>o</sup> Δ _P'_ Int, Δ _P_ 'Ext 60 40 20 _Hs_ air 80 60 40 20 Δ _P_ ' -0.72 0.00 0.48 1.80 2.88 20 40 60 80 100 120 _x_ 4080120 tip, _θ_ tip _x_ base, _θ_ base _Cs_ FIG. 5. (a) The triangulated 3D mesh that models the ’eggbeater’ shaped leaf hair of the water-fern, _Salvinia molesta_ . (b) The diffuse solid conforming to the inputted triangulated mesh, showing the grid dimensions and different contact angles imposed on the base, _θ_ base, and the tip, _θ_ tip.Key hair parameters are indicated: the hair height _H_ s, outermost diameter _D_ s, and centre-to-centre distance _C_ s. (c-e) Surveys of the nondimensionalised extrusion pressure ∆ _P_ Ext <sup>_′_</sup> <sup>,</sup> <sup>intrusion</sup> <sup>pressure</sup> <sup>∆</sup> <sup>_P_</sup> <sup>Int,</sup> <sup>and</sup> <sup>difference</sup> <sup>between</sup> <sup>these</sup> <sup>pressures</sup> <sup>respectively.</sup> <sup>Boundaries</sup> between the two collapse modes (Tip-mediated and Base-mediated) are indicated by a thick blue line (extrusion) and thick red line (intrusion). (f) A 2D slice through the _Salvinia_ hair, showing how the liquid-gas interface changes across the pressure range between the intrusion and extrusion pressures. Interfaces are shown in blue at equal increments of ∆ _P_ <sup>_′_</sup> = 0.12. The hydrophilic tip is shown in red, the hydrophobic base in grey. gas interface either detaches upwards from the tip of the structure, or moves spontaneously down the structure towards the base respectively. To date, these properties have largely been investigated experimentally on plant samples, with reported extrusion pressures of (-6.1 _±_ 0.9) kPa <sup>63</sup>, and intrusion pressures of (12 _±_ 2) kPa <sup>64</sup> . However, there remains a lack of fundamental understanding about the relationship between the structure, surface wettability, and the extrusion/intrusion pressures. Towards achieving this understanding, some progress has been made via computational studies. The extrusion and intrusion characteristics on a 2D simplified geometry showed how the interaction between wettability patterning and structure enhanced the difference between extrusion and intrusion pressures <sup>65</sup> . Meanwhile more recently, the apparent contact angle of the suspended state was investigated, alongside some aspects of the intrusion characteristics using the proprietary software Ansys Fluent <sup>66</sup>, however wettability patterning was not considered <sup>67</sup> . Using the Diffuse Solid Method, the extrusion and intrusion of water on the complex geometry with patterned wettability is investigated. To begin with, a model of the geometry was designed in Blender <sup>68</sup> (although any suitable modelling or computer-aided design (CAD) software is appropriate). The triangulated mesh of this model is shown in Fig. 5(a). Within the computational domain of the phase field model, the face and vertex data of the triangulate mesh was then used to distinguish the solid interior and exterior, and so set up the confining potential Ψcf described in Eq. (11). Following the solid relaxation step, the resultant solid geometry is shown in Fig. 5(b), in which the hydrophobic base of contact angle _θ_ base is shown in grey, and the hydrophilic tip of contact angle _θ_ tip is highlighted in red. When choosing the dimensions of the model hair and domain size, it is recognised that real plant specimens show substantial variability in the hair geometry and arrangement <sup>69</sup> . Key geometric parameters commonly examined are the hair height _H_ s, outermost diameter _D_ s, and centre-to-centre distance _C_ s, indicated in Fig. 5(b). Here, for this demonstration of the Diffuse Solid Method, we opted for a typical hair geometry characterised by _D_ s _/C_ s = 0.77, and _H_ s _/C_ s=0.99. Periodic boundary conditions were imposed in the _x_ and _y_ directions, with symmetry boundary conditions in the _z_ directions. To examine the extrusion pressure, ∆ _P_ Ext, a liquid layer was initialised in contact with the tip of the hair, and the energy of the system minimised. The pressure in the liquid phase was reduced relative to the gas phase and the system energy reminimised. This step was repeated with variable steps in the pressure changes to locate the pressure at which the interface detached from the top of the structure: ∆ _P_ Ext. To explore the impact of the base and tip wettability on ∆ _P_ Ext, this process was repeated across a range of _θ_ base and _θ_ tip from 20 <sup>_◦_</sup> to 160 <sup>_◦_</sup>, capturing the range of biologically relevant contact angles. The variation of ∆ _P_ Ext with _θ_ base and _θ_ tip is shown in Fig. 5(c), with the color scale located at the bottom of the figure. Note that ∆ _P_ Ext <sup>_′_</sup> <sup>is reported, which is a nondemension-</sup> alised form of ∆ _P_ Ext: ∆ _P_ Ext <sup>_′_</sup> <sup>= ∆</sup> <sup>_P_</sup> <sup>Ext</sup> <sup>_/_</sup> <sup>(</sup> <sup>_γ_</sup> <sup>lg</sup> <sup>_/L_</sup> <sup>x), where</sup> <sup>_γ_</sup> <sup>lg is the</sup> liquid-gas interfacial tension ( _γ_ lg = 1 _._ 0) and _L_ x is the number of cells in the computational domain in the _x_ -direction ( _Lx_ = 120). Two different modes of interface detachment are observed, labelled Base-mediated and Tip-mediated, which are separated by the thick, blue line. In Base-mediated detachment, at the point of detachment, the interface is pinned to the solid base, and so _θ_ tip does not effect ∆ _P_ Ext. Instead, the smaller the value of _θ_ base, the more negative ∆ _P_ Ext becomes. Conversely, in Tip-mediated detachment, the interface is pinned to the tip at the point of detachment and so ∆ _P_ Ext becomes independent of _θ_ base. The smaller the value of _θ_ tip, the more negative ∆ _P_ Ext becomes. However, the small perimeter of the three-phase contact line in Tip-mediated detachment limits the maximum magnitude of ∆ _P_ Ext. This is compared to Base-mediated detachment where the relatively large three-phase contact line perimeter enables larger magnitude extrusion pressures to be achieved. Thus, if preventing extrusion was the sole purpose of the _Salvinia_ hairs, then this would most effectively be achieved by minimising _θ_ base. To measure the intrusion pressures, ∆ _P_ Int, the pressure in the liquid relative to the gas was iteratively increased up until the point where the liquid spontaneously filled the system. We note as an aside that depending on _θ_ base, the interior of the my either trap an air bubble, or fill with liquid. The variation of ∆ _P_ Int <sup>_′_</sup> <sup>with</sup> <sup>_θ_</sup> <sup>base</sup> <sup>and</sup> <sup>_θ_</sup> <sup>tip</sup> <sup>is shown in Fig. 5(d), where</sup> ∆ _P_ Int <sup>_′_</sup> <sup>has</sup> <sup>been</sup> <sup>nondimensionalised</sup> <sup>in</sup> <sup>an</sup> <sup>identical</sup> <sup>manner</sup> <sup>to</sup> ∆ _P_ Ext <sup>_′_</sup> <sup>.</sup> <sup>Here,</sup> <sup>we</sup> <sup>also</sup> <sup>see</sup> <sup>two</sup> <sup>separate</sup> <sup>detachment</sup> <sup>mecha-</sup> nisms, Base-mediated and Tip-mediated. In Base-mediated detachment, the three-phase contact line pins close to the widest part of the hair geometry at the point of detachment. The eggbeater structure traps air within the space between the four arms, making it energetically expensive for the liquidgas interface to move down the outside of the hair. Thus, the intrusion pressure is positive, even for hydrophilic values of _θ_ base as low as 50 <sup>_◦_</sup> . In scenarios where the base is hydrophilic and the tip highly hydrophobic (the reverse of that seen in the _Salvinia_ plant), the tip becomes responsible for resisting intrusion in Tip-mediated detachment. However, due to the small contact line perimeter of the tip, only modest positive intrusion pressures can be achieved. If preventing intrusion was the sole purpose of the _Salvinia_ hairs, then this would most effectively be achieved by maximising _θ_ base. To explore the proposed function of the wettabilitypatterened _Salvinia_ hair (to maintain the largest range between intrusion and extrusion pressures <sup>62</sup> ), we show the difference, ∆ _P_ Int-∆ _P_ Ext, in Fig. 5(e). This shows that, in order to maximise ∆ _P_ Int-∆ _P_ Ext, _θ_ base should be maximised, and _θ_ tip minimised. Although not yet explicitly studied for salvinia, the nano-structured wax coating of the hydrophobic base is anticipated to show similar contact angles to other plants, approximately 160 <sup>_◦_</sup> <sup>62,70</sup> . Likewise, although not yet robustly confirmed, the hydrophilic tip is suggested to have a contact angle of approximately 35 <sup>_◦_</sup> <sup>63</sup> . At these contact angles, our simulations show that ∆ _P_ Ext <sup>_′_</sup> <sup>= -0.81,</sup> <sup>∆</sup> <sup>_P_</sup> Int <sup>_′_</sup> <sup>= 2.94, with a difference</sup> of 3.75. Choosing a typical value of the centre-to-centre hair spacing of 790 _µ_ m <sup>69</sup>, these convert to ∆ _P_ Ext = -8.85 kPa, ∆ _P_ Int = 32.1 kPa, with a difference of 41.0 kPa. This compares sensibly to the experimental values of ∆ _P_ Ext = (-6.1 _±_ 0.9) kPa <sup>63</sup> and ∆ _P_ Int = (12 _±_ 2) kPa <sup>64</sup> . Note that the magnitudes of these pressures are reduced compared to the simulated values. This is because in real plant samples, substantial geometric variability between hairs means that measured detachment pressures will be dominated by the local regions which are least resistant to intrusion or extrusion. In the Supplementary Material (Section E), a sensitivity analysis is performed to show that the intrusion and extrusion critical pressures are highly sensitive to _D_ s _/C_ s, and only moderately sensitive to _θ_ base and _θ_ tip. Finally, an interesting further analysis is that if the hair exhibited a uniform contact angle, the maximum extrusionintrusion pressure difference occurs at _θ_ base = _θ_ tip = 160 <sup>_◦_</sup>, with a value of 32.6 kPa. Thus, for the geometry tested here, wettability patterning increased the plastron stability pressure range by 26%. To further illuminate the _Salvinia_ hair function, in Fig. 5(f), a 2D slice through the 3D hair tip is shown. Between the intrusion and extrusion pressures, the liquid-gas interface is shown at uniform intervals of ∆ _P_ <sup>_′_</sup> = 0.12. At zero pressure, the interface is pinned on the hydrophobic/hydrophilic boundary. If the pressure is made increasingly negative (extrusion conditions), it can be seen that the three-phase contact line remains pinned to this location up until _P_ Int is reached. If instead the pressure is increased gradually from 0 (intrusion conditions), at ∆ _P_ <sup>_′_</sup> = 0.48, the three-phase contact line depins and slides partially down the hair. As the pressure is increased further, the contact line continuously slides down the hair until ∆ _P_ <sup>_′_</sup> = 1.80, at which point another jump in contact line location is observed. From here, the interface slides towards the widest part of the hair, up until _P_ Ext is reached. IV. LATTICE BOLTZMANN SIMULATIONS A. Capillary Filling Dynamics In order to benchmark the accuracy of the diffuse solid for dynamic problems, we investigate the filling of a capillary channel <sup>71</sup> . The setup involves a finite reservoir of liquid entering a narrow channel, which the liquid preferentially wets over the gas. The curved liquid-gas interface in the channel creates a pressure gradient between the liquid and the surrounding gas, which subsequently drives the liquid to fill the channel. In the case where the liquid is much more viscous than the gas, the distance traveled by the liquid into the channel follows a square-root dependence on time <sup>72</sup> H _H_ θ 12.5 10.0 7.5 5.0 2.5 0.0 _eq_ = 75 _o_ _eq_ = 60 _o_ _L_ _θ_ θ H _H_ - <u>12</u> ( _t −_ _t_ 0) a b _L_ _−_ _L_ 0 = - _<u>γ</u>_ <u>lg</u> _H_ <u>cos</u> _<u>θ</u>_ <u>d</u> 3 _η_ l <u>12</u> _._ (46) 0 500 1000 1500 2000 2500 _t_ _lg_ <sup>/</sup> _l_ <sup>_H_</sup> Here, _η_ l is the dynamic viscosity of the liquid, _θ_ d is the dynamic contact angle, _γ_ lg is the liquid-gas interfacial tension, _H_ is the channel width, and _t_ is time. _L_ 0 and _t_ 0 are constants of integration that take into account the initial dynamics of the liquid as it enters the channel. Fig. 6 shows how the distance traveled by the liquid into the channel depends on time. The simulation parameters are: a surface tension _γlg_ = 2 _._ 5 _×_ 10 <sup>_−_</sup> <sup>3</sup>, an interface width _α_ = 1 and viscosities of 1 _/_ 6 and 2 _/_ 300 for the liquid and gas phases respectively. The densities of each component are kept identically at 1. The value of mobility _M_ in the Cahn-Hilliard equation is 1 _/_ 6. The solid is initialised by equilibrating for 5 _×_ 10 <sup>3</sup> iterations using _β_ = 1 _×_ 10 <sup>_−_</sup> <sup>3</sup> and Ω = 2 _×_ 10 <sup>_−_</sup> <sup>4</sup> . The full simulation size is 1750 _×_ 450 and the height and width of the channel are 900 and 40 respectively. We incline the channel by 20 <sup>_◦_</sup> in order to validate the dynamics in the case that the diffuse solid does not align to the grid. These simulations are run for equilibrium contact angles of 60 <sup>_◦_</sup> and 75 <sup>_◦_</sup> . However, as expected from previous literature <sup>71,73</sup>, the dynamic contact angles are larger than these values. The dynamic contact angle is measured by fitting a circle to points on the liquid-gas interface and finding the tangential angle at the point where this intercepts the solid plane. As the liquid front moves along the channel and the velocity drops, the measured contact angles approach their equilibrium values, see Supplementary Material (section F), providing another validation that we achieve the correct equilibrium wetting behaviour from Eq. (19). In Fig. 6(b), the time and distance are non-dimensionalised by choosing _L_ <sup>_∗_</sup> = _L/H,_ _t_ <sup>_∗_</sup> = _tγ_ lg _/η_ l _H._ (47) We fit the data to Eq. (46) using a least squares algorithm, using the instantaneous dynamic contact angle at each data point when fitting the curve. As shown by Fig. 6(b), the distance travelled by the liquid interface follows a square root dependence on time. The fit agrees well with the expected curve given by Eq. (46). These results provide confidence that the capillary dynamics are captured accurately. The curved interface provides the correct pressure gradient to drive the capillary flow with the expected velocity for a large viscosity contrast. FIG. 6. (a) Visualisation of simulation domain, with a reservoir of liquid on the left, which will enter the blue solid structure. The channel is inclined at 20 <sup>_◦_</sup> . The boundaries on the left and right are periodic with symmetry conditions on the top and bottom <sup>49</sup> . (b) Simulation data points and analytical curves (shown by solid lines), for non-dimensional distance and time. B. Droplet Dynamics on Sinusoidal Surfaces To highlight a complex dynamic wetting application of the diffuse solid method, we now demonstrate simulations of droplets moving on sinusoidally corrugated surfaces. The solid initialization approach enables the generation of arbitrary solid shapes. This capability is vital to simulate multicomponent flow on real geometries, which very rarely conform to a regular simulation grid. Sinusoidal surfaces are a key example for this, and have found growing interest as superhydrophobic surfaces due to their unique dynamic behaviour. In contrast to traditional pillared surfaces, the smooth texture limits pinning <sup>74</sup>, so droplets can move more easily. Additionally, these wavy surfaces more closely match biological superhydrophobic surfaces, which have shown remarkable capabilities to repel liquid droplets <sup>75,76</sup> . We investigate a droplet moving on these surfaces in the cases where the droplet is in the suspended and collapsed states, shown in Fig. 7(a-b). We initialise the solid component following a sinusoidal profile with an amplitude of 20 and a period of 50. We then allow the interface to smooth over 2500 timesteps with _β_ = 2 _×_ 10 <sup>_−_</sup> <sup>3</sup> and Ω = 0 _._ 1, followed by a further 47500 timesteps with _β_ = 2 _×_ 10 <sup>_−_</sup> <sup>3</sup> and Ω = 2 _×_ 10 <sup>_−_</sup> <sup>3</sup> . To achieve the suspended and collapsed states, we set the equilibrium contact angles to 150 <sup>_◦_</sup> and 90 <sup>_◦_</sup> respectively. The other simulation parameters are identical to the values in Sec. IV A. The full simulation size is 250 _×_ 130 and each simulation was run for 2 _×_ 10 <sup>6</sup> timesteps. Periodic boundary conditions are used at the left and right of the domain, and the halfway bounce-back scheme <sup>49</sup> is used at the top. At the beginning of the simulation, a circular droplet with a radius of 40 is initialised in the collapsed state. To apply gravity, we include a constant body force to the droplet (we neglect gravity on the surrounding component with the assumption that the density ratio is large). The magnitude of the body force is calculated to match the Bond number Bo = <sup><u>(</u></sup> <sup>_<u>ρ</u>_</sup> <sup><u>water</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>ρ</u>_</sup> <sup><u>air)</u></sup> <sup>_<u>D</u>_</sup> <sup>2</sup> <sup>_<u>g∗</u>_</sup> _γ_ water,air (48) These results demonstrate the abilities of sinusoidal surfaces to repel liquid droplets. If the underlying substrate is hydrophobic, the droplet will enter the suspended state, and easily roll over the top of the corrugated texture with a small tilting angle of 15 <sup>_◦_</sup> . Even while the surface is neutrally wetting ( _θ_ = 90 <sup>_◦_</sup> ), the collapsed state still begins to move at a moderate tilt angle of 37 _._ 5 <sup>_◦_</sup>, due to the lack of sharp corners on the sinusoidal surface, unlike other superhydrophobic surfaces patterned with posts. Insets in Fig. 7(c) display the typical velocity variation with time for the suspended and collapsed states. For the suspended state, the velocity stabilises quickly, with small oscillations as the droplet passes the sinusoidal profile. In contrast, for the collapsed state, the droplet must move vertically to overcome the peaks of the sinusoidal profile, which leads to a much smaller velocity with large oscillations as the droplet moves from one sinusoidal period to the next. The alternating pattern in the peak velocity of these oscillations arises from the different curvatures of the front and rear of the droplet in Fig. 7(b). Consequently, this leads to a slightly larger velocity as the front of the droplet overcomes the texture, in contrast with the rear. From these results, we also observe that the diffuse solid approach allows these surfaces to be fully resolved without a staircase-like approximation. The latter would create artificial pinning locations. Moreover, the solid initalization method allows for the correct interface profile to be achieved when analytical smoothing is impossible, which is essential for wetting on arbitrary geometries. V. CONCLUSION In this work we have presented a diffuse solid method that allows us to study quasi-static and dynamic wetting and multiphase flow phenomena in complex geometries. The diffuse solid approach is simple to implement and can be embedded in different numerical solvers, as shown here for phase field energy minimization and lattice Boltzmann method. Moreover, we have obtained excellent agreement against analytical results for all the benchmark scenarios; equilibrium contact angles, capillary rise height, critical pressure on pillared surfaces, and dynamic capillary rise. In turn, the diffuse solid model allowed us to easily study phenomena involving highly non-trivial geometries, highlighted here using the Salvinia leaf structure with its eggbeater shape and variation in contact angle at the base and the tip as well as droplet motion on sinusoidal surfaces. We believe the proposed diffuse solid method will open up new opportunities to investigate wide ranging interfacial phenomena. For instance, it is useful for rationalizing wetting dynamics on bio-inspired surfaces, ranging from Lotus leaves and Rose petals to springtails and butterfly wings <sup>77–80</sup>, which have been shown to exhibit a rich display of variations in shapes, sizes, and chemical variations. It can also be harnessed as a powerful design tool, especially when coupled with CAD software (as has been done here for the Salvinia leaf study), and potentially 3D printing to experimentally realize the computationally optimized surface structures. of a water droplet with a diameter _D_ = 3 _._ 37 mm. Here _g∗_ is the gravitational acceleration parallel to the surface. The a 45 <sup>o</sup> _F_ g c 10 3 10 4 b 45 <sup>o</sup> _F_ g _Tilt_ _Angle_ ( <sup>_o_</sup> ) 10 20 30 40 50 60 Suspended Collapsed Snapshots (a,b) _v_ _<u>t</u>_ _v_ _<u>t</u>_ 0.26 0.52 0.76 0.98 1.17 1.32 _Bo_ FIG. 7. (a) Droplet in the suspended state at a tilt angle of 45 <sup>_◦_</sup>, raised above the corrugated texture as it moves. The equilibrium contact angle is 150 <sup>_◦_</sup> . (b) Droplet in the collapsed state at a tilt angle of 45 <sup>_◦_</sup> that has penetrated the texture. The equilibrium contact angle is 90 <sup>_◦_</sup> . (c) Terminal capillary number as a function of Bond number/Tilt Angle. Insets show that the velocity is close to constant in the suspended state and exhibits stick-slip motion in the collapsed state. The droplet in the suspended state moves at a significantly smaller tilt angle of 15 <sup>_◦_</sup> compared with 37 _._ 5 <sup>_◦_</sup> for the collapsed state. In addition to this, the terminal capillary number is consistently larger by approximately an order of magnitude. terminal velocity _V_ is calculated as the average center of mass velocity parallel to the solid surface for the final 1 _×_ 10 <sup>6</sup> timesteps, after the variation in average velocity of the droplet over successive periods of the sinusoidal texture was below 1%. The results of these simulations is presented in Fig. 7(c), showing the terminal capillary number Ca = <sup>_<u>η</u>_</sup> <sup><u>l</u></sup> <sup>_<u>V</u>_</sup> _γ_ lg _._ (49) SUPPLEMENTARY MATERIAL The Supplementary Material contains additional information on (A) a parameter sensitivity study to obtain specific solid geometries, (B) the derivation of interfacial tensions and contact angle in the Diffuse Solid Model, (C) pseudocode for the lattice Boltzmann algorithm emloyed in this work, (D) equilibrium contact angle validation for the lattice Boltzmann method simulations, (E) parameter sensitivity survey for the _Salvinia paradox_ example, and (F) dynamic contact angle data for the lattice Boltzmann simulations shown in Sec. IVB. ACKNOWLEDGMENTS F.O. acknowledges a BPPLN scholarship from the Directorate General for Science Technology and Higher Education, Republic of Indonesia. H.K. acknowledges funding from the Leverhulme Trust (Research Project Grant RPG-2022-140) and UKRI Engineering and Physical Sciences Research Council (EP/V034154/2). H.K. and S.J.A. acknowledge funding from EPSRC Impact Acceleration Account and ExxonMobil. AUTHOR DECLARATIONS Conflict of Interest The authors have no conflict to disclose. Author Contributions Fandi Oktasendra: Conceptualization (equal); Investigation (equal); Methodology (equal); Writing - Original Draft (equal). Michael Rennick: Investigation (equal); Methodology (equal); Writing - Original Draft (equal). Samuel J. Avis: Methodology (equal); Writing - Review & Editing (equal). Jack R. Panter: Conceptualization (equal); Investigation (equal); Methodology (equal); Writing - Original Draft (equal). Halim Kusumaatmaja: Conceptualization (equal); Funding acquisition (lead); Supervision (lead); Writing - Original Draft (equal). DATA AVAILABILITY STATEMENT Data supporting the findings in this study are available from the corresponding authors upon reasonable request. VI. SUPPLEMENTARY MATERIAL A. Diffuse Solid Method Parameter Survey We have carried out similar surveys for both the phase field energy minimization and lattice Boltzmann simulations to optimize the choice of parameters for the Diffuse Solid Method. For brevity, here we present the results for the phase field energy minimization. _1._ _Solid_ _confinement_ _parameters_ To determine the effective value of _β_ and the number of iterations, _n_ iter, required to form a desired solid geometry in the first stage of the energy minimisation process, we perform a survey based on several criteria: the size of the solid (∆ _V_ ) referred to as the difference in the volume (area) between the simulated and expected solid shape in 3D (2D), the closeness of the shape to the intended one (∆ _RC_ ) referred to as the difference between the radius of the simulated and expected points at the interface of the solid, the smoothness of the interface (∆ _RS_ ) referred to as the difference between the radius of the simulated and fitted points at the solid interface, and the fitness of the tanh profile of the solid component across a gas-solid interface to the analytical solution (∆ _C_ 1). These criteria are chosen to ensure the resulting solid geometry has a smooth interface and maintains the intended shape and size. These criteria are then translated into an objective function that measures the square of the relative error of each criterion, given by _O_ = (∆ _V_ ) <sup>2</sup> +(∆ _RC_ ) <sup>2</sup> +(∆ _RS_ ) <sup>2</sup> +(∆ _C_ 1) <sup>2</sup> _._ (50) All variables are then normalised to 1 to ensure that each criterion is equally favourable. This is done by normalising the root mean square error (RMSE) of each variable using the formula: ( _RMSEi −_ min( _RMSEi_ )) _/_ (max( _RMSEi_ ) _−_ min( _RMSEi_ )), where _i_ denotes for each variable in the function _O_ . This objective function is then minimised against several solid geometries including sphere, cube and cone shapes to account for the geometry’s curved, flat, inclined and corner features as shown in Fig. 8. Here, we show two values of _β_ to represent weak ( _β_ = 1) and strong ( _β_ = 10) confining potentials. The energy minimisation steps are done up to _n_ iter = 50. The snapshots of the 2D cross-section of the solid-gas interface for each shape for _n_ iter = 5 _,_ 10 _,_ 20 _,_ 30 _,_ 40 and 50 are shown in Fig. 8(a). From these images, the impact of the value of _β_ can be seen primarily in maintaining the size and shape of the geometry. For _β_ = 1, the size of the geometry shrinks as the iteration increases. This is prominent for shapes with corner features as in the cube and cone geometries. This indicates that two adjection solid interfaces separated by a narrow gap might merge into one solid interface if weak confining potential is used. A stronger confining potential ( _β_ = 10) is seen to be able to maintain the size and shape of the geometry as the number of iterations increases. However, it can lead to reducing the interface’s smoothness and the interface’s tanh profile fitness if the number of iterations is large. The effect of the number of interations can be evaluated further from the objective function analysis, as shown in Fig.8(b). Here, all variables in the objective function have been normalised such that the values range from 0 to 1 to ensure that each variable contributes similarly to the overall objective function. Combining all variables into the total objective function, _O_, we can see that the minimum deviation is obtained at 10 iterations for both values of _β_, which indicates the optimum solid geometry. _2._ _Fluid_ _and_ _domain_ _parameters_ To assess the impact of the interfacial properties on the accuracy of simulated wetting characteristics, the critical intrusion pressure is examined for a 2D rectangular pore, shown in Fig. 9. The parameters tested are the interfacial width, _α_, domain scale, and liquid-gas interfacial tension, _γ_ lg. The contact angle remains fixed throughout at _θ_ = 120 <sup>_◦_</sup>, and the grid spacing remains fixed at 1.0. In Fig. 9(a), the default (scale-1) system dimensions are established (all measurements reported in lattice units). To examine the influence of system scale, all dimensions in this default domain are scaled by a chosen factor. Using an identical procedure to that described in the main text (Section: Critical Pressure on Micropillared Surfaces), we find the critical intrusion pressure required for liquid to spontaneously fill the pore, ∆ _P_ c. This is then compared to the analytical critical intrusion pressure, ∆ _P_ c(analytical), defined in an identical manner to main text Eq. (34): ∆ _P_ c(analytical) = _−_ <sup><u>2</u></sup> <sup>_<u>γ</u>_</sup> <sup><u>lg cos</u></sup> <sup>_<u>θ</u>_</sup> _,_ (51) _s_ where _s_ is the pore width. In Fig. 9(b), this comparison between simulated and analytical critical pressures is made across a range of _α_ and system scales ( _γ_ lg is fixed at 1.0). A successful simulation must balance accuracy with computational expense. For _α_ _<_ 0 _._ 9 the interfacial profile is under-resolved, leading to unphysical interface curvatures. For _α_ _≥_ 0 _._ 9 (where the interfacial a b �� ~~=~~ 1 �� ~~=~~ 10 �� ~~=~~ 1 �� ~~=~~ 10 iii iv �� ~~=~~ 1 �� ~~=~~ 10 v vi C1 i C3 ii niter 5 10 20 30 40 50 1.2 1 0.8 0.6 0.4 0.2 1.2 i iii v 1 1.2 1 0.8 0.6 0.4 0.2 1.2 1 0.8 0.6 0.4 0.2 0 0 10 20 30 40 50 niter 0.8 0.6 0.4 0.2 0 0 10 20 30 40 50 niter 0 0 10 20 30 40 50 niter �V <sup>2</sup> �RC2 �RS2 �C12 _O_ 1.2 1.2 ii iv vi 1 0.8 0.6 0.4 0.2 00 10 20 30 40 50 niter 1.2 1 0.8 0.6 0.4 0.2 0 0 10 20 30 40 50 niter 0 0 10 20 30 40 50 niter FIG. 8. (a) 2D cross-section of the solid-gas interface of sphere (panels i and ii), cube (panels iii and iv) and cone (panels v and vi) geometries after different number of iterations in the first stage of energy minimisation with _β_ = 1 (top row) and _β_ = 10 (bottom row). (b) Plots of normalised values of the objection function’s variables against the number of iterations for the corresponding cases in panel (a). profile is sufficiently resolved), a compromise exists: to achieve highly accurate simulations, a larger _α_ is required, but this in turn requires a larger system scale. The latter is required as for the mesoscale wetting phenomena investigated here, the interface width must remain small relative to the pore width. For highly accurate critical pressures, _α_ = 2 _._ 0 is recommended with at least double the default domain scale. Greater accuracy can be achieved for _α_ _>_ 2 _._ 0, but these require larger system scales than presented in Fig. 9(b). However, even for _α_ = 1 _._ 0 at the default scale (1.0), the discrepancy between the simulated and analytical critical pressure is small (less than 1%). Given the computational efficiency associated with a smaller domain size, _α_ = 1 _._ 0 (the same as the grid spacing) is judged to appropriately balance efficiency and accuracy, and is used throughout this work. In Fig. 9(c), the default system is used, but this time a range of _γ_ lg is tested. Across this range it can be seen that the accuracy remains close to 0.8%. b 4.0 c 0.84 0.82 0.80 0.78 0.76 0.74 0.72 0.70 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 γlg a Scale - 1 pore geometry 80 200 3.0 2.0 1.0 0.0 -1.0 1.0 1.5 2.0 2.5 3.0 α scale 0.5 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 FIG. 9. (a) Default (scale - 1) geometry of the 2D rectangular pore used to examine the impact of _α_, domain scale, and _γ_ lg on the critical intrusion pressure. (b) The impact of _α_ and the domain scale on the percentage difference between the simulated critical pressure, ∆ _P_ c, and analytical critical pressure, ∆ _P_ c(analytical). The grey ’suitable zone’ region highlighted indicates the range of _α_ capable of producing physically sensible liquid-gas interfaces within the range of domain scales tested. (c) The deviation in the critical pressure from the analytical value for the scale-1.0, _α_ = 1 _._ 0 system at a range of different liquid-gas surface tensions. B. Contact Angle Derivation Here we will describe the derivation of the surface tensions and equilibrium contact angle from the free energy given by - - _<u>κ</u>_ <u>2</u> _F_ = 2 <sup>_C_</sup> 2 <sup>2(1</sup> <sup>_−C_</sup> <sup>2)2 +</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>_C_</sup> 3 <sup>2(1</sup> <sup>_−C_</sup> <sup>3)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>2</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>2)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>3)</sup> d _V._ (52) First we consider a pure interface between components _C_ 2 and _C_ 3. In this limit, _C_ 1 = 0 and _∇_ _C_ 1 = 0, so we arrive at a simplified free energy _F_ = - <sup>�</sup> _<u>κ</u>_ <u>2 +</u> _<u>κ</u>_ <u>3</u> (1 _−C_ 2) <sup>2</sup> ( _C_ 2) <sup>2</sup> + _α_ <sup>2</sup> <sup>_<u>κ</u>_</sup> <sup><u>2 +</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3</u></sup> ( _∇_ _C_ 2) <sup>2</sup> d _V._ (53) 2 2 We can calculate the surface tension from the excess free energy per unit area <sup>49</sup>, assuming the interface profile follows _C_ 2 = <u>12</u> <sup>+</sup> <sup><u>1</u></sup> 2 <sup>tanh</sup> 2 <sup>_<u>x</u>_</sup> _α_ <sup>,</sup> d _x_ = <sup>_<u>α</u>_</sup> <sup><u>(</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>2 +</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3)</u></sup> _._ (54) 6 - _<u>κ</u>_ <u>2 +</u> _<u>κ</u>_ <u>3</u> (1 _−C_ 2) <sup>2</sup> ( _C_ 2) <sup>2</sup> + _α_ <sup>2</sup> <sup>_<u>κ</u>_</sup> <sup><u>2 +</u></sup> <sup>_<u>κ</u>_</sup> <sup><u>3</u></sup> ( _∇_ _C_ 2) <sup>2</sup> 2 2 _γ_ 23 = - ∞ _−_ ∞ We can then repeat this process for the solid-fluid interfaces. For the interface between _C_ 1 and _C_ 2, we must have that _C_ 3 = 1 _−C_ 1 _−C_ 2 = 0, so _C_ 1 = 1 _−C_ 2 _F_ = - <sup>�</sup> _<u>κ</u>_ <u>2</u> ( _∇_ _C_ 2) <sup>2</sup> 2 <sup>(1</sup> <sup>_−C_</sup> <sup>2)2(</sup> <sup>_C_</sup> <sup>2)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> <sup><u>2 +</u></sup> 2 <sup>_<u>κ</u>_</sup> <sup><u>3</u></sup> d _V._ (55) Then we arrive at the surface tension - ∞ _γ_ 12 = _−_ ∞ - _<u>κ</u>_ <u>2</u> 2 <sup>(1</sup> <sup>_−C_</sup> <sup>2)2(</sup> <sup>_C_</sup> <sup>2)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>2</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>2)2�</sup> d _x_ = <sup>_<u>ακ</u>_</sup> 6 <sup><u>2</u></sup> <sup>_._</sup> (56) Finally, for the interface between _C_ 1 and _C_ 3, we must have _C_ 2 = 0 and _∇_ _C_ 2 = 0 - - _<u>κ</u>_ <u>3</u> d _V,_ (57) 2 <sup>(1</sup> <sup>_−C_</sup> <sup>3)2(</sup> <sup>_C_</sup> <sup>3)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>3)2�</sup> - _<u>κ</u>_ <u>3</u> 2 <sup>(1</sup> <sup>_−C_</sup> <sup>3)2(</sup> <sup>_C_</sup> <sup>3)2 +</sup> <sup>_α_</sup> <sup>2</sup> <sup>_<u>κ</u>_</sup> 2 <sup><u>3</u></sup> <sup>(</sup> <sup>_∇_</sup> <sup>_C_</sup> <sup>3)2�</sup> d _x_ = <sup>_<u>ακ</u>_</sup> 6 <sup><u>3</u></sup> <sup>_._</sup> (58) from which we arrive at _F_ = - ∞ _γ_ 13 = _−_ ∞ Subsequently, we can utilise Young’s contact angle relation cos _θ_ = <sup>_<u>γ</u>_</sup> <sup><u>13</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>γ</u>_</sup> <sup><u>12</u></sup> _γ_ 23 to calculate the equilibrium contact angle in terms of _κ_ 1 and _κ_ 2 (59) cos _θ_ = <sup>_<u>κ</u>_</sup> <sup><u>3</u></sup> <sup>_<u>−</u>_</sup> <sup>_<u>κ</u>_</sup> <sup><u>2</u></sup> _κ_ 2 + _κ_ 3 _._ (60) C. Pseudocode Start Solid Initialisation Input Desired Solid Shape Calculate macroscopic variables from equations (30), (31) and (34) Update unknown ?? and ??, originating from boundary nodes Input ?1 and desired initial ?2 Calculate macroscopic variables from equations (30), (31) and (34) Update unknown ?? and ??, originating from boundary nodes Evolve ?? and ?? according to equations (26) and (32) Set distributions ?? = ???? and ?? = ???? from equations (27) and (33) Loop until solid converges Set distributions ?? = ???? and ?? = ???? from equations (27) Initialise ?1 = 1 in the solid region and ?1 = 0 outside Calculate ∆?1 and update ?, including contribution from equation (18) Evolve ?? and ?? according to equations (26) and (32) Initialise ?= 1 and ? from equation (17). Initialise ?= 0 and ?= ??? <sup>2</sup> Save output Calculate finite difference gradients in ? and ? for ?? in equation (29) ?? ?? and ?? = ?? Initialise ? and ? from equations (36) and (23). Initialise ?= 0 and ?= ??? <sup>2</sup> Calculate ∆?2 and Save output update ? ?? ?? and ?? = ?? and (33) Loop for desired number of iterations End Calculate finite difference gradients in ? and ? for ?? in equation (29) D. Equilibrium Contact Angle Validation For Lattice Boltzmann Simulations 175 150 125 100 75 50 25 0 0 50 100 150 Analytical ( <sup>o</sup> ) FIG. 10. Measured vs theoretical contact angles in the lattice Boltzmann simulations for a droplet on a flat diffuse solid surface. The results agree to within 1 _._ 5 <sup>_o_</sup> for the range of contact angles tested (15 <sup>_o_</sup> to 165 <sup>_o_</sup> ). The solid is allowed to equilibrate over 5000 time steps with _α_ = 1 and _β_ = 0 _._ 001. A hemispherical droplet of initial radius 40 is then placed on the surface and its equilibrium contact angle is changed by keeping _γ_ 23 = _γ_ 12 = 0 _._ 0025 and modifying _γ_ 13 in accordance with equation (59). As we are only interested in the accuracy of the final static result, we set _τ_ 2 = _τ_ 3 = 1 _._ 0 and _ρ_ 2 = _ρ_ 3 = 1 _._ 0. E. _Salvinia_ sensitivity survey To evaluate the susceptibility of the critical intrusion pressure ∆ _P_ <sup>_′_</sup> Int <sup>_′_</sup> <sup>and</sup> <sup>extrusion</sup> <sup>pressure</sup> <sup>∆</sup> <sup>_P′_</sup> To evaluate the susceptibility of the critical intrusion pressure ∆ _P_ Int <sup>_′_</sup> <sup>and</sup> <sup>extrusion</sup> <sup>pressure</sup> <sup>∆</sup> <sup>_P_</sup> Ext <sup>_′_</sup> <sup>to</sup> <sup>key</sup> <sup>parameters</sup> <sup>of</sup> <sup>the</sup> _Salvinia_ hair, a sensitivity analysis is performed. We start with the original model presented in the main text, featuring _D_ s _/C_ s 0.77 (where _D_ s is the outermost hair diameter, and _C_ s is the centre-to-centre hair separation), a base contact angle _θ_ base = 160 <sup>_◦_</sup>, and a tip contact angle _θ_ tip = 35 <sup>_◦_</sup> . To explore the sensitivity of the critical pressures to these parameters, each parameter is varied by _±_ 5%, with the resulting critical pressures shown in Table I. Note that to vary the outermost diameter to centre-to-centre hair separation ratio, we maintain a fixed centre-to-centre hair separation, and radially scale the entire hair structure. In Table I, it can be seen that the hair outer diameter has the largest influence on both critical pressures, compared to the contact angles. As anticipated from the analysis of the pinning locations in main text Fig. 5(f), the intruding interface is sensitive only to _θ_ base, whereas the extruding interface is sensitive only to _θ_ tip. TABLE I. Sensitivity analysis for the critical intrusion pressure ∆ _P_ <sup>_′_</sup> Int <sup>_′_</sup> <sup>and extrusion pressure ∆</sup> <sup>_P′_</sup> TABLE I. Sensitivity analysis for the critical intrusion pressure ∆ _P_ Int <sup>_′_</sup> <sup>and extrusion pressure ∆</sup> <sup>_P_</sup> Ext <sup>_′_</sup> <sup>on the</sup> <sup>_Salvinia_</sup> <sup>hair examined in the main</sup> text, where _D_ s is the outermost hair diameter, and _C_ s is the centre-to-centre hair separation. <u>System</u> <u>∆</u> _<u>P</u>_ <sup>_<u>′</u>_</sup> <u>Int</u> <sup>_<u>′</u>_</sup> <sup><u>% increase</u></sup> <sup><u>∆</u></sup> <sup>_<u>P′</u>_</sup> <u>System</u> <u>∆</u> _<u>P</u>_ <u>Int</u> <sup>_<u>′</u>_</sup> <sup><u>% increase</u></sup> <sup><u>∆</u></sup> <sup>_<u>P</u>_</sup> <u>Ext</u> <sup>_<u>′</u>_</sup> <sup><u>% increase</u></sup> <u>Original</u> <u>2.94</u> <u>-0.82</u> _D_ s _/C_ s +5% 3.26 -10.97 -0.83 -1.72 _<u>D</u>_ <u>s</u> _<u>/C</u>_ <u>s</u> _<u>−</u>_ <u>5%</u> <u>2.66</u> <u>9.44</u> <u>-0.77</u> <u>5.73</u> _θ_ base +5% 3.00 -2.04 -0.82 0.00 _<u>θ</u>_ <u>base</u> _<u>−</u>_ <u>5%</u> <u>2.87</u> <u>2.42</u> <u>-0.82</u> <u>0.00</u> _θ_ tip +5% 2.94 0.00 -0.81 0.86 _<u>θ</u>_ <u>tip</u> _<u>−</u>_ <u>5%</u> <u>2.94</u> <u>0.00</u> <u>-0.83</u> <u>-0.86</u> F. Dynamic Contact Angle in the Capillary Filling Benchmark ## 90 80 70 60 ## eq = 75o eq = 60o ## 0 500 1000 1500 2000 2500 t lg / l H FIG. 11. Dynamic contact angle of the liquid front in the capillary channel with time. The dynamic contact angle approaches the equilibrium value as the liquid fills the channel and the filling velocity decreases. 1W. Barthlott, M. Mail, B. Bhushan, and K. Koch, “Plant surfaces: [Structures and functions for biomimetic innovations,” Nano Micro Lett.](https://link.springer.com/article/10.1007/s40820-016-0125-1) 9 (2017). 2P. Comanns, “Passive water collection with the integument: mechanisms and their biomimetic potential,” J. Exp. Biol. 221 [, jeb153130 (2018).](https://doi.org/10.1242/jeb.153130) 3E. Arzt, H. Quan, R. M. McMeeking, and R. Hensel, “Functional surface microstructures inspired by nature - from adhesion and wetting principles to sustainable new devices,” Prog. Matter. Sci. [120](https://doi.org/10.1016/j.pmatsci.2021.100823), 100823 (2021). 4Z. Yu, T. Zhu, J. Zhang, M. Ge, S. Fu, and Y. Lai, “Fog harvesting devices inspired from single to multiple creatures: Current progress and future perspective,” [Adv. Funct. Mater.](https://doi.org/10.1002/adfm.202200359) 32 (2022). 5F. Chen, Y. Wang, Y. Tian, D. Zhang, J. Song, C. R. Crick, C. J. Carmalt, I. P. Parkin, [and Y. Lu, “Robust and durable liquid-repellent surfaces,” Chem. Soc.](https://doi.org/10.1039/D0CS01033B) Rev. 51 [, 8476–8583 (2022).](https://doi.org/10.1039/D0CS01033B) 6L. Hou, X. Liu, X. Ge, R. Hu, Z. Cui, N. Wang, and Y. Zhao, “Designing of anisotropic gradient surfaces for directional liquid transport: Fundamentals, [construction, and applications,” Innovation](https://doi.org/10.1016/j.xinn.2023.100508) 4 (2023). 7P. Vineeth, A. Peethan, and S. D. George, “Special wettability for sensing: [Drawing inspiration from nature,” Chem. Eng. J.](https://doi.org/10.1016/j.cej.2023.141615) 459 (2023). 8C. Yan, P. Jiang, X. Jia, and X. Wang, “3D printing of bioinspired textured surfaces with superamphiphobicity,” Nanoscale 12 [, 2924–2938 (2020).](http://dx.doi.org/10.1039/C9NR09620E) 9Y. Gao, Z. Peng, T. Shi, X. Tan, D. Zhang, Q. Huang, C. Zou, [and G. Liao, “Bio-inspired fabrication of complex hierarchical structure in silicon,” J. Nanosci.](http://dx.doi.org/10.1166/jnn.2015.10194) Nanotechnol. 15 [, 5918 – 5923 (2015).](http://dx.doi.org/10.1166/jnn.2015.10194) 10K. Brassat and J. K. N. Lindner, “Nanoscale block copolymer self-assembly and microscale polymer film dewetting: Progress in understanding the role of [interfacial energies in the formation of hierarchical nanostructures,” Adv. Mater. Interfaces](http://dx.doi.org/10.1002/admi.201901565) 7, 1901565 (2020). 11E. Berthier, A. M. Dostie, U. N. Lee, J. Berthier, and A. B. Theberge, “Open microfluidic capillary systems,” Anal. Chem. 91 [, 8739–8750 (2019).](https://doi.org/10.1021/acs.analchem.9b01429) 12K. S. Kwok, Q. Huang, M. Mastrangeli, [and D. H. Gracias, “Self-folding using capillary forces,” Adv. Mater. Interfaces](https://doi.org/10.1002/admi.201901677) 7, 1901677 (2020). 13J. Liu, K. Duan, Q. Zhang, Y. Zheng, H. Cao, and Y. Zhang, “Pore-scale insights into co2-water two-phase flow and implications for benefits of geological [carbon storage,” Adv. Water Resour.](https://doi.org/10.1016/j.advwatres.2024.104780) 191 (2024). 14N. T. Chamakos, D. G. Sema, [and A. G. Papathanasiou, “Progress in modeling wetting phenomena on structured substrates,” Arch. Comput. Methods Eng.](http://dx.doi.org/ 10.1007/s11831-020-09431-3) 28 [, 1647 – 1666 (2021).](http://dx.doi.org/ 10.1007/s11831-020-09431-3) 15P. Yue, C. Zhou, and J. J. Feng, “Sharp-interface limit of the cahn–hilliard model for moving contact lines,” J. Fluid Mech. [645](http://dx.doi.org/ 10.1017/S0022112009992679), 279–294 (2010). 16D. Jacqmin, “Calculation of two-phase Navier–Stokes flows using phase-field modeling,” J. Comput. Phys. [155](http://dx.doi.org/10.1006/jcph.1999.6332), 96–127 (1999). 17D. Anderson, G. McFadden, [and A. Wheeler, “Diffuse-interface methods in fluid mechanics,” Annu. Rev. Fluid Mech.](http://dx.doi.org/10.1146/annurev.fluid.30.1.139) 30, 139 – 165 (1998). 18H.-G. Lee, J. Lowengrub, [and J. Goodman, “Modeling pinchoff and reconnection in a hele-shaw cell. I. The models and their calibration,” Phys. Fluids](http://dx.doi.org/10.1063/1.1425843) 14, [492 – 513 (2002).](http://dx.doi.org/10.1063/1.1425843) 19H.-G. Lee, J. Lowengrub, and J. Goodman, “Modeling pinchoff and reconnection in a Hele-Shaw cell. II. Analysis and simulation in the nonlinear regime,” Phys. Fluids 14 [, 514 – 545 (2002).](http://dx.doi.org/10.1063/1.1425844) 20V. E. Badalassi, H. D. Ceniceros, and S. Banerjee, “Computation of multiphase systems with phase field models,” J. Comput. Phys. [190](http://dx.doi.org/ https://doi.org/10.1016/S0021-9991%0x2803%0x2900280-8), 371–397 (2003). 21Q. Li, P. Zhou, and H. Yan, “Pinning–depinning mechanism of the contact line during evaporation on chemically patterned surfaces: a lattice boltzmann study,” Langmuir 32 [, 9389–9396 (2016).](http://dx.doi.org/ https://pubs.acs.org/doi/10.1021/acs.langmuir.6b01490) 22R. Ledesma-Aguilar, D. Vella, and J. M. Yeomans, “Lattice-boltzmann simulations of droplet evaporation,” Soft Matter 10 [, 8267 – 8275 (2014).](http://dx.doi.org/ 10.1039/c4sm01291g) 23K. A. Raman, R. K. Jaiman, T.-S. Lee, [and H.-T. Low, “Lattice boltzmann simulations of droplet impact onto surfaces with varying wettabilities,” Int. J. Heat](http://dx.doi.org/ 10.1016/j.ijheatmasstransfer.2015.11.088) Mass Transfer [95](http://dx.doi.org/ 10.1016/j.ijheatmasstransfer.2015.11.088), 336 – 354 (2016). 24B. Dong, F. Wang, X. Zhang, and X. Jiang, “3D lattice Boltzmann simulation of droplet evaporation on patterned surfaces: Study of pinning–depinning [mechanism,” Int. J. Multiphase Flow](http://dx.doi.org/10.1016/j.ijmultiphaseflow.2020.103218) 125, 103218 (2020). [25S. Gong and P. Cheng, “Numerical simulation of pool boiling heat transfer on smooth surfaces with mixed wettability by lattice boltzmann method,” Int. J.](http://dx.doi.org/ https://doi.org/10.1016/j.ijheatmasstransfer.2014.08.092) [Heat Mass Transfer](http://dx.doi.org/ https://doi.org/10.1016/j.ijheatmasstransfer.2014.08.092) 80, 206–216 (2015). 26X. Shan and H. Chen, “Lattice boltzmann model for simulating flows with multiple phases and components,” Phys. Rev. E 47 [, 1815 – 1819 (1993).](http://dx.doi.org/ 10.1103/PhysRevE.47.1815) 27Y. Ye, K. Li, Y. Wang, [and T. Deng, “Parallel computation of entropic Lattice Boltzmann method on hybrid CPU-GPU accelerated system,” Comput. Fluids](http://dx.doi.org/ 10.1016/j.compfluid.2014.06.002) 110 [, 114 – 121 (2015).](http://dx.doi.org/ 10.1016/j.compfluid.2014.06.002) 28J. Tölke, M. Krafczyk, M. Schulz, and E. Rank, “Lattice [boltzmann simulations of binary fluid flow through porous media,” Phil. Trans. R. Soc.](http://dx.doi.org/10.1098/rsta.2001.0944) A: Math. Phys. Eng. Sci. [360](http://dx.doi.org/10.1098/rsta.2001.0944), 535 – 545 (2002). 29B. Stahl, B. Chopard, [and J. Latt, “Measurements of wall shear stress with the lattice boltzmann method and staircase approximation of boundaries,” Comput.](http://dx.doi.org/10.1016/j.compfluid.2010.05.015) Fluids 39 [, 1625 – 1633 (2010).](http://dx.doi.org/10.1016/j.compfluid.2010.05.015) 30J. Lu, H. Lei, [and C. Dai, “A simple difference method for lattice boltzmann algorithm to simulate conjugate heat transfer,” Int. J. Heat Mass Transfer](http://dx.doi.org/ 10.1016/j.ijheatmasstransfer.2017.05.115) 114, [268 – 276 (2017).](http://dx.doi.org/ 10.1016/j.ijheatmasstransfer.2017.05.115) 31Y. Yu, Q. Li, Z. Wen, and R. Huang, “Investigation on boundary schemes in lattice boltzmann simulations of boiling heat transfer involving curved surfaces,” Phys. Fluids 32 [, 063305 (2020).](http://dx.doi.org/10.1063/5.0011282) 32M. P. Lautenschlaeger, J. Weinmiller, B. Kellers, T. Danner, and A. Latz, “Homogenized lattice boltzmann model for simulating multi-phase flows in heterogeneous porous media,” Adv. Water Resour. [170](http://dx.doi.org/10.1016/j.advwatres.2022.104320), 104320 (2022). 33Y. Yao, Y. Liu, X. Zhong, and B. Wen, “Multiphase curved boundary condition in lattice Boltzmann method,” Phys. Rev. E [106](https://journals.aps.org/pre/abstract/10.1103/PhysRevE.106.015307), 015307 (2022). 34C. S. Li, R. R. Cai, and L. Z. Zhang, “An improved immersed moving boundary-based curved wetting condition method for the pseudopotential multiphase lattice Boltzmann model,” Phys. Fluids 36 [, 112119 (2024).](http://dx.doi.org/10.1063/5.0238292) 35H. Tanaka and T. Araki, “Simulation method of colloidal suspensions with hydrodynamic interactions: [fluid particle dynamics,” Phys. Rev. Lett.](http://dx.doi.org/10.1103/PhysRevLett.85.1338) 85, 1338 – [1341 (2000).](http://dx.doi.org/10.1103/PhysRevLett.85.1338) 36A. Furukawa, M. Tateno, [and H. Tanaka, “Physical foundation of the fluid particle dynamics method for colloid dynamics simulation,” Soft Matter](http://dx.doi.org/10.1039/c8sm00189h) 14, 3738 [– 3747 (2018).](http://dx.doi.org/10.1039/c8sm00189h) 37S. Aland, J. Lowengrub, and A. Voigt, “Two-phase flow in complex geometries: [A diffuse domain approach,” CMES-Comp. Model. Eng. Sci.](https://doi.org/10.3970/cmes.2010.057.077) 57, 77–106 [(2010).](https://doi.org/10.3970/cmes.2010.057.077) 38J. Yang, Y. Li, and J. Kim, “Modified multi-phase diffuse-interface model for compound droplets in contact with solid,” J. Comput. Phys. [491](http://dx.doi.org/ https://doi.org/10.1016/j.jcp.2023.112345), 112345 (2023). 39F. Zhu, K. Sun, G. Zhang, and J. Yang, “Diffuse-interface modeling and energy-stable numerical framework for the heat transfer-coupled two-phase fluids in contact with solids,” J. Comput. Phys. [524](http://dx.doi.org/https://doi.org/10.1016/j.jcp.2024.113699), 113699 (2025). 40C. Semprebon, T. Krüger, [and H. Kusumaatmaja, “Ternary free-energy lattice Boltzmann model with tunable surface tensions and contact angles,” Phys. Rev.](http://dx.doi.org/10.1103/PhysRevE.93.033305) E 93 [, 1–11 (2016).](http://dx.doi.org/10.1103/PhysRevE.93.033305) 41F. Oktasendra, A. Jusufi, A. R. Konicek, M. S. Yeganeh, J. R. Panter, and H. Kusumaatmaja, “Phase field simulation of liquid filling on grooved surfaces for complete, partial, and pseudo-partial wetting cases,” J. Chem. Phys. [158](http://dx.doi.org/10.1063/5.0144886), 204501 (2023). 42J. R. Panter and H. Kusumaatmaja, “The impact of surface geometry, cavitation, and condensation on wetting transitions: [posts and reentrant structures,” J.](http://dx.doi.org/10.1088/1361-648X/aa5380) Phys.: [Condens. Matter](http://dx.doi.org/10.1088/1361-648X/aa5380) 29, 084001 (2017). 43J. Panter, Y. Gizaw, and H. Kusumaatmaja, “Multifaceted design optimization for superomniphobic surfaces,” Sci. Adv. 5 [, eaav7328 (2019).](http://dx.doi.org/ https://doi.org/10.1126/sciadv.aav7328) 44M. S. Sadullah, J. R. Panter, and H. Kusumaatmaja, “Factors controlling the pinning force of liquid droplets on liquid infused surfaces,” Soft [Matter](http://dx.doi.org/https://doi.org/10.1039/D0SM00766H) 16, [8114–8121 (2020).](http://dx.doi.org/https://doi.org/10.1039/D0SM00766H) 45J. Nocedal, “Updating quasi newton matrices with limited storage,” Math. Comput. 35 [, 951 – 958 (1980).](http://dx.doi.org/ 10.1090/S0025-5718-1980-0572855-7) 46D. C. Liu and J. Nocedal, “On the limited memory bfgs method for large scale optimization,” Math. Program. [45](http://dx.doi.org/10.1007/BF01589116), 503 – 528 (1989). 47J. R. Panter, A. R. Konicek, M. A. King, A. Jusufi, M. S. Yeganeh, [and H. Kusumaatmaja, “Rough capillary rise,” Commun. Phys.](http://dx.doi.org/ https://doi.org/10.1038/s42005-023-01160-w) 6, 44 (2023). [48T. Lee and L. Liu, “Lattice boltzmann simulations of micron-scale drop impact on dry surfaces,” Journal of Computational Physics](http://dx.doi.org/ https://doi.org/10.1016/j.jcp.2010.07.007) 229, 8045–8063 (2010). 49T. Krueger, H. Kusumaatmaja, A. Kuzmin, O. Shardt, G. Silva, and E. Viggen, _The Lattice Boltzmann Method:_ _Principles and Practice_, Graduate Texts in Physics (Springer, 2016). 50T. Lee, “Effects of incompressibility on the elimination of parasitic currents in the lattice boltzmann equation method for binary fluids,” [Computers](http://dx.doi.org/ https://doi.org/10.1016/j.camwa.2009.02.017) & [Mathematics with Applications](http://dx.doi.org/ https://doi.org/10.1016/j.camwa.2009.02.017) 58, 987–994 (2009). 51H. Liang, J. Xu, J. Chen, H. Wang, Z. Chai, [and B. Shi, “Phase-field-based lattice boltzmann modeling of large-density-ratio two-phase flows,” Phys. Rev. E](http://dx.doi.org/10.1103/PhysRevE.97.033309) 97 [, 033309 (2018).](http://dx.doi.org/10.1103/PhysRevE.97.033309) 52L. Zheng, S. Zheng, and Q. Zhai, “Lattice boltzmann equation method for the cahn-hilliard equation,” Phys. Rev. E 91 [, 013309 (2015).](http://dx.doi.org/10.1103/PhysRevE.91.013309) 53M. Bouzidi, M. Firdaouss, and P. Lallemand, “Momentum transfer of a boltzmann-lattice fluid with boundaries,” Phys. Fluids 13 [, 3452–3459 (2001).](http://dx.doi.org/ 10.1063/1.1399290) [54T. Young, “III. An essay on the cohesion of fluids,” Philos. Trans. R. Soc. London](http://dx.doi.org/10.1098/rstl.1805.0005) 95, 65–87 (1805). 55P.-G. De Gennes, “Wetting: [statics and dynamics,” Rev. Mod. Phys.](http://dx.doi.org/ https://doi.org/10.1103/RevModPhys.57.827) 57, 827 (1985). 56S. Liu, S. Li, and J. Liu, “Jurin’s law revisited: [Exact meniscus shape and column height,” Eur. Phys. J. E](https://doi.org/10.1140/epje/i2018-11648-1) 41, 46 (2018). 57L. F. Williams Jr, “A modification to the half-interval search (binary search) method,” in _Proceedings of the 14th annual Southeast regional conference_ (1976) pp. 95–101. 58D. E. Knuth, _The Art of Computer Programming:_ _Fundamental Algorithms, Volume 1_ (Addison-Wesley Professional, 1997). 59S. Mitra, N. S. K. Gunda, and S. K. Mitra, “Wetting characteristics of underwater micro-patterned surfaces,” RSC Adv. 7 [, 9064–9072 (2017).](http://dx.doi.org/ https://doi.org/10.1039/C6RA25888C) 60N. A. Patankar, “Consolidation of hydrophobic transition criteria by using an approximate energy minimization approach,” Langmuir 26 [, 8941–8945 (2010).](http://dx.doi.org/10.1021/la9047424) 61A. Giacomello, M. Chinappi, S. Meloni, and C. M. Casciola, “Metastable wetting on superhydrophobic surfaces: continuum and atomistic views of the cassie-baxter–wenzel transition,” Phys. Rev. Lett. [109](http://dx.doi.org/ https://doi.org/10.1103/PhysRevLett.109.226102), 226102 (2012). 62W. Barthlott, T. Schimmel, S. Wiersch, K. Koch, M. Brede, M. Barczewski, S. Walheim, A. Weis, A. Kaltenmaier, A. Leder, and H. F. Bohn, “The salvinia paradox: superhydrophobic surfaces with hydrophilic pins for air retention under water,” Adv. Mater. 22 [, 2325–2328 (2010).](http://dx.doi.org/https://doi.org/10.1002/adma.200904411) 63D. Gandyra, S. Walheim, S. Gorb, P. Ditsche, W. Barthlott, and T. Schimmel, “Air Retention Under Water by the Floating Fern Salvinia: The Crucial Role of a Trapped Air Layer as a Pneumatic Spring,” Small 16 [, 2003425 (2020).](http://dx.doi.org/https://doi.org/10.1002/smll.202003425) [64M. J. Mayser and W. Barthlott, “Layers of air in the water beneath the floating fern salvinia are exposed to fluctuations in pressure,” Integr. Comp. Biol.](http://dx.doi.org/ https://doi.org/10.1093/icb/icu072) 54, [1001–1007 (2014).](http://dx.doi.org/ https://doi.org/10.1093/icb/icu072) 65M. Amabili, A. Giacomello, S. Meloni, and C. M. Casciola, “Unraveling the Salvinia Paradox: [Design Principles for Submerged Superhydrophobicity,” Adv.](http://dx.doi.org/ https://doi.org/10.1002/admi.201500248) Mater. Interfaces [2](http://dx.doi.org/ https://doi.org/10.1002/admi.201500248), 1500248 (2015). 66A. Inc., “Ansys, fluent,” (2024), http://www.ansys.com/products/fluids/ansys-fluent. 67S. Y. Zhang and J. G. Guo, “Superhydrophobicity and compressive stability of Salvinia surface: [Mechanical analysis and structural design,” Appl. Surf. Sci.](http://dx.doi.org/ https://doi.org/10.1016/j.apsusc.2023.157274) 627 [, 157274 (2023).](http://dx.doi.org/ https://doi.org/10.1016/j.apsusc.2023.157274) 68B. O. Community, _Blender_ _-_ _a_ _3D_ _modelling_ _and_ _rendering_ _package_, Blender Foundation, Stichting Blender Foundation, Amsterdam (2024), http://www.blender.org. 69P. Ditsche, E. Gorb, M. Mayser, S. Gorb, T. Schimmel, [and W. Barthlott, “Elasticity of the hair cover in air-retaining Salvinia surfaces,” Appl. Phys. A Mater.](http://dx.doi.org/https://doi.org/10.1007/s00339-015-9439-y) Sci. Process. [121](http://dx.doi.org/https://doi.org/10.1007/s00339-015-9439-y), 505–511 (2015). 70W. Barthlott and C. Neinhuis, “Purity of the sacred lotus, or escape from contamination in biological surfaces,” Planta 202 [, 1–8 (1997).](http://dx.doi.org/10.1007/s004250050096) 71C. Pooley, H. Kusumaatmaja, [and J. Yeomans, “Modelling capillary filling dynamics using lattice boltzmann simulations,” European Physical Journal: Special](http://dx.doi.org/10.1140/epjst/e2009-01012-0) Topics 171 [(2009), 10.1140/epjst/e2009-01012-0.](http://dx.doi.org/10.1140/epjst/e2009-01012-0) 72E. W. Washburn, “The dynamics of capillary flow,” Phys. Rev. 17 [, 273–283 (1921).](http://dx.doi.org/10.1103/PhysRev.17.273) 73N. Bala, M. Pepona, I. Karlin, H. Kusumaatmaja, [and C. Semprebon, “Wetting boundaries for a ternary high-density-ratio lattice boltzmann method,” Phys.](http://dx.doi.org/ 10.1103/PhysRevE.100.013308) Rev. E 100 [, 013308 (2019).](http://dx.doi.org/ 10.1103/PhysRevE.100.013308) 74G. Wells, E. Ruiz Gutierrez, Y. Le Lirzin, A. Nourry, B. Orme, M. Pradas, and R. Ledesma-Aguilar, “Snap evaporation of droplets on smooth topographies,” Nature Communications 9 [(2018), 10.1038/s41467-018-03840-6.](http://dx.doi.org/10.1038/s41467-018-03840-6) 75Y. Cheng, D. Rodak, C. Wong, [and C. Hayden, “Effects of micro- and nano-structures on the self-cleaning behaviour of lotus leaves,” Nanotechnology](http://dx.doi.org/ 10.1088/0957-4484/17/5/032) 17, [1359 – 1362 (2006).](http://dx.doi.org/ 10.1088/0957-4484/17/5/032) [76G. Carbone and L. Mangialardi, “Hydrophobic properties of a wavy rough substrate,” The European physical journal. E, Soft matter](http://dx.doi.org/ 10.1140/epje/e2005-00008-y) 16, 67–76 (2005). 77Y. Bami Chatenet and S. Valette, “Elucidating the lotus and rose-petal effects on hierarchical surfaces: Study of the effect of topographical scales on the [contact angle hysteresis,” J. Colloid Interface Sci.](http://dx.doi.org/ 10.1016/j.jcis.2024.07.114) 676, 355 – 367 (2024). 78B. Mehrjou, Y. Wu, P. Liu, G. Wang, and P. K. Chu, “Design and properties of antimicrobial biomaterials surfaces,” Adv. Healthcare [Mater.](http://dx.doi.org/10.1002/adhm.202202073) 12, 2202073 [(2023).](http://dx.doi.org/10.1002/adhm.202202073) 79S. V. Oopath, A. Baji, M. Abtahi, T. Q. Luu, K. Vasilev, and V. K. Truong, “Nature-inspired biomimetic surfaces for controlling bacterial attachment and [biofilm development,” Adv. Mater. Interfaces](http://dx.doi.org/ 10.1002/admi.202201425) 10, 2201425 (2023). [80B. Jin and J. He, “Bio-inspired nanoarchitectonics of re-entrant geometries toward transparent omniphobic surfaces,” ACS Applied Optical Materials](http://dx.doi.org/10.1021/acsaom.3c00238) 1, 1620 [– 1626 (2023).](http://dx.doi.org/10.1021/acsaom.3c00238)

섹션 본문 135문단 · 68,930자

(제목 없음)

1We develop a diffuse solid method that is versatile and accurate for modeling wetting and multiphase flows in highly complex geometries.In this scheme, we harness N + 1-component phase field models to investigate interface shapes and flow dynamics of N fluid components, and we optimize how to constrain the evolution of the component employed as the solid phase to conform to any pre-defined geometry.Implementations for phase field energy minimization and lattice Boltzmann method are presented.Our approach does not need special treatment for the fluid-solid wetting boundary condition, which makes it simple to implement.To demonstrate its broad applicability, we employ the diffuse solid method to explore wide-ranging examples, including droplet contact angle on a flat surface, particle adsorption on a fluid-fluid interface, critical pressure on micropillars and on Salvinia leaf structures, capillary rise against gravity, Lucas-Washburn's law for capillary filling, and droplet motion on a sinusoidally undulated surface.Our proposed approach can be beneficial to computationally study multiphase fluid interactions with textured solid surfaces that are ubiquitous in nature and engineering applications.

I. INTRODUCTION

2Inspired by the extraordinary diversity of surface structures adapted to manipulating liquids in nature 1,2 , there is a rapid and increasing drive to fabricate complex physical and chemical textures with functional wetting properties 3 .This is particularly prevalent in the field of surface science, which has seen a range of recent innovations across fog harvesting 4 , robust liquid-repellent surfaces 5 , directional wetting 6 , and wettability control for sensing 7 .This has been enabled by advances in fabrication methods of increasingly complex surface microstructures, such as additive manufacturing (3D printing) 8 , photolithography 9 and self assembly 10 .However, the interest in understanding wetting interactions with complex surface structures is not only limited to fundamental wetting physics, but spans a diverse range of fields, from open microfluidics in biomedicine 11 , to sub-milimeter manufacturing in engineering 12 , and carbon storage in geology 13 .

3To complement experimental and theoretical efforts, there is a need for efficient and accurate simulation methods that are capable of modeling the statics and dynamics of capillary phenomena on highly complex solid structures.Ideal simulation methods must achieve the following aims: (1) accuracy in modeling surface tensions and contact angles, (2) generality and accuracy in describing the solid geometry, and (3) computational efficiency.In this work, to achieve these aims, we present the Diffuse Solid Method which is applied both to the Lattice Boltzmann Method (for fluid dynamics), and to a phase-field energy minimization method (for static equilibria).In this, we use a N + 1-phase diffuse interface method that models N evolving fluid components and 1 solid component that we limit the evolution of.A principal outcome is to show how to control this partial evolution of the solid to con-form to any user-defined geometry, without compromising the accuracy of the liquid contact angles.While we demonstrate the scheme for N = 2, the scheme can be easily generalized to an arbitrary number of components.Importantly, the interfacial energy balance is intrinsically accounted for by the phase field free energy, and no separate scheme is required for the fluid-solid wetting boundary condition.

4Previously, a number of alternative simulation methods have been developed towards achieving accurate wetting simulations on curved and complex boundaries.At the highest level, these simulation strategies are split into two classes: sharp interface models, where the fluid interface is modeled as infinitely thin and explicitly tracked during simulations 14,15 ; and diffuse interface models, where each fluid phase is associated with a smoothly varying order parameter, and fluidfluid interfaces have a characteristic thickness 16,17 .Sharp interface models are often more efficient computationally, however, they are cumbersome for problems that entail topological changes in the fluid interface shapes, such as due to droplet break-up and coalescence, as well as interface pinning and depinning events [17][18][19][20][21] .Since these effects are essential to capture for the problems of interest in this work, here we shall focus on diffuse interface models.

5For diffuse interface models, there are already wellestablished methods for incorporating fluid-solid interactions on flat surfaces [22][23][24][25] , including liquid contact angle and contact line pinning and depinning due to regions of different surface chemistry.However, current extensions to complex, and often curved, solid shapes are either cumbersome or introduce unwanted artifacts.This is a principal issue when employing diffuse interface models on methods that are based on fixed, regular grids, such as the Lattice Boltzmann Method.However, it is desirable to use such methods as they are highly efficient for parallel and GPU computing, and hence are becoming increasingly popular for solving large-scale simulation challenges [26][27][28] .

6Within the Lattice Boltzmann Method, a common approach to multiphase flows on curved and complex solids is to treat the surface via the conceptually simple staircase approximation, [29][30][31] , or similarly, as in the case of the Homogenised Lattice Boltzmann Method, by defining voxellated regions of space within the solid body to be momentum sinks 32 .This, however, leads to interface pinning at the corners of the approximated shapes, and in problems where surface energies are important (such as capillary rise as we shall demonstrate), the solid-fluid interaction area is dramatically overestimated.

7A key strategy to enable simulations on solid surfaces which do not conform to the underlying (Eulerian) mesh, is the Immersed Boundary Method, in which the solid surface is described via a superimposed non-conformal (Lagrangian) mesh.Recent advances have overcome core challenges to this method for use in multiphase flows (namely poorly obeyed mass conservation and limited stable fluid density ratios) that now allow accurate wetting boundary conditions 33,34 .Nonetheless, an inherent downside of the Immersed Boundary Method is the need for additional interpolation steps between the Eulerian and Lagrangian meshes.

8A contrasting approach which entirely avoids the explicit description of the solid boundary is Fluid Particle Dynamics, in which the solid is modeled as a highly viscous liquid 35,36 .A core advantage of this method is that no special wetting boundary conditions are required: the correct contact angles emerge implicitly from the diffuse interface interactions.Although this method is successful for, e.g.colloidal systems, where the solids are always spherical, this cannot achieve solid geometries with arbitrary user-defined shapes.

9Sitting between the solid and liquid methods is the Diffuse Domain approach, currently employed in Cahn-Hilliard and Navier-Stokes solvers 37 .In this, the solid domain is identified with an order parameter, exactly as for the fluid phases.In contrast to Fluid Particle Dynamics however, the solid order parameter is not updated in time, and is instead fixed upon initialization.In order to accurately capture the contact angles on the solid phase, it is essential to have the correct solid-fluid diffuse interfacial profiles.Recently, this has been achieved through using a pre-simulation stage to relax the solid order parameter via a diffusion process 38,39 .However, the Diffuse Domain approach suffers from an inherent limitation: relaxing the solid diffuse interface also allows the overall shape of the solid object to evolve away from the desired geometry.A principal achievement in our work is to develop a method of constraining the solid morphology, while allowing the correct diffuse interface to form.This method is essential in order to accurately model wetting on complex geometries, and to allow implementation in free energy minimization and the Lattice Boltzmann methods.

10Following the description of our Diffuse Solid Method in Sec.II, we rigorously demonstrate it's broad applicability and accuracy across a range of benchmarks.In Sec.III, static phenomena are investigated, featuring droplets on curved surfaces as a test of the contact angle accuracy, equilibrium capillary rise to test the energy contribution accuracy, and critical intrusion pressures on micropillared surfaces as a test of the pressure implementation.A case study is then shown, to show how our method can be applied to understand the wetting properties of nature-inspired surface structures.In Sec.IV, we advance to study dynamic phenomena via the Lattice Boltzmann Method: capillary filling in micro-channels, and droplet motion on an undulating surface.

A. Phase Field Energy Minimization

11The diffuse solid method uses a phase field model with N + 1 immiscible components in which the local composition of each component is represented by an order parameter C n , where n = {1, • • • , N + 1}.Here we focus on N = 2 for concreteness.In this context, we designate one component, C 1 , as a solid phase and the rest, C 2 and C 3 , as fluids which shall be referred to as liquid and gas phases, respectively.

12The ternary model (N + 1 = 3) used in this work is based on the work of Semprebon, et al. 40 , in which the thermodynamics of the system are described by a free-energy functional of the fluids that captures the immiscibility of the fluid components and the surface tensions between different fluids.The phase interface is modelled using a diffuse interface with a finite thickness, which yields a smooth transition region between two different phases.

13For the phase field energy minimization approach, the total free energy of the system can be written as

14where all of the energy densities are integrated over the system's volume, V .The bulk energy density of the phases, Ψ b , is modeled using a double well potential

15Here, the κ n 's are tunable parameters related to the interfacial tension between different fluids.The form of potentials chosen in this model has two minima at C n = 0 and 1.We then relate C n = 0 to indicate the absence of component n and C n = 1 to indicate pure component n.We also normalise the total composition to unity so that

16which reduces the number of the order parameter in the system that needs to be optimised.It is worth noting that this constraint allows C 1 and C 2 , in principle, to have any value.Ψ i is referred to as the gradient energy density, which accounts for the energy penalty for having interfaces.The gradient term takes the form

17where κ ′ n 's are also tunable parameters whose values determine the contribution of the gradient terms to the total free energy.

18In combination, Ψ b and Ψ i energetically penalize the formation of interfaces between each pair of phases, such that the surface tension between phases n and m, γ nm , is given by

19α is the characteristic interface width,

20that describes the smooth variation of C n across an interface.For a planar interface (e.g.spanning the z − y plane) between phases n and m, this profile takes the form

21Here, the value of C n varies between 0 and 1 across the interface, and we take the value of C n = 0.5 as the interfacial boundary between the two phases.We can further use the definition of α to simplify the simulation variables by relating κ ′ {n,m} and κ {n,m} via

22In this work, we take κ ′ n = α 2 κ n and use α = 1 (this and all other parameters are in lattice units, L.U., unless otherwise stated).While we will call α the interface width, it is noted that for α = 1, the transition between C n = 0.1 and C n = 0.9 occurs over a range of 4.4α.

23In order to relate the phase field model parameters κ to physical interfacial characteristics (namely the surface tensions γ), Eq. ( 4) can be inverted to yield,

24Ψ cs is the constraining energy density that allows the system to preserve either the pressure difference between liquid and gas phases, ∆P, or the volume of the liquid phase, V l , during the minimisation.Following Oktasendra, et al. 41 , when the former is desired, the constraining potential takes the form,

25whereas for the latter,

26Here, k cs > 0 is a constant, and V 0 is the target volume.The volume of the liquid phase, V l can be calculated as

27Thus far, the described model is similar to that we have previously published for phase field energy minimisation [41][42][43][44] .

28For the diffuse solid method, a key addition is the confining potential Ψ cf .This potential acts only on the 'solid' phase, which throughout we choose to be phase 1. Ψ cf must achieve two purposes (1) to confine phase 1 to a defined region of arbitrary geometry (which we call the 'solid region', S), (2) to allow the interface of phase 1 to relax into the equilibrium diffuse interfacial profile.This latter point is essential to accurately define the surface tensions with the solid phase, as defined in Eq. ( 4).These can both be achieved by defining

29∈ S, 0 otherwise, (11) where r defines the position of each point in the system, and

30β is a positive variable controlling the strength of the potential.This form of Ψ cf energetically penalizes the solid phase from moving out of the solid region, and likewise energetically penalizes fluid phases from entering the solid region, so centering the solid-fluid interface at the solid region boundary.In the simulation, we discretize Ψ in Eq. (1) into L x × L y × L z cubic lattice points (called nodes), in which each node is associated with a value of {C n } i jk , where the indices i, j, k indicate the spatial dimension in the x-, y-, and z-directions.The grid spacing, G, is set to be equal to the interface width α, which is taken to be 1.Depending on the case being investigated, we employ two types of boundary conditions: the periodic and symmetry boundary conditions.The energy minimization is then carried out using the computationally efficient L-BFGS algorithm 45,46 , optimized for both memory usage and processing speed.During the minimization routine, the value of {C n } i jk of each node is updated in order to achieve the minimum total energy configuration.

31The implementation of the diffuse solid method during the energy minimization process in the simulation is carried out in two stages, as illustrated in Fig. 1.In the first stage, energy minimization is performed to create a solid geometry with a smooth and diffuse solid interface 47 .The solid is initialized as component 1 (C 1 ) within the desired geometry.The remaining system is filled with pure gas (C 3 ), and the liquid phase (C 2 ) is fixed at 0 (Fig. 1(a)).The total free energy is subsequently minimized using the L-BFGS algorithm.During this stage, the energy minimization process is truncated at a specific number of iterations (typically, n iter = 10) to allow the solid-gas diffuse interface to form without strongly perturbing the intended solid geometry's shape (Fig. 1(b)).Once this stage is complete, the liquid phase (C 2 ) is initialized in the system according to a predefined configuration (Fig. 1(c)).The solid phase (C 1 ) is now fixed, while the liquid (C 2 ) and gas (C 3 ) phases are allowed to vary.The total free energy is now minimized under these constraints (Fig. 1(d)).Convergence of the minimization process is determined based on an rms gradient condition: convergence is achieved when |∇Ψ|< 10 −5 .

32The determination of n iter , α, β , and the domain dimensions are chosen to balance the accuracy of the solid geometry, accuracy of the wetting properties described in Section III, and computational time.A systematic investigation of the impact of each of these parameters is performed in Supplementary Material, Section A.

B. Lattice Boltzmann Method

33Next, we will describe how the diffuse solid method can be integrated with lattice Boltzmann method to model wetting dynamics involving solid boundaries of complex shapes.Generally, the continuum equations of motion solved by the lattice Boltzmann method comprise of three equations.First, the continuity equation

34which describes the conservation of mass in a fluid with density ρ and velocity v.

35Second, the incompressible Navier-Stokes equation

36which describes the conservation of momentum.Here, P denotes the pressure, η is the dynamic viscosity and F = F s + F g is the body force applied to the fluid.F s is the surface tension force between the two fluid components in the system and F g is the external body force (e.g., gravitational force).Third, we need another equation to enforce the phase separation of the two fluid components and evolve their interface shapes.The Cahn-Hilliard equation can be written in terms of the relevant order parameter C i :

37We will assume the mobility M is a constant for simplicity, and the chemical potential µ i = δ Ψ δC i can be derived from the free energy of the system.

38As with the free energy minimization scheme, there are two stages of computations when employing the diffuse interface method.The first stage is to create the smooth and diffuse solid interface.This can be done by employing an energy minimization scheme as discussed in Sec.II A. Alternatively, we can also use lattice Boltzmann approach to relax the C 1 − C 3 (solid-gas) interface to its tanh profile.To do this, we can write the free energy from Eq. (1) using the constraint

39where the constraining term, Ψ cs , is ignored because the lattice Boltzmann method conserves total volumes.The additional final terms using the Heaviside step function, H, and parametrised by Ω 48 are used to prevent the order parameter deviating from the range C 1 ∈ (0, 1), which can improve simulation stability during the solid initialisation when the value of β in Ψ cf (r) is large.For this initialization stage, for simplicity, we set the density, viscosity and mobility to be uniform everywhere with ρ = 1, η = ρ 3 (τ − 0.5) = 1 6 obtained by setting τ = 1, and M = (τ g −0.5) 3

40= 1 6 obtained by setting τ g = 1.As is common in lattice Boltzmann method 49 , τ and τ g are relaxation parameters that are related to the fluid viscosity and mobility parameter.

41Given the free energy model in Eq. ( 55), the surface tension force and chemical potential are given by

42If the solid has sharp features or corners, to avoid numerical instabilities, we can carry out the diffuse solid initialization in two steps.First, we perform a short lattice Boltzmann run, typically with larger β and Ω in Eq. ( 55), and then redefine the solid locations as the positions where C 1 > 0.5.Typically, this step is only necessary where the solid geometry has corners with a radius of curvature that is comparable to 4.4α.Following this, a further initialization run is performed, where the diffuse solid is evolved using the updated solid locations.After this point, the order parameter C 1 is not evolved anymore.

43The second stage of the simulations is to evolve the fluid order parameters (C 2 and C 3 ) for a fixed diffused solid (C 1 order parameter distribution) using the continuity, Navier-Stokes and Cahn-Hilliard equations.Starting from Eq. ( 1), we can leave out the (now constant) terms in C 1 and apply the constraint that

44The benefit of this approach is that the surface tension between fluids C 2 and C 3 and the contact angle of the C 2 component with the diffuse solid are given from the following relations (see Supplementary Material, Section B)

45From the definition of the free energy in Eq. ( 19), we are able to derive the surface tension force for the Navier-Stokes equation and chemical potential for the Cahn-Hilliard equation, given by

46with

47Now, we will give specific details for the lattice Boltzmann 49 implementation in this study, which is used to discretise equations ( 12), ( 13) and (14).The evolution of the macroscopic variables is expressed using distribution functions f i which are stored over a discrete regular grid.Distributions can travel to adjacent grid points in a discrete number of velocity directions c i with weightings ω i in each direction.In this study, we use the D2Q9 stencil with

48and

49For simplicity, we choose the BGK collision operator, although extension to other collision models is possible.This choice leads to the following lattice Boltzmann equation

50It is customary in lattice Boltzmann to take δ t = 1.

51Given that we solve the incompressible Navier-Stokes equation ( 13), f eq i takes the form 48,50

52where c 2 s = 1 3 is the sound speed and

53accounts for the advective terms in the Navier-Stokes equation.The form of the force F i is given by 48,50,51

54.

55Although in principle incompressibility is not vital for this method, it has been shown to reduce spurious velocities around the diffuse interface 50 and this form of f eq can aid with stability when a density ratio between fluid components included.This ensures that our model can be compatible with problems where inertia is important.Directional gradients ∇ are given by a second order isotropic central difference scheme.Moments of the distribution function provide the hydrodynamic pressure and velocity

56A consequence of choosing f eq i from Eq. ( 26) is that the fluid density no longer arises from the distribution functions f i .Instead, it is a function of the fluid concentration, which evolves through the Cahn-Hilliard equation (14).The lattice Boltzmann equation for the Cahn-Hilliard equation is given by

57with the equilibrium distribution g eq i given by 52

58The zeroth moment of the distribution function gives the fluid concentration

59The mobility appearing in the Cahn-Hilliard equation is given by

60In our simulations, we relate the fluid density and viscosity as functions of the concentration as given by

61Moreover, in our lattice Boltzmann scheme, to implement noslip boundary condition at the solid boundary, we apply an interpolated bounce back boundary condition 53 .The interface distance for the interpolation is approximated by assuming a the fluid concentration follows a tanh profile normal to the interface

62The distance to the interface along an arbitrary direction d is then given by

63where n = ∇C n /|∇C n | is the normal direction to the interface.Pseudocode to describe the full simulation procedure is provided in the Supplementary Material, Section C.

III. PHASE FIELD ENERGY MINIMIZATION A. Liquid Contact Angle

64We first benchmark the Diffuse Solid Method by measuring the contact angle of liquid wetting on both flat and curved solid surfaces within 2-dimensional (2D) and 3-dimensional (3D) frameworks.For wetting on flat surfaces, we simulate a liquid droplet deposited on a chemically homogeneous solid surface.The simulation domain for the 2D and 3D cases are 300 × 100 and 300 × 300 × 80, respectively.A sharp-interface solid surface of thickness 10 is initialised at the base and allowed to evolve into a diffuse interface during the minimisation process.A sessile liquid drop of radius 30 is then placed on this diffuse-interface solid, and the system is further minimized until equilibrium is achieved, yielding the final configuration shown in Fig. 2(a,b).Periodic boundary conditions are applied along the horizontal directions, while symmetry boundary conditions are enforced in the vertical direction (Fig. 2(a,b)).

65For wetting on curved solid surfaces, we position a spherical solid particle of radius 30 at the liquid-gas interface within simulation domains of 100×100 (2D) and 60×60×100 (3D).The solid particle is initialised using a staircase approximation and undergoes relaxation steps to form a smooth surface.The liquid is then introduced into the system.In the 2D case, periodic boundary conditions are applied along the horizontal directions, while symmetry boundary conditions are enforced in the vertical direction to ensure a flat liquid-gas interface, as shown in Fig. 2(c).For the 3D case, computational efficiency is optimized by simulating only a quarter of the sphere, with symmetry boundary conditions imposed in all directions (Fig. 2(d)).

66The parameters γ 23 = 8/9, γ 12 = 1, β = 10 and n iter = 10 are used for these benchmark simulations.The contact angles are varied between 10 • and 150 • to show a broad applicability of our method.The measurement of the contact angle is done by fitting the liquid-gas interface line, for the droplet case, or the solid interface line, for the spherical particle case, to a circle, both for the 2D and 3D cases.Note that, as shown in Fig. 2(a) and (c), there is small, localized distortion at the three phase contact line.However, this deformation has negligible effect as the droplet or the particle size is always much larger, hence is ignored in the contact angle measurement.

67The comparison between the input (θ analytical from Eq. ( 20)) and measured (θ measured ) contact angles are shown in Fig. 2(e).From this figure, it can be seen that the simulation results are in good agreement with the analytical prediction for a wide range of contact angles.We note that for low contact angles (θ ≤ 10 • ) in the spherical case, the three-phase contact line meets near the north pole of the sphere, and due to the diffuse interface, the accuracy of the contact angle measurement reduces, yielding a relatively large error.Otherwise, we find that the errors of the presented data are typically less than 2 • .Similar accuracy for the contact angle is also obtained for the lattice Boltzmann method, as illustrated in the Supplementary Material, section D.

68At this stage it is instructive to compare the accuracy of the contact angles when using the Diffuse Solid Method, with the widely-used staircase approximation.To achieve this, we perform a contact angle hysteresis test, whereby the volume of a sessile droplet is incrementally increased and then reduced, with the contact angle measured at each step.This procedure is performed on a planar surface at varying inclination angles relative to the underlying mesh, from 0 • to 45 • (all other angles being equivalent to this range).Furthermore, this test is carried out at four representative analytical contact angles, θ analytical = 30 • , 60 • , 90 • , and 120 • .

69In Fig. 2(f) and (g), an example is shown of a 2D drop with θ analytical = 30 • , on an surface of inclination angle 40 • , for the staircase approximation and diffuse solid method respectively.Magnifications of the surfaces show the roughness introduced by the staircase approximation, compared to the smooth surface when using Diffuse Solid Method.In Fig. 2(h), the results of the contact angle hysteresis test are shown.For the staircase approximation, the mean measured contact angle θ measured , indicated by the black dashed line, deviates substantially from θ analytical by up to 25 • .The grey area indicates the range of θ measured observed, which has a maximum value of 20 • .Both of these effects are caused by the underlying surface roughness, by increasing the contact area of the drop compared to a flat plane, and introducing artificial pinning.In comparison, for the diffuse solid method, the mean θ measured , indicated by the solid blue line, deviates by a maximum of 0.4 • , with a maximum range (light blue area) of 2 • .Thus, the diffuse interface method is effective at creating smooth, off-lattice surface geometries.

B. Capillary Rise

70We next consider the fundamental wetting phenomenon of capillary rise of a liquid in a smooth cylindrical tube 54,55 .The equilibrium rise height of liquid within the tube can be understood from an energetic perspective.On changing the height of liquid in the tube, the total energy change of the system, ∆E, can be described as a sum of interfacial (∆E surface ) and gravitational (∆E g ) contributions,

71∆E surface can be broken into a sum of individual interfacial energy contributions,

72where ∆A lg , ∆A ls and ∆A gs are the area changes of the liquidgas, liquid-solid and gas-solid interfaces respectively, and γ lg , γ ls , and γ gs , are the surface tensions of the same respective interfaces.If we assume a dry capillary tube as an initial state, then we have ∆A gs = −∆A ls = −2πr c (h c + h m ), where, as shown in Fig. 3(a), r c is the tube radius, h c is the capillary rise height (here defined from the bottom of the tube to the bottom of the meniscus) and the meniscus height h m .Famously, Jurin's Law describes the equilibrium rise height in such a system, but it has only recently been shown that the precise rise height that Jurin's law describes is the mean rise height h56 :

73The rise heights h c and h m cannot in general be analytically determined, and likewise neither can the energetic contributions in Eq. (40).However, as shown previously, these quantities can be determined numerically by solving the Young-Laplace equation for this axisymmetric system 56 ,

74where λ c is the capillary length (λ c = γ lg /ρg).Here, as in ref. 56 , the shooting method is employed in MATLAB to solve the meniscus profile, rise heights, and energetic contributions.

75To evaluate our simulations against this established numerical method, we begin by initialising a cylindrical tube with an inner radius of r c using a staircase approximation of a hollow cylinder with a sharp interface.We set β = 10 in the confining potential and n iter = 10 steps to smooth out the solid interface.The gravitational force is applied as a body force per unit volume, F b = ρg, in the vertical direction after the liquid phase is initialised in the system.This gravitational force enters the total free energy functional as an additional external energy term

76where f g is the gravitational force density.We use water as the rising liquid with properties: ρ = 1000 kg m −3 and γ lg = 0.0728 N m −1 .The gravitational acceleration is g = 9.81 m s −2 .All of these physical parameters are then converted into simulation units via the gravitational force density: f g = ρg(γ 23 P ′ 2 )/(γ lg P 2 ), where P ′ and P are the length scale of the capillary tube in physical and simulation units, respectively, and γ lg and γ 23 are the liquid-gas interfacial tensions in physical and simulation units, respectively.We use these values in simulations: γ 23 = 8/9, P = 80 and P ′ = 10 −2 m.

77To reduce the computational cost, we only simulate half of the cylinder and apply symmetry boundary conditions along all directions.The typical simulated capillary rise in a smooth cylinder tube is shown in Fig. 3(a).Figure 3(b) presents the measured rise height of liquid in a smooth cylinder tube for varying wetting contact angles and tube radii (see inset).The simulations accurately capture the dependence of the rise height on θ and r c , demonstrating a strong agreement with the numerical solution of Eq. (43).Additionally, we analyzed the variations in interfacial energy, ∆E surface , and gravitational potential energy, ∆E g , obtained from simulations for different contact angles, comparing them with the theoretical prediction of Eq. ( 40), as shown in Fig. 3(c).The change in interfacial energy is computed from the bulk and squared gradient terms within the free energy model in Eq. (1).The change in gravitational potential energy is derived from the gravitational force term in Eq. ( 44).The energy calculations show excellent agreement with theoretical predictions.

C. Critical Pressure on Micropillared Surfaces

78We study the wetting transition on superhydrophobic surfaces, also known as the Cassie-Baxter to Wenzel transition.In this, a liquid droplet transitions from a state suspended on top of the surface texture to a collapsed state where the droplet fully wets the structure.This is associated with a reduction in the apparent contact angle of the droplet and a loss of superhydrophobicity.The wetting transition occurs if the pressure difference between the liquid and gas is larger than a critical pressure given by the surface textures, which depends upon the equilibrium contact angle.At higher equilibrium contact angles, it is harder for the liquid to enter the texture, resulting in a higher critical pressure.We consider a 2D system where the solid is textured with rectangular micropillars, as shown in Fig. 4(a).We simulate a liquid layer suspended on top of two pillars separated by a gap s instead of simulating a whole droplet on a patterned surface (see enlarged view in Fig. 4(a)).We make this approximation assuming that the droplet size is much larger than the pillar size and spacing.In our simulations, these values are used: a = 40, h = 170, b = 160, β = 10 and n iter = 10.The system is fitted into a simulation box of 160 × 200.We incorporate pressure into the system by applying a pressure difference between the liquid and gas phase, ∆P, in the free energy functional in Eq. ( 8).In order to obtain an accurate critical pressure, we apply a binary search algorithm 57,58 around the critical pressure value with a tolerance level of 10 −4 .

79Theoretically, for the 2D model system used here, the critical pressure is given by [59][60][61]

80where γ lg is the liquid-gas surface tension; θ is the equilibrium contact angle of the droplet on the corresponding flat surface, and s = b − a is the wall-to-wall spacing between two adjacent pillars.

81The equilibrium shapes of the liquid-gas interface at the critical pressure are shown in the snapshots of Fig. 4(b), in which concave and convex menisci occur due to the liquidsolid surface tension for θ = 60 • and θ = 112 • , respectively.At the transition (∆P > ∆P c ), the suspended liquid-gas interface abruptly collapses, enabling the liquid phase to displace the trapped gas and completely fill the gap between the pillars.The critical pressure dependency on the equilibrium contact angle, θ , and the pillar spacing, s, is shown Fig. 4(b).As predicted by Eq. ( 45), the critical pressure is linearly dependent on cos θ .For θ < 90 • , the critical pressure is negative, indicating that the energy barrier is low and the transition to the collapsed state is energetically favourable.On the contrary, the positive critical pressures for θ > 90 • suggest the system has a higher energy barrier, making the transition not energetically favourable to occur unless some external perturbations from the liquid pressure are added to the system.As the separation increases, the critical pressure reduces making it more favorable for the liquid to transition to a collapsed state.The simulated critical pressures are in good agreement with the prediction.

D. The Salvinia Paradox

82Having validated the Diffuse Solid Method, we now demonstrate its utility in representing real structures of complex geometry through a case study of the so-called 'Salvinia Paradox'.First investigated by Barthlott et al. in 2010 62 , the Salvina Paradox concerns the wetting properties of the hairlike structures that coat the leaves of the Salvina water fern.In the species Salvina molesta, these mm-long hairs have a complex, 'eggbeater' geometry, which is modelled in Fig. 5(a).The habitat of Salvina molesta is on the surface of rivers and lakes, and plants are susceptible to being submerged.However, the plants also require an air layer close to the leaf (plastron) to be maintained gaseous exchange.The eggbeater hairs are an adaptation that allow the plastron to be maintained when submerged.The four arms are coated in a hydrophobic wax, and through their physical structure maintain a superhydrophobic suspended state when submerged.This resists the intrusion of water into the plastron.The paradox arises because the uppermost tip of the hair is hydrophilic, a feature which conventionally is assumed to be detrimental to superhydrophobicity.However, it has been shown experimentally that whereas the hydrophobic structured base resists the intrusion of water, the hydrophilic tip resists the exit of air as bubbles from the plastron.These two different wetting behaviours are suggested to work synergistically to maintain the plastron, even in flowing water 62 .

83To measure the effectiveness of these structures at resisting breakdown of the plastron, it is useful to consider the extrusion and intrusion pressures, the pressures at which the liquid- Ext , intrusion pressure ∆P Int , and difference between these pressures respectively.Boundaries between the two collapse modes (Tip-mediated and Base-mediated) are indicated by a thick blue line (extrusion) and thick red line (intrusion).(f) A 2D slice through the Salvinia hair, showing how the liquid-gas interface changes across the pressure range between the intrusion and extrusion pressures.Interfaces are shown in blue at equal increments of ∆P ′ = 0.12.The hydrophilic tip is shown in red, the hydrophobic base in grey.

84gas interface either detaches upwards from the tip of the structure, or moves spontaneously down the structure towards the base respectively.To date, these properties have largely been investigated experimentally on plant samples, with reported extrusion pressures of (-6.1 ± 0.9) kPa 63 , and intrusion pressures of (12 ± 2) kPa 64 .However, there remains a lack of fundamental understanding about the relationship between the structure, surface wettability, and the extrusion/intrusion pressures.Towards achieving this understanding, some progress has been made via computational studies.The extrusion and intrusion characteristics on a 2D simplified geometry showed how the interaction between wettability patterning and structure enhanced the difference between extrusion and intrusion pressures 65 .Meanwhile more recently, the apparent contact angle of the suspended state was investigated, alongside some aspects of the intrusion characteristics using the proprietary software Ansys Fluent 66 , however wettability patterning was not considered 67 .

85Using the Diffuse Solid Method, the extrusion and intrusion of water on the complex geometry with patterned wettability is investigated.To begin with, a model of the geometry was designed in Blender 68 (although any suitable modelling or computer-aided design (CAD) software is appropriate).The triangulated mesh of this model is shown in Fig. 5(a).Within the computational domain of the phase field model, the face and vertex data of the triangulate mesh was then used to distinguish the solid interior and exterior, and so set up the confining potential Ψ cf described in Eq. (11).Following the solid relaxation step, the resultant solid geometry is shown in Fig. 5(b), in which the hydrophobic base of contact angle θ base is shown in grey, and the hydrophilic tip of contact angle θ tip is highlighted in red.

86When choosing the dimensions of the model hair and domain size, it is recognised that real plant specimens show substantial variability in the hair geometry and arrangement 69 .Key geometric parameters commonly examined are the hair height H s , outermost diameter D s , and centre-to-centre distance C s , indicated in Fig. 5(b).Here, for this demonstration of the Diffuse Solid Method, we opted for a typical hair geometry characterised by D s /C s = 0.77, and H s /C s =0.99.Periodic boundary conditions were imposed in the x and y directions, with symmetry boundary conditions in the z directions.

87To examine the extrusion pressure, ∆P Ext , a liquid layer was initialised in contact with the tip of the hair, and the energy of the system minimised.The pressure in the liquid phase was reduced relative to the gas phase and the system energy reminimised.This step was repeated with variable steps in the pressure changes to locate the pressure at which the interface detached from the top of the structure: ∆P Ext .To explore the impact of the base and tip wettability on ∆P Ext , this process was repeated across a range of θ base and θ tip from 20 • to 160 • , capturing the range of biologically relevant contact angles.

88The variation of ∆P Ext with θ base and θ tip is shown in Fig. 5(c), with the color scale located at the bottom of the figure.Note that ∆P ′ Ext is reported, which is a nondemensionalised form of ∆P Ext :

89, where γ lg is the liquid-gas interfacial tension (γ lg = 1.0) and L x is the number of cells in the computational domain in the x-direction (L x = 120).Two different modes of interface detachment are observed, labelled Base-mediated and Tip-mediated, which are separated by the thick, blue line.In Base-mediated detachment, at the point of detachment, the interface is pinned to the solid base, and so θ tip does not effect ∆P Ext .Instead, the smaller the value of θ base , the more negative ∆P Ext becomes.Conversely, in Tip-mediated detachment, the interface is pinned to the tip at the point of detachment and so ∆P Ext becomes independent of θ base .The smaller the value of θ tip , the more negative ∆P Ext becomes.However, the small perimeter of the three-phase contact line in Tip-mediated detachment limits the maximum magnitude of ∆P Ext .This is compared to Base-mediated detachment where the relatively large three-phase contact line perimeter enables larger magnitude extrusion pressures to be achieved.Thus, if preventing extrusion was the sole purpose of the Salvinia hairs, then this would most effectively be achieved by minimising θ base .

90To measure the intrusion pressures, ∆P Int , the pressure in the liquid relative to the gas was iteratively increased up until the point where the liquid spontaneously filled the system.We note as an aside that depending on θ base , the interior of the my either trap an air bubble, or fill with liquid.The variation of ∆P ′ Int with θ base and θ tip is shown in Fig. 5(d), where ∆P ′ Int has been nondimensionalised in an identical manner to ∆P ′

91Ext .Here, we also see two separate detachment mechanisms, Base-mediated and Tip-mediated.In Base-mediated detachment, the three-phase contact line pins close to the widest part of the hair geometry at the point of detachment.The eggbeater structure traps air within the space between the four arms, making it energetically expensive for the liquidgas interface to move down the outside of the hair.Thus, the intrusion pressure is positive, even for hydrophilic values of θ base as low as 50 • .In scenarios where the base is hydrophilic and the tip highly hydrophobic (the reverse of that seen in the Salvinia plant), the tip becomes responsible for resisting intrusion in Tip-mediated detachment.However, due to the small contact line perimeter of the tip, only modest positive intrusion pressures can be achieved.If preventing intrusion was the sole purpose of the Salvinia hairs, then this would most effectively be achieved by maximising θ base .

92To explore the proposed function of the wettabilitypatterened Salvinia hair (to maintain the largest range between intrusion and extrusion pressures 62 ), we show the difference, ∆P Int -∆P Ext , in Fig. 5(e).This shows that, in order to maximise ∆P Int -∆P Ext , θ base should be maximised, and θ tip minimised.

93Although not yet explicitly studied for salvinia, the nano-structured wax coating of the hydrophobic base is anticipated to show similar contact angles to other plants, approximately 160 •62,70 .Likewise, although not yet robustly confirmed, the hydrophilic tip is suggested to have a contact angle of approximately 35 •63 .At these contact angles, our simulations show that ∆P ′ Ext = -0.81,∆P ′ Int = 2.94, with a difference of 3.75.Choosing a typical value of the centre-to-centre hair spacing of 790 µm 69 , these convert to ∆P Ext = -8.85kPa, ∆P Int = 32.1 kPa, with a difference of 41.0 kPa.This compares sensibly to the experimental values of ∆P Ext = (-6.1 ± 0.9) kPa 63 and ∆P Int = (12 ± 2) kPa 64 .Note that the magnitudes of these pressures are reduced compared to the simulated values.This is because in real plant samples, substantial geometric variability between hairs means that measured detachment pressures will be dominated by the local regions which are least resistant to intrusion or extrusion.In the Supplementary Material (Section E), a sensitivity analysis is performed to show that the intrusion and extrusion critical pressures are highly sensitive to D s /C s , and only moderately sensitive to θ base and θ tip .Finally, an interesting further analysis is that if the hair exhibited a uniform contact angle, the maximum extrusionintrusion pressure difference occurs at θ base = θ tip = 160 • , with a value of 32.6 kPa.Thus, for the geometry tested here, wettability patterning increased the plastron stability pressure range by 26%.

94To further illuminate the Salvinia hair function, in Fig. 5(f), a 2D slice through the 3D hair tip is shown.Between the intrusion and extrusion pressures, the liquid-gas interface is shown at uniform intervals of ∆P ′ = 0.12.At zero pressure, the interface is pinned on the hydrophobic/hydrophilic boundary.If the pressure is made increasingly negative (extrusion conditions), it can be seen that the three-phase contact line remains pinned to this location up until P Int is reached.If instead the pressure is increased gradually from 0 (intrusion conditions), at ∆P ′ = 0.48, the three-phase contact line depins and slides partially down the hair.As the pressure is increased further, the contact line continuously slides down the hair until ∆P ′ = 1.80, at which point another jump in contact line location is observed.From here, the interface slides towards the widest part of the hair, up until P Ext is reached.

A. Capillary Filling Dynamics

95In order to benchmark the accuracy of the diffuse solid for dynamic problems, we investigate the filling of a capillary channel 71 .The setup involves a finite reservoir of liquid entering a narrow channel, which the liquid preferentially wets over the gas.The curved liquid-gas interface in the channel creates a pressure gradient between the liquid and the surrounding gas, which subsequently drives the liquid to fill the channel.In the case where the liquid is much more viscous than the gas, the distance traveled by the liquid into the channel follows a square-root dependence on time 72

96Here, η l is the dynamic viscosity of the liquid, θ d is the dynamic contact angle, γ lg is the liquid-gas interfacial tension, H is the channel width, and t is time.L 0 and t 0 are constants of integration that take into account the initial dynamics of the liquid as it enters the channel.

97Fig. 6 shows how the distance traveled by the liquid into the channel depends on time.The simulation parameters are: a surface tension γ lg = 2.5 × 10 −3 , an interface width α = 1 and viscosities of 1/6 and 2/300 for the liquid and gas phases respectively.The densities of each component are kept identically at 1.The value of mobility M in the Cahn-Hilliard equation is 1/6.The solid is initialised by equilibrating for 5 × 10 3 iterations using β = 1 × 10 −3 and Ω = 2 × 10 −4 .

98The full simulation size is 1750 × 450 and the height and width of the channel are 900 and 40 respectively.We incline the channel by 20 • in order to validate the dynamics in the case that the diffuse solid does not align to the grid.These simulations are run for equilibrium contact angles of 60 • and 75 • .However, as expected from previous literature 71,73 , the dynamic contact angles are larger than these values.The dynamic contact angle is measured by fitting a circle to points on the liquid-gas interface and finding the tangential angle at the point where this intercepts the solid plane.As the liquid front moves along the channel and the velocity drops, the measured contact angles approach their equilibrium values, see Supplementary Material (section F), providing another validation that we achieve the correct equilibrium wetting behaviour from Eq. ( 19).

99In Fig. 6(b), the time and distance are non-dimensionalised by choosing

100We fit the data to Eq. ( 46) using a least squares algorithm, using the instantaneous dynamic contact angle at each data point when fitting the curve.As shown by Fig. 6(b), the distance travelled by the liquid interface follows a square root dependence on time.The fit agrees well with the expected curve given by Eq. ( 46).These results provide confidence that the capillary dynamics are captured accurately.The curved interface provides the correct pressure gradient to drive the capillary flow with the expected velocity for a large viscosity contrast.

B. Droplet Dynamics on Sinusoidal Surfaces

101To highlight a complex dynamic wetting application of the diffuse solid method, we now demonstrate simulations of droplets moving on sinusoidally corrugated surfaces.The solid initialization approach enables the generation of arbitrary solid shapes.This capability is vital to simulate multicomponent flow on real geometries, which very rarely conform to a regular simulation grid.Sinusoidal surfaces are a key example for this, and have found growing interest as superhydrophobic surfaces due to their unique dynamic behaviour.In contrast to traditional pillared surfaces, the smooth texture limits pinning 74 , so droplets can move more easily.Additionally, these wavy surfaces more closely match biological superhydrophobic surfaces, which have shown remarkable capabilities to repel liquid droplets 75,76 .

102We investigate a droplet moving on these surfaces in the cases where the droplet is in the suspended and collapsed states, shown in Fig. 7(a-b).We initialise the solid component following a sinusoidal profile with an amplitude of 20 and a period of 50.We then allow the interface to smooth over 2500 timesteps with β = 2 × 10 −3 and Ω = 0.1, followed by a further 47500 timesteps with β = 2 × 10 −3 and Ω = 2 × 10 −3 .To achieve the suspended and collapsed states, we set the equilibrium contact angles to 150 • and 90 • respectively.The other simulation parameters are identical to the values in Sec.IV A. The full simulation size is 250 × 130 and each simulation was run for 2 × 10 6 timesteps.Periodic boundary conditions are used at the left and right of the domain, and the halfway bounce-back scheme 49 is used at the top.At the beginning of the simulation, a circular droplet with a radius of 40 is initialised in the collapsed state.To apply gravity, we include a constant body force to the droplet (we neglect gravity on the surrounding component with the assumption that the density ratio is large).The magnitude of the body force is calculated to match the Bond number Bo = (ρ water − ρ air )D 2 g * γ water,air (48) of a water droplet with a diameter D = 3.37 mm.Here g * is the gravitational acceleration parallel to the surface.The (c) Terminal capillary number as a function of Bond number/Tilt Angle.Insets show that the velocity is close to constant in the suspended state and exhibits stick-slip motion in the collapsed state.The droplet in the suspended state moves at a significantly smaller tilt angle of 15 • compared with 37.5 • for the collapsed state.In addition to this, the terminal capillary number is consistently larger by approximately an order of magnitude.

103terminal velocity V is calculated as the average center of mass velocity parallel to the solid surface for the final 1 × 10 6 timesteps, after the variation in average velocity of the droplet over successive periods of the sinusoidal texture was below 1%.

104The results of these simulations is presented in Fig. 7(c), showing the terminal capillary number

105These results demonstrate the abilities of sinusoidal surfaces to repel liquid droplets.If the underlying substrate is hydrophobic, the droplet will enter the suspended state, and easily roll over the top of the corrugated texture with a small tilting angle of 15 • .Even while the surface is neutrally wetting (θ = 90 • ), the collapsed state still begins to move at a moderate tilt angle of 37.5 • , due to the lack of sharp corners on the sinusoidal surface, unlike other superhydrophobic surfaces patterned with posts.Insets in Fig. 7(c) display the typical velocity variation with time for the suspended and collapsed states.For the suspended state, the velocity stabilises quickly, with small oscillations as the droplet passes the sinusoidal profile.In contrast, for the collapsed state, the droplet must move vertically to overcome the peaks of the sinusoidal profile, which leads to a much smaller velocity with large oscillations as the droplet moves from one sinusoidal period to the next.The alternating pattern in the peak velocity of these oscillations arises from the different curvatures of the front and rear of the droplet in Fig. 7(b).Consequently, this leads to a slightly larger velocity as the front of the droplet overcomes the texture, in contrast with the rear.From these results, we also observe that the diffuse solid approach allows these surfaces to be fully resolved without a staircase-like approximation.The latter would create artificial pinning locations.Moreover, the solid initalization method allows for the correct interface profile to be achieved when analytical smoothing is impossible, which is essential for wetting on arbitrary geometries.

V. CONCLUSION

106In this work we have presented a diffuse solid method that allows us to study quasi-static and dynamic wetting and multiphase flow phenomena in complex geometries.The diffuse solid approach is simple to implement and can be embedded in different numerical solvers, as shown here for phase field energy minimization and lattice Boltzmann method.Moreover, we have obtained excellent agreement against analytical results for all the benchmark scenarios; equilibrium contact angles, capillary rise height, critical pressure on pillared surfaces, and dynamic capillary rise.In turn, the diffuse solid model allowed us to easily study phenomena involving highly non-trivial geometries, highlighted here using the Salvinia leaf structure with its eggbeater shape and variation in contact angle at the base and the tip as well as droplet motion on sinusoidal surfaces.

107We believe the proposed diffuse solid method will open up new opportunities to investigate wide ranging interfacial phenomena.For instance, it is useful for rationalizing wetting dynamics on bio-inspired surfaces, ranging from Lotus leaves and Rose petals to springtails and butterfly wings [77][78][79][80] , which have been shown to exhibit a rich display of variations in shapes, sizes, and chemical variations.It can also be harnessed as a powerful design tool, especially when coupled with CAD software (as has been done here for the Salvinia leaf study), and potentially 3D printing to experimentally realize the computationally optimized surface structures.

VI. SUPPLEMENTARY MATERIAL A. Diffuse Solid Method Parameter Survey

108We have carried out similar surveys for both the phase field energy minimization and lattice Boltzmann simulations to optimize the choice of parameters for the Diffuse Solid Method.For brevity, here we present the results for the phase field energy minimization.

Solid confinement parameters

109To determine the effective value of β and the number of iterations, n iter , required to form a desired solid geometry in the first stage of the energy minimisation process, we perform a survey based on several criteria: the size of the solid (∆V ) referred to as the difference in the volume (area) between the simulated and expected solid shape in 3D (2D), the closeness of the shape to the intended one (∆R C ) referred to as the difference between the radius of the simulated and expected points at the interface of the solid, the smoothness of the interface (∆R S ) referred to as the difference between the radius of the simulated and fitted points at the solid interface, and the fitness of the tanh profile of the solid component across a gas-solid interface to the analytical solution (∆C 1 ).These criteria are chosen to ensure the resulting solid geometry has a smooth interface and maintains the intended shape and size.These criteria are then translated into an objective function that measures the square of the relative error of each criterion, given by

110All variables are then normalised to 1 to ensure that each criterion is equally favourable.This is done by normalising the root mean square error (RMSE) of each variable using the formula:

111, where i denotes for each variable in the function O.This objective function is then minimised against several solid geometries including sphere, cube and cone shapes to account for the geometry's curved, flat, inclined and corner features as shown in Fig. 8.

112Here, we show two values of β to represent weak (β = 1) and strong (β = 10) confining potentials.The energy minimisation steps are done up to n iter = 50.The snapshots of the 2D cross-section of the solid-gas interface for each shape for n iter = 5, 10, 20, 30, 40 and 50 are shown in Fig. 8(a).From these images, the impact of the value of β can be seen primarily in maintaining the size and shape of the geometry.For β = 1, the size of the geometry shrinks as the iteration increases.This is prominent for shapes with corner features as in the cube and cone geometries.This indicates that two adjection solid interfaces separated by a narrow gap might merge into one solid interface if weak confining potential is used.A stronger confining potential (β = 10) is seen to be able to maintain the size and shape of the geometry as the number of iterations increases.However, it can lead to reducing the interface's smoothness and the interface's tanh profile fitness if the number of iterations is large.The effect of the number of interations can be evaluated further from the objective function analysis, as shown in Fig. 8(b).Here, all variables in the objective function have been normalised such that the values range from 0 to 1 to ensure that each variable contributes similarly to the overall objective function.Combining all variables into the total objective function, O, we can see that the minimum deviation is obtained at 10 iterations for both values of β , which indicates the optimum solid geometry.

Fluid and domain parameters

113To assess the impact of the interfacial properties on the accuracy of simulated wetting characteristics, the critical intrusion pressure is examined for a 2D rectangular pore, shown in Fig. 9.The parameters tested are the interfacial width, α, domain scale, and liquid-gas interfacial tension, γ lg .The contact angle remains fixed throughout at θ = 120 • , and the grid spacing remains fixed at 1.0.In Fig. 9(a), the default (scale-1) system dimensions are established (all measurements reported in lattice units).To examine the influence of system scale, all dimensions in this default domain are scaled by a chosen factor.

114Using an identical procedure to that described in the main text (Section: Critical Pressure on Micropillared Surfaces), we find the critical intrusion pressure required for liquid to spontaneously fill the pore, ∆P c .This is then compared to the analytical critical intrusion pressure, ∆P c(analytical) , defined in an identical manner to main text Eq. ( 34):

115where s is the pore width.In Fig. 9(b), this comparison between simulated and analytical critical pressures is made across a range of α and system scales (γ lg is fixed at 1.0).A successful simulation must balance accuracy with computational expense.For α < 0.9 the interfacial profile is under-resolved, leading to unphysical interface curvatures.For α ≥ 0.9 (where the interfacial profile is sufficiently resolved), a compromise exists: to achieve highly accurate simulations, a larger α is required, but this in turn requires a larger system scale.The latter is required as for the mesoscale wetting phenomena investigated here, the interface width must remain small relative to the pore width.For highly accurate critical pressures, α = 2.0 is recommended with at least double the default domain scale.Greater accuracy can be achieved for α > 2.0, but these require larger system scales than presented in Fig. 9(b).However, even for α = 1.0 at the default scale (1.0), the discrepancy between the simulated and analytical critical pressure is small (less than 1%).Given the computational efficiency associated with a smaller domain size, α = 1.0 (the same as the grid spacing) is judged to appropriately balance efficiency and accuracy, and is used throughout this work.In Fig. 9(c), the default system is used, but this time a range of γ lg is tested.Across this range it can be seen that the accuracy remains close to 0.8%.

B. Contact Angle Derivation

116Here we will describe the derivation of the surface tensions and equilibrium contact angle from the free energy given by

117First we consider a pure interface between components C 2 and C 3 .In this limit, C 1 = 0 and ∇C 1 = 0, so we arrive at a simplified free energy

118We can calculate the surface tension from the excess free energy per unit area 49 , assuming the interface profile follows C 2 = 1 2 + 1 2 tanh x 2α ,

119We can then repeat this process for the solid-fluid interfaces.For the interface between C 1 and C 2 , we must have that

120Then we arrive at the surface tension

121Finally, for the interface between C 1 and C 3 , we must have C 2 = 0 and ∇C 2 = 0

122from which we arrive at

E. Salvinia sensitivity survey

123To evaluate the susceptibility of the critical intrusion pressure ∆P ′ Int and extrusion pressure ∆P ′ Ext to key parameters of the Salvinia hair, a sensitivity analysis is performed.We start with the original model presented in the main text, featuring D s /C s 0.77 (where D s is the outermost hair diameter, and C s is the centre-to-centre hair separation), a base contact angle θ base = 160 • , and a tip contact angle θ tip = 35 • .To explore the sensitivity of the critical pressures to these parameters, each parameter is varied by ±5%, with the resulting critical pressures shown in Table I.Note that to vary the outermost diameter to centre-to-centre hair separation ratio, we maintain a fixed centre-to-centre hair separation, and radially scale the entire hair structure.In Table I, it can be seen that the hair outer diameter has the largest influence on both critical pressures, compared to the contact angles.As anticipated from the analysis of the pinning locations in main text Fig. 5(f), the intruding interface is sensitive only to θ base , whereas the extruding interface is sensitive only to θ tip .

FIG. 1 .

124FIG. 1. Schematic of implementing the diffuse solid method for a droplet on a flat surface in the energy minimization.(a) Initialization of the flat solid geometry (C 1 ) and the gas phase (C 3 ).(b) The diffuse solid interface with a thickness of α is formed after a number of iterations as highlighted by the inset which also shows the tanh profile of the solid component (C 1 ) across the interface.(c) Initialisation of the liquid phase (C 2 ) using a staircase approximation.(d) The final result after the minimization process is completed.

FIG. 2 .

125FIG. 2. Equilibrium shapes of liquids wetting (a,b) flat and (c,d) curved solid surfaces in 2D and 3D cases, respectively.Images also show boundary conditions used in simulations for each case.(e) Comparison of the input (θ analytical ) and measured (θ measured ) contact angles for wetting cases on flat and curved surfaces in 2D and 3D.(f,g) Pinning investigation for a drop on an inclined plane using a binary phase field model with a staircase approximation to the surface, and using the Diffuse Solid Method (DSM) respectively.Images show a 40 • surface inclination angle with a drop with θ analytical = 30 • .(h) Comparison between the staircase approximation and DSM mean contact angle and range of contact angles exhibited as the volume of a drop on an inclined plane is gradually increased and reduced.Mean angles are indicated by a dashed black line (staircase) or solid black line (Diffuse Solid Method).The range of contact angles is indicated by the grey-shaded (staircase) or blue-shaded (Diffuse Solid Method) regions.

FIG. 3 .

126FIG. 3. (a) A snapshot of the liquid-gas interface at equilibrium in a capillary rise simulation within a cylindrical tube.The tube radius r c , the contact angle θ , the rise height h c and the meniscus height h m are shown in the enlarged view.(b) The measured rise height h c (data points) plotted against contact angle θ with r c = 26 (main panel) and inner tube radii r c with θ = 60 • (inset), and compared to the numerical solution given by Eq. (43) (solid line).(c) The change in the gravitational potential energy ∆E g and the surface energy ∆E surface obtained from simulation and numerical solution plotted against contact angle θ , where r c = 26.

FIG. 4 .

127FIG. 4. (a) Schematic of a droplet undergoing a transition from a suspended state to a collapsed state on a 2-dimensional periodically patterned surface with a rectangular micropillar geometry having width a, pillar spacing s, pillar height h and periodicity b. θ is the equilibrium contact angle on the corresponding flat surface.P l and P g are the pressure in the liquid and gas (surrounding air), respectively.The enlarged view shows the liquid-gas interface underneath the droplet hanging between two adjacent pillars in a suspended state and is used as the system setup in simulations.(b) Measured critical pressure plotted against contact angle, where s = 81, and pillar spacing (inset), where θ = 112 • , and compared with the analytical prediction to Eq. (45).Snapshots show liquid-gas interface shapes at the critical pressure for θ = 60 • and θ = 112 • .

FIG. 5 .

128FIG. 5. (a) The triangulated 3D mesh that models the 'eggbeater' shaped leaf hair of the water-fern, Salvinia molesta.(b) The diffuse solid conforming to the inputted triangulated mesh, showing the grid dimensions and different contact angles imposed on the base, θ base , and the tip, θ tip .Key hair parameters are indicated: the hair height H s , outermost diameter D s , and centre-to-centre distance C s .(c-e) Surveys of the nondimensionalised extrusion pressure ∆P ′Ext , intrusion pressure ∆P Int , and difference between these pressures respectively.Boundaries between the two collapse modes (Tip-mediated and Base-mediated) are indicated by a thick blue line (extrusion) and thick red line (intrusion).(f) A 2D slice through the Salvinia hair, showing how the liquid-gas interface changes across the pressure range between the intrusion and extrusion pressures.Interfaces are shown in blue at equal increments of ∆P ′ = 0.12.The hydrophilic tip is shown in red, the hydrophobic base in grey.

129FIG. 6.(a) Visualisation of simulation domain, with a reservoir of liquid on the left, which will enter the blue solid structure.The channel is inclined at 20 • .The boundaries on the left and right are periodic with symmetry conditions on the top and bottom 49 .(b) Simulation data points and analytical curves (shown by solid lines), for non-dimensional distance and time.

130FIG. 7. (a) Droplet in the suspended state at a tilt angle of 45 • , raised above the corrugated texture as it moves.The equilibrium contact angle is 150 • .(b) Droplet in the collapsed state at a tilt angle of 45 • that has penetrated the texture.The equilibrium contact angle is 90 • .(c)Terminal capillary number as a function of Bond number/Tilt Angle.Insets show that the velocity is close to constant in the suspended state and exhibits stick-slip motion in the collapsed state.The droplet in the suspended state moves at a significantly smaller tilt angle of 15 • compared with 37.5 • for the collapsed state.In addition to this, the terminal capillary number is consistently larger by approximately an order of magnitude.

FIG. 8 .

131FIG. 8. (a) 2D cross-section of the solid-gas interface of sphere (panels i and ii), cube (panels iii and iv) and cone (panels v and vi) geometries after different number of iterations in the first stage of energy minimisation with β = 1 (top row) and β = 10 (bottom row).(b) Plots of normalised values of the objection function's variables against the number of iterations for the corresponding cases in panel (a).

FIG. 9 .

132FIG. 9. (a) Default (scale -1) geometry of the 2D rectangular pore used to examine the impact of α, domain scale, and γ lg on the critical intrusion pressure.(b) The impact of α and the domain scale on the percentage difference between the simulated critical pressure, ∆P c , and analytical critical pressure, ∆P c(analytical) .The grey 'suitable zone' region highlighted indicates the range of α capable of producing physically sensible liquid-gas interfaces within the range of domain scales tested.(c) The deviation in the critical pressure from the analytical value for the scale-1.0,α = 1.0 system at a range of different liquid-gas surface tensions.

FIG. 10 .

133FIG.10.Measured vs theoretical contact angles in the lattice Boltzmann simulations for a droplet on a flat diffuse solid surface.The results agree to within 1.5 o for the range of contact angles tested (15 o to 165 o ).The solid is allowed to equilibrate over 5000 time steps with α = 1 and β = 0.001.A hemispherical droplet of initial radius 40 is then placed on the surface and its equilibrium contact angle is changed by keeping γ 23 = γ 12 = 0.0025 and modifying γ 13 in accordance with equation(59).As we are only interested in the accuracy of the final static result, we set τ 2 = τ 3 = 1.0 and ρ 2 = ρ 3 = 1.0.

FIG. 11 .

134FIG. 11.Dynamic contact angle of the liquid front in the capillary channel with time.The dynamic contact angle approaches the equilibrium value as the liquid fills the channel and the filling velocity decreases.

TABLE I .

135Sensitivity analysis for the critical intrusion pressure ∆P ′ Int and extrusion pressure ∆P ′ Ext on the Salvinia hair examined in the main text, where D s is the outermost hair diameter, and C s is the centre-to-centre hair separation.

참고문헌 75건

  1. Elasticity of the hair cover in air-retaining Salvinia surfaces Applied Physics A · Springer Science+Business Media · 2015 10.1007/s00339-015-9439-y
  2. Unraveling the Salvinia Paradox: Design Principles for Submerged Superhydrophobicity Advanced Materials Interfaces · Wiley · 2015 10.1002/admi.201500248
  3. The <i>Salvinia</i> Paradox: Superhydrophobic Surfaces with Hydrophilic Pins for Air Retention Under Water Advanced Materials · Wiley · 2010 10.1002/adma.200904411
  4. Parallel computation of Entropic Lattice Boltzmann method on hybrid CPU–GPU accelerated system Computers & Fluids · Elsevier BV · 2014 10.1016/j.compfluid.2014.06.002
  5. Modeling pinchoff and reconnection in a Hele-Shaw cell. I. The models and their calibration Physics of Fluids · American Institute of Physics · 2002 10.1063/1.1425843
  6. Modeling pinchoff and reconnection in a Hele-Shaw cell. II. Analysis and simulation in the nonlinear regime Physics of Fluids · American Institute of Physics · 2002 10.1063/1.1425844
  7. Lattice-Boltzmann simulations of droplet evaporation Soft Matter · Royal Society of Chemistry · 2014 10.1039/c4sm01291g
  8. Measurements of wall shear stress with the lattice Boltzmann method and staircase approximation of boundaries Computers & Fluids · Elsevier BV · 2010 10.1016/j.compfluid.2010.05.015
  9. Calculation of Two-Phase Navier–Stokes Flows Using Phase-Field Modeling Journal of Computational Physics · Elsevier BV · 1999 10.1006/jcph.1999.6332
  10. Effects of incompressibility on the elimination of parasitic currents in the lattice Boltzmann equation method for binary fluids Computers & Mathematics with Applications · Elsevier BV · 2009 10.1016/j.camwa.2009.02.017
  11. Numerical simulation of pool boiling heat transfer on smooth surfaces with mixed wettability by lattice Boltzmann method International Journal of Heat and Mass Transfer · Elsevier BV · 2014 10.1016/j.ijheatmasstransfer.2014.08.092
  12. On the limited memory BFGS method for large scale optimization Mathematical Programming · Springer Science+Business Media · 1989 10.1007/bf01589116
  13. Updating quasi-Newton matrices with limited storage Mathematics of Computation · American Mathematical Society · 1980 10.1090/s0025-5718-1980-0572855-7
  14. The Dynamics of Capillary Flow Physical Review · American Institute of Physics · 1921 10.1103/physrev.17.273
  15. Lattice Boltzmann model for simulating flows with multiple phases and components Physical review. E, Statistical physics, plasmas, fluids, and related interdisciplinary topics · American Physical Society · 1993 10.1103/physreve.47.1815
  16. Effects of micro- and nano-structures on the self-cleaning behaviour of lotus leaves Nanotechnology · IOP Publishing · 2006 10.1088/0957-4484/17/5/032
  17. Lattice Boltzmann simulations of binary fluid flow through porous media Philosophical Transactions of the Royal Society A Mathematical Physical and Engineering Sciences · Royal Society · 2002 10.1098/rsta.2001.0944
  18. Simulation Method of Colloidal Suspensions with Hydrodynamic Interactions: Fluid Particle Dynamics Physical Review Letters · American Physical Society · 2000 10.1103/physrevlett.85.1338
  19. A modification to the half-interval search (binary search) method 1976 10.1145/503561.503582
  20. Consolidation of Hydrophobic Transition Criteria by Using an Approximate Energy Minimization Approach Langmuir · American Chemical Society · 2010 10.1021/la9047424
  21. Lattice Boltzmann simulations of micron-scale drop impact on dry surfaces Journal of Computational Physics · Elsevier BV · 2010 10.1016/j.jcp.2010.07.007
  22. Hydrophobic properties of a wavy rough substrate The European Physical Journal E · Springer Science+Business Media · 2005 10.1140/epje/e2005-00008-y
  23. Modelling capillary filling dynamics using lattice Boltzmann simulations The European Physical Journal Special Topics · Springer Science+Business Media · 2009 10.1140/epjst/e2009-01012-0
  24. Sharp-interface limit of the Cahn–Hilliard model for moving contact lines Journal of Fluid Mechanics · Cambridge University Press · 2010 10.1017/s0022112009992679
  25. Momentum transfer of a Boltzmann-lattice fluid with boundaries Physics of Fluids · American Institute of Physics · 2001 10.1063/1.1399290
  26. Purity of the sacred lotus, or escape from contamination in biological surfaces Planta · Springer Science+Business Media · 1997 10.1007/s004250050096
  27. Computation of multiphase systems with phase field models Journal of Computational Physics · Elsevier BV · 2003 10.1016/s0021-9991(03)00280-8
  28. DIFFUSE-INTERFACE METHODS IN FLUID MECHANICS Annual Review of Fluid Mechanics · Annual Reviews · 1998 10.1146/annurev.fluid.30.1.139
  29. Layers of Air in the Water beneath the Floating Fern Salvinia are Exposed to Fluctuations in Pressure Integrative and Comparative Biology · Oxford University Press · 2014 10.1093/icb/icu072
  30. Wetting: statics and dynamics Reviews of Modern Physics · American Physical Society · 1985 10.1103/revmodphys.57.827
  31. Lattice Boltzmann simulations of droplet impact onto surfaces with varying wettabilities International Journal of Heat and Mass Transfer · Elsevier BV · 2015 10.1016/j.ijheatmasstransfer.2015.11.088
  32. Ternary free-energy lattice Boltzmann model with tunable surface tensions and contact angles Physical review. E · American Physical Society · 2016 10.1103/physreve.93.033305
  33. Lattice Boltzmann equation method for the Cahn-Hilliard equation Physical Review E · American Physical Society · 2015 10.1103/physreve.91.013309
  34. Bio-Inspired Fabrication of Complex Hierarchical Structure in Silicon Journal of Nanoscience and Nanotechnology · American Scientific Publishers · 2014 10.1166/jnn.2015.10194
  35. Metastable Wetting on Superhydrophobic Surfaces: Continuum and Atomistic Views of the Cassie-Baxter–Wenzel Transition Physical Review Letters · American Physical Society · 2012 10.1103/physrevlett.109.226102
  36. The impact of surface geometry, cavitation, and condensation on wetting transitions: posts and reentrant structures Journal of Physics Condensed Matter · IOP Publishing · 2017 10.1088/1361-648x/aa5380
  37. Pinning–Depinning Mechanism of the Contact Line during Evaporation on Chemically Patterned Surfaces: A Lattice Boltzmann Study Langmuir · American Chemical Society · 2016 10.1021/acs.langmuir.6b01490
  38. Plant Surfaces: Structures and Functions for Biomimetic Innovations Nano-Micro Letters · Springer Science+Business Media · 2017 10.1007/s40820-016-0125-1
  39. Wetting characteristics of underwater micro-patterned surfaces RSC Advances · Royal Society of Chemistry · 2017 10.1039/c6ra25888c
  40. A simple difference method for lattice Boltzmann algorithm to simulate conjugate heat transfer International Journal of Heat and Mass Transfer · Elsevier BV · 2017 10.1016/j.ijheatmasstransfer.2017.05.115
  41. Phase-field-based lattice Boltzmann modeling of large-density-ratio two-phase flows Physical review. E · American Physical Society · 2018 10.1103/physreve.97.033309
  42. III. An essay on the cohesion of fluids Philosophical Transactions of the Royal Society of London · Royal Society · 1805 10.1098/rstl.1805.0005
  43. Jurin’s law revisited: Exact meniscus shape and column height The European Physical Journal E · Springer Science+Business Media · 2018 10.1140/epje/i2018-11648-1
  44. Physical foundation of the fluid particle dynamics method for colloid dynamics simulation Soft Matter · Royal Society of Chemistry · 2018 10.1039/c8sm00189h
  45. Passive water collection with the integument: mechanisms and their biomimetic potential Journal of Experimental Biology · The Company of Biologists · 2018 10.1242/jeb.153130
  46. Snap evaporation of droplets on smooth topographies Nature Communications · Nature Portfolio · 2018 10.1038/s41467-018-03840-6
  47. Multifaceted design optimization for superomniphobic surfaces Science Advances · American Association for the Advancement of Science · 2019 10.1126/sciadv.aav7328
  48. 3D lattice Boltzmann simulation of droplet evaporation on patterned surfaces: Study of pinning–depinning mechanism International Journal of Multiphase Flow · Elsevier BV · 2020 10.1016/j.ijmultiphaseflow.2020.103218
  49. Open Microfluidic Capillary Systems Analytical Chemistry · American Chemical Society · 2019 10.1021/acs.analchem.9b01429
  50. Wetting boundaries for a ternary high-density-ratio lattice Boltzmann method Physical review. E · American Physical Society · 2019 10.1103/physreve.100.013308
  51. Self‐Folding Using Capillary Forces Advanced Materials Interfaces · Wiley · 2019 10.1002/admi.201901677
  52. Nanoscale Block Copolymer Self‐Assembly and Microscale Polymer Film Dewetting: Progress in Understanding the Role of Interfacial Energies in the Formation of Hierarchical Nanostructures Advanced Materials Interfaces · Wiley · 2019 10.1002/admi.201901565
  53. 3D printing of bioinspired textured surfaces with superamphiphobicity Nanoscale · Royal Society of Chemistry · 2020 10.1039/c9nr09620e
  54. Progress in Modeling Wetting Phenomena on Structured Substrates Archives of Computational Methods in Engineering · Springer Science+Business Media · 2020 10.1007/s11831-020-09431-3
  55. Investigation on boundary schemes in lattice Boltzmann simulations of boiling heat transfer involving curved surfaces Physics of Fluids · American Institute of Physics · 2020 10.1063/5.0011282
  56. Factors controlling the pinning force of liquid droplets on liquid infused surfaces Soft Matter · Royal Society of Chemistry · 2020 10.1039/d0sm00766h
  57. Air Retention under Water by the Floating Fern <i>Salvinia</i>: The Crucial Role of a Trapped Air Layer as a Pneumatic Spring Small · Wiley · 2020 10.1002/smll.202003425
  58. Fog Harvesting Devices Inspired from Single to Multiple Creatures: Current Progress and Future Perspective Advanced Functional Materials · Wiley · 2022 10.1002/adfm.202200359
  59. Multiphase curved boundary condition in lattice Boltzmann method Physical review. E · American Physical Society · 2022 10.1103/physreve.106.015307
  60. Functional surface microstructures inspired by nature – From adhesion and wetting principles to sustainable new devices Progress in Materials Science · Elsevier BV · 2021 10.1016/j.pmatsci.2021.100823
  61. Robust and durable liquid-repellent surfaces Chemical Society Reviews · Royal Society of Chemistry · 2022 10.1039/d0cs01033b
  62. Homogenized Lattice Boltzmann Model for Simulating Multi-Phase Flows in Heterogeneous Porous Media elib (German Aerospace Center) · Deutsches Zentrum für Luft- und Raumfahrt e. V. (DLR) · 2022 10.1016/j.advwatres.2022.104320
  63. Design and Properties of Antimicrobial Biomaterials Surfaces Advanced Healthcare Materials · Wiley · 2022 10.1002/adhm.202202073
  64. Nature‐Inspired Biomimetic Surfaces for Controlling Bacterial Attachment and Biofilm Development Advanced Materials Interfaces · Wiley · 2022 10.1002/admi.202201425
  65. Special wettability for sensing: Drawing inspiration from nature Chemical Engineering Journal · Elsevier BV · 2023 10.1016/j.cej.2023.141615
  66. Rough capillary rise Communications Physics · Nature Portfolio · 2023 10.1038/s42005-023-01160-w
  67. Superhydrophobicity and compressive stability of Salvinia surface: Mechanical analysis and structural design Applied Surface Science · Elsevier BV · 2023 10.1016/j.apsusc.2023.157274
  68. Phase field simulation of liquid filling on grooved surfaces for complete, partial, and pseudo-partial wetting cases The Journal of Chemical Physics · American Institute of Physics · 2023 10.1063/5.0144886
  69. Modified multi-phase diffuse-interface model for compound droplets in contact with solid Journal of Computational Physics · Elsevier BV · 2023 10.1016/j.jcp.2023.112345
  70. Bio-inspired Nanoarchitectonics of Re-entrant Geometries toward Transparent Omniphobic Surfaces ACS Applied Optical Materials · American Chemical Society · 2023 10.1021/acsaom.3c00238
  71. Designing of anisotropic gradient surfaces for directional liquid transport: Fundamentals, construction, and applications The Innovation · Elsevier BV · 2023 10.1016/j.xinn.2023.100508
  72. Elucidating the lotus and rose-petal effects on hierarchical surfaces: Study of the effect of topographical scales on the contact angle hysteresis Journal of Colloid and Interface Science · Elsevier BV · 2024 10.1016/j.jcis.2024.07.114
  73. Pore-scale insights into CO2-water two-phase flow and implications for benefits of geological carbon storage Advances in Water Resources · Elsevier BV · 2024 10.1016/j.advwatres.2024.104780
  74. An improved immersed moving boundary-based curved wetting condition method for the pseudopotential multiphase lattice Boltzmann model Physics of Fluids · American Institute of Physics · 2024 10.1063/5.0238292
  75. Diffuse-interface modeling and energy-stable numerical framework for the heat transfer-coupled two-phase fluids in contact with solids Journal of Computational Physics · Elsevier BV · 2024 10.1016/j.jcp.2024.113699