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

An efficient diffusion generated motion method for wetting dynamics

관련 수소연료전지 · (5) 연료전지용 수분제어장치(가습기)

기본 정보

저자
  1. Lu Song
  2. Xu Xianmin
DOI
10.48550/arxiv.2005.04710
저널
arXiv (Cornell University)
발행년도
2022
발행기관
Cornell University
피인용수
0
라이선스
0
논문 유형
–
언어
–
원문 페이지
https://doi.org/10.48550/arxiv.2005.04710
토픽
Surface Modification and Superhydrophobicity
OpenAlex ID
W6910503513

평가 내용

관련도
관련
사업분야
수소연료전지 · (5) 연료전지용 수분제어장치(가습기)
부 분야
–
R&D 측면
–
확신도
–
근거 용어
–
판단 근거
임베딩 유사도 기반 평가로 '수소연료전지 > 연료전지용 수분제어장치(가습기)' 분야에 선정된 논문입니다.
R&D 활용 포인트
–
평가 입력
–

초록

By using the Onsager variational principle as an approximation tool, we develop a new diffusion generated motion method for wetting problems. The method uses a signed distance function to represent the interface between the liquid and vapor surface. In each iteration, a linear diffusion equation with a linear boundary condition is solved for one time step in addition to a simple re-distance step and a volume correction step. The method has a first-order convergence rate with respect to the time step size even in the vicinity three-phase contact points. Its energy stability property is analysed by careful studies for some geometric flows on substrates. Numerical examples show that the method can be used to simulate complicated wetting problems on inhomogeneous surfaces.

본문 86,601자

본문 펼치기
## An efficient diffusion generated motion method for wetting dynamics Song Lu <sup>1</sup>, Xianmin Xu <sup>2</sup> LSEC, ICMSEC, NCMIS, Academy of Mathematics and Systems Science, Chinese Academy of Sciences, Beijing 100190, China; School of Mathematical Sciences, University of Chinese Academy of Sciences, Beijing 100049, China Abstract By using the Onsager variational principle as an approximation tool, we develop a new diffusion generated motion method for wetting problems. The method uses a signed distance function to represent the interface between the liquid and vapor surface. In each iteration, a linear diffusion equation with a linear boundary condition is solved for one time step in addition to a simple re-distance step and a volume correction step. The method has a first-order convergence rate with respect to the time step size even in the vicinity threephase contact points. Its energy stability property is analysed by careful studies for some geometric flows on substrates. Numerical examples show that the method can be used to simulate complicated wetting problems on inhomogeneous surfaces. 1. Introduction Wetting describes how liquid stays and spreads on solid surfaces. It is a fundamental two-phase flow problem and has important applications in many industrial processes, e.g. in coating, printing, oil industry, etc. When the solid surface is homogeneous, the contact angle between the liquid surface and the substrate is characterized by Young’s equation[1]. However, when the solid surface is chemically inhomogeneous or geometrically rough, the wetting phenomena become much more complicated. The apparent contact angle may be very different from Young’s angle(so-called the lotus effect). There also exist many meta-stable states in the solid-liquid-vapor system, and this generates the interesting contact angle hysteresis phenomenon. Many theoretical and experimental studies have been done for the wetting problems(c.f. [2, 3, 4] and many references therein). Mathematically, wetting is a free interface problem with complicated boundary conditions. A liquid drop can change shape or even topology on a solid substrate. On the contact line, which is the line between the liquid-vapor interface and the solid surface, Young’s equation holds locally. Numerical simulation for the wetting problem is very challenging, especially for that on rough or chemically inhomogeneous surfaces. The standard methods based on a sharp-interface representation of the liquid-vapor interface are difficult to deal with the topology change and the complicated boundary conditions [5, 6, 7, 8, 9]. On the other hand, the diffuse-interface model for the wetting problem includes a nonlinear relaxed boundary condition[10, 11], which is also difficult to deal with numerically. Moreover, in comparison with the phase-field model in other applications, one needs a very small interface thickness parameter in wetting problems, since the parameter must be much smaller than the characteristic size of the roughness or chemical inhomogeneity in order to simulate the wetting phenomena correctly. Recently, a threshold dynamics method has been developed for wetting problems on rough surfaces[12, 13]. The method alternately diffuses and sharpens a linear combination of the characteristic functions of the liquid, the vapor and the solid domains to decrease the total interfacial energy of the three-phase system. 1lusong@lsec.cc.ac.cn. 2Corresponding author. xmxu@lsec.cc.ac.cn. _Preprint_ _submitted_ _to_ _Elsevier_ The method is efficient since in each iteration one needs only to solve one or two linear diffusion equations in addition to a simple thresholding step and a volume correction step. The diffusion equation can be solved by standard FFT method or non-uniform FFT techniques[14, 15]. However, the accuracy of the method is not very satisfactory, since one can only obtain a convergence rate of half order with respect to the time step _δt_ (i.e. of order _O_ ( _δt_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> )) near the three-phase contact points. This is crucial in wetting problems since it is the contact angle condition at these points that determines the main physical properties of wetting. To compute the wetting problem correctly, one usually needs to choose a very small time step size and very fine meshes, especially for rough or chemically inhomogeneous surfaces. The threshold dynamic method for wetting in [12, 13] is basically an MBO type method[16, 17, 18] and can be seen as a generalization of the method recently developed in [19]. This method has been studied a lot and also been used in many different problems [20, 21, 22, 23, 24]. One can also employ signed distance functions to replace the characteristic functions in some applications[25, 26]. Main advantages of these methods are that they are easy to implement and can deal with the topological changes naturally. A disadvantage is that the accuracy of the method is not very good for multi-phase free interface problems with a triple junction. In general, the convergence rate with respect to the time step of the method is of order _O_ ( _δt_ ) for smooth curves while it is of order _O_ ( _δt_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> ) when there is a triple junction[27]. Some second-order threshold dynamics schemes have been developed for smooth curves in [17, 28]. However, it is not clear if the methods work for multi-phase problems with triple junctions. In this paper, we develop a new diffusion generalized method using the signed distance function for wetting problems. The method is efficient and easy to implement, since like in the standard method, in each iteration, the main step is to solve a linear diffusion equation with a linear boundary condition. Meanwhile, the method achieves a first-order convergence rate _O_ ( _δt_ ) with respect to the time step even near three-phase contact points. The main difference of the method from the previous ones in [12, 13] is that we do not include the solid phase domain in the diffusion equation. Therefore the three-phase contact points are not inside the computational domain but on the boundary and the corresponding contact angle conditions can be approximated with higher accuracy. Another novelty of our work is that we use the Onsager principle[29, 30, 31] as an approximation tool to derive a linear diffusion equation with a linear boundary condition for the liquid-vapor interface, which is the main equation to be solved in the proposed numerical method. The Onsager Principle is a fundamental variational principle in statistic physics[30, 29, 31]. Recently, it is found that the principle can be used as an powerful approximation tool in many problems in soft matter [32, 33, 34, 35, 36, 37, 38, 39]. We use the idea in a novel way to derive the linear equation for wetting problems. This is done by assuming a _tanh_ profile of the leading order approximation of a phase-field model for wetting problems and choosing the signed distance function of the liquid-vapor interface as an unknown function. By applying the Onsager principle, we show that the signed distance function approximately satisfies a linear diffusion equation with a simple linear boundary condition. We also give a stability analysis for the proposed method. The analysis is based on an approximation of the method by some geometric flows and careful studies of their geometric properties. We show that the total wetting energies decay when the time step is small. Numerical examples show that the method works well for wetting problems on chemically inhomogeneous surfaces. The contact angle hysteresis phenomena can be computed correctly. The rest part of the paper is organized as follows. In section 2, we give the Onsager principle briefly and the main idea to use it as an approximation tool. In section 3, we introduce the mathematical models for wetting problems. In particular, we show that the Onsager principle can be used to derive a modified Allen-Cahn equation with a relaxed boundary condition. In section 4, we derive a linear diffusion equation for the signed distance function of the liquid-vapor interface by using the Onsager principle to approximate the modified Allen-Cahn equation. The diffusion equation is then used to construct a diffusion generated motion method for wetting problems. In section 5, we give some analysis of the energy stability property of our method. In section 6, some numerical examples are given to show the method has a first-order convergence rate and works well for wetting problems on chemically inhomogeneous surfaces. Finally, some concluding remarks are given in the last section. 2 2. The Onsager Principle as an approximation tool The Onsager Principle is a variational principle in statistic physics[30, 29]. It has been used to derive models in many problems in soft matter science, such as the Stokes equation in hydrodynamics, the generalized Navier slip boundary condition in moving contact line problems, the Nernst-Planck equation in electro-kinetics, the Ericksen-Leslie equation in nematic liquid crystals, etc [31, 40, 41]. We will introduce it briefly in this section and more details are referred to [31]. Suppose a non-equilibrium physical system is characterized by a set of parameters _αi_, _i_ = 1 _, · · ·_ _, M_, which may depend both on space and time. When the inertial effect is ignored, the dynamics of the parameters can be determined by using the Onsager principle as follows. Firstly, define the Rayleignian function in the system with respect to _α_ ˙ = _{α_ ˙ 1 _, · · ·_ _,_ _α_ ˙ _M_ _}_, which is the changing rate of the parameter _α_, as _R_ ( _α_ ; _α_ ˙ ) = Φ( ˙ _α_ ) + _E_ <sup>˙</sup> ( _α_ ; _α_ ˙ ) _,_ (1) where Φ( ˙ _α_ ) is the energy dissipation function, which is the half of the total energy dissipation rate in the system, and _E_ <sup>˙</sup> ( _α,_ _α_ ˙ ) is the changing rate of total energy _E_ ( _α_ ). In general, the energy dissipation function can be written as a quadratic form of _α_ ˙, i.e., Φ( ˙ _α_ ) = <sup><u>1</u></sup> 2 _M_ _i,j_ =1 _ζijα_ ˙ _i_ ˙ _αj,_ where _ζij_ is a symmetric positive matrix. Here we ignore the spacial integration for simplicity. Then the dynamics of _αi_, _i_ = 1 _, · · ·_ _, M_ can be determined by minimizing the total Rayleignian with respect to _α_ ˙, namely min _α_ ˙ <sup>_R_</sup> <sup>(</sup> <sup>_α_</sup> <sup>;</sup> <sup>_α_</sup> <sup>˙</sup> <sup>)</sup> <sup>_._</sup> (2) This leads to a dynamic equation for _α_, _M_ _j_ =1 _ζijα_ ˙ _j_ = _−_ <sup>_<u>δE</u>_</sup> _δαi_ _._ (3) The equation is actually the Euler-Lagrange equation for (2). In the next section, we will use the principle to derive a modified Allen-Cahn equation for the wetting problem. Recently, it is found that the principle can be used as a powerful approximation tool[32, 33, 34, 35]. The key idea is to use Onsager principle only for a few key parameters(not the whole set _α_ ) which describe the system approximately. If the selected parameters depend only on time, then we derive an ordinary differential equation for them. In general, the ODE equation is much easier to solve than (3) but still captures the main properties of the complicated physical system. This method is very useful to approximate many free boundary problems in two-phase flows, visco-elastic fluids, etc [33, 34, 37, 38]. In section 4, we will use the idea to derive an efficient numerical method for wetting problems. 3. Mathematical models of the wetting problem _3.1._ _The_ _sharp-interface_ _model_ In wetting problems, if one ignores the gravity, the total energy of a liquid-vapor-solid system is composed of three interface energies, i.e. _E_ = _γLV |_ Σ _LV |_ + _γSL|_ Σ _SL|_ + _γSV |_ Σ _SV |._ (4) where _γLV_, _γSL_ and _γSV_ are respectively the energy densities of the liquid-vapor interface Σ _LV_, the solidliquid interface Σ _SL_ and the solid-vapor interface Σ _SV_ . The stationary profile of a liquid droplet on a solid surface is determined by minimizing the total energy under the constraint that the volume of the droplet is fixed. 3 Figure 1: Wetting phenomena: a droplet on a hydrophilic substrate(left) and that on a hydrophobic one(right) To specify the mathematical model, we suppose the liquid domain is _D_ 1 _⊂_ Ωand the vapor domain is _D_ 2 = Ω _\ D_ 1, as shown in Figure 1. The solid surface Γ is the lower boundary of Ω. The liquid-vapor interface is given by Σ _LV_ = _∂D_ 1 _∩_ _∂D_ 2, the solid-liquid interface is Σ _SL_ = _∂D_ 1 _∩_ Γ and the solid-vapor interface is Σ _SV_ = _∂D_ 2 _∩_ Γ. Then the mathematical problem of wetting is _D_ 1 _∪D_ 2=Ωmin _,|D_ 1 _|_ = _V_ 0 <sup>_E_</sup> <sup>(</sup> <sup>_D_</sup> <sup>1</sup> <sup>_, D_</sup> <sup>2) :=</sup> <sup>_γLV |∂D_</sup> <sup>1</sup> <sup>_∩_</sup> <sup>_∂D_</sup> <sup>2</sup> <sup>_|_</sup> <sup>+</sup> _∂D_ 1 _∩_ Γ _γSL_ ( _s_ )d _s_ + _∂D_ 2 _∩_ Γ _γSV_ ( _s_ )d _s._ (5) Here we write the surface energy on the solid boundary Γ into an integral since the energy densities _γSL_ and _γSV_ might not be constant when the solid surface is chemically inhomogeneous. When the solid surface is planar and homogeneous, the energy minimizing problem (5) has a unique minimizer corresponding to a spherical droplet with a contact angle, which is the angle between the liquidvapor interface and the solid surface, given by Young’s equation[1]: _γLV_ cos _θY_ = _γSV_ _−_ _γSL._ (6) When the solid substrate is geometrically rough or chemically inhomogeneous, there are many local minimizers for the problem (5). The corresponding Euler-Lagrange equation is a free boundary problem with multi-scale boundary conditions, in which the microscopic inhomogeneity affects the apparent contact angle dramatically. Both analysis and numerical simulations are difficult for the wetting problem on a rough or chemically inhomogeneous surface. The problem (5) can be rewritten into an equivalent form. Denote _C_ 0 = <sup><u>1</u></sup> 2 �Γ <sup>_γSL_</sup> <sup>(</sup> <sup>_s_</sup> <sup>) +</sup> <sup>_γSV_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)d</sup> <sup>_s_</sup> <sup>as</sup> <sup>a</sup> constant depending only on the property of the solid boundary Γ. The total wetting energy is rewritten as The problem (5) can be rewritten into an equivalent form. Denote _C_ 0 = <sup><u>1</u></sup> 2 <sup><u>1</u></sup> 2 _∂D_ 2 _∩_ Γ _<u>γSL</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>γSV</u>_ <u>(</u> _<u>s</u>_ <u>)</u> d _s_ + 2 _<u>γSL</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>γSV</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>γSV</u>_ <u>(</u> _<u>s</u>_ <u>)</u> _<u>−</u>_ _<u>γSL</u>_ <u>(</u> _<u>s</u>_ <u>)</u> d _s_ + _C_ 0 2 _E_ ( _D_ 1 _, D_ 2) = _γLV |∂D_ 1 _∩_ _∂D_ 2 _|_ + _∂D_ 1 _∩_ Γ = _γLV |∂D_ 1 _∩_ _∂D_ 2 _| −_ <sup>_<u>γLV</u>_</sup> 2 _∂D_ 1 _∩_ Γ cos _θY_ ( _s_ )d _s_ + <sup>_<u>γLV</u>_</sup> 2 _∂D_ 2 _∩_ Γ cos _θY_ ( _s_ )d _s_ + _C_ 0 _._ (7) Here we have used Young’s equation (6) and regard _θY_ ( _s_ ) as a property of the substrate. Then the problem (5) is equivalent to the following one _∂D_ 1 _∩_ Γ cos _θY_ ( _s_ )d _s_ + <sup>_<u>σ</u>_</sup> 2 _∂D_ 2 _∩_ Γ min _D_ 1 _∪D_ 2=Ω _,|D_ 1 _|_ = _V_ 0 _E_ ˜( _D_ 1 _, D_ 2) := _σ|∂D_ 1 _∩_ _∂D_ 2 _| −_ <sup>_<u>σ</u>_</sup> 2 cos _θY_ ( _s_ )d _s,_ (8) where _σ_ is a given positive parameter, which can be seen as a dimensionless surface tension. _3.2._ _The_ _phase-field_ _model_ Since the sharp-interface model described above is difficult in analysis and numerical simulations, it is convenient to consider a phase-field approximation for the problem (8). The idea is to use a smooth phase field function _φε_ to approximate the liquid-vapor interface _∂D_ 1 _∩_ _∂D_ 2 [42]. The total interface energy in (8) can be approximated by 2 _<u>ε</u>_ <sup>_|∇φε|_</sup> <sup>2 +</sup> <sup><u>1</u></sup> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φε_</sup> <sup>)d</sup> <sup>_x_</sup> <sup>+</sup> 4 _g_ ( _φε_ )d _s,_ (9) Γ _Eε_ ( _φε_ ) = Ω where _f_ ( _φε_ ) = <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> 4 <sup>_<u>φ</u>_</sup> _<u>ε</u>_ <sup>2</sup> _<u>ε</u>_ <sup>2)2</sup> <sup>_<u>σ</u>_</sup> 4 <sup>cos</sup> <sup>_θY_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)(3</sup> <sup>_φε_</sup> <sup>_−_</sup> <sup>_φ_</sup> _ε_ <sup>3)</sup> <sup>with</sup> <sup>_σ_</sup> <sup>=</sup> <sup><u>2</u></sup> where _f_ ( _φε_ ) = <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> 4 <sup>_<u>φ</u>_</sup> _<u>ε</u>_ <sup>2)2</sup> and _g_ ( _φε_ ) = _−_ <sup>_<u>σ</u>_</sup> 4 <sup>cos</sup> <sup>_θY_</sup> <sup>(</sup> <sup>_s_</sup> <sup>)(3</sup> <sup>_φε_</sup> <sup>_−_</sup> <sup>_φ_</sup> _ε_ <sup>3)</sup> <sup>with</sup> <sup>_σ_</sup> <sup>=</sup> <sup><u>2</u></sup> 3 <u>2</u> <sup>.</sup> <sup>The</sup> <sup>phase-field</sup> <sup>model</sup> <sup>for</sup> <sup>the</sup> stationary wetting problem is 4 <sup>_<u>φ</u>_</sup> _<u>ε</u>_ <sup>2)2</sup> and _g_ ( _φε_ ) = _−_ <sup>_<u>σ</u>_</sup> 4 _~~√~~_ inf �Ω <sup>_φεdx_</sup> <sup>=</sup> <sup>_C_</sup> <sup>1</sup> inf _Eε_ ( _φε_ ) _._ (10) Here _C_ 1 is a given constant to make sure the volume of the liquid domain _|{x|φε_ ( _x_ ) _>_ 0 _}|_ = _V_ 0. It has been shown that the energy functional _Eε_ Γ-converges to the sharp-interface energy _E_ <sup>˜</sup> defined in (8) when _ε_ goes to zero [43, 11]. Hereinafter we use _φ_ instead of _φε_ for simplicity in notations. _3.3._ _Derivation_ _of_ _a_ _modified_ _Allen-Cahn_ _equation_ _by_ _the_ _Onsager_ _principle_ We will use the Onsager principle to derive a gradient flow equation for the phase-field model (10). For that purpose, we define the energy dissipation function, which is the half of total energy dissipation rate, as follows Φ = <sup><u>1</u></sup> 2 Ω _φ_ ˙ <sup>2</sup> d _x_ + <sup>_<u>ξ</u>_</sup> 2 Γ _φ_ ˙ <sup>2</sup> d _s._ (11) Here _ξ_ _≥_ 0 is a phenomenological parameter and we use _φ_ <sup>˙</sup> = _∂tφ_ for simplicity in notation. The function Φ includes the dissipation in the bulk domain and also that on the boundary when _ξ_ _>_ 0. The Rayleighian is given by _R_ ( _φ_ ; _φ_ <sup>˙</sup> ) = Φ( _φ_ <sup>˙</sup> ) + _E_ <sup>˙</sup> _ε_ ( _φ_ ; _φ_ <sup>˙</sup> ) _,_ (12) where _E_ <sup>˙</sup> _ε_ is the changing rate of the total potential energy _Eε_ . By integration by part, we have _∂_ Ω _\_ Γ _E_ ˙ _ε_ ( _φ_ ; _φ_ ˙) = Ω ( _−ε_ ∆ _φ_ + _ε_ <sup>_−_</sup> <sup>1</sup> _f_ <sup>_′_</sup> ( _φ_ )) _φ_ <sup>˙</sup> d _x_ + ( _ε∂nφ_ + _g_ <sup>_′_</sup> ( _φ_ )) _φ_ <sup>˙</sup> d _s_ + Γ _ε_ ( _∂nφ_ ) _φ_ <sup>˙</sup> d _s._ (13) By the Onsager principle, a dynamic equation for _φ_ can be derived by minimizing the Rayleighian _R_ ( _φ_ ; _φ_ <sup>˙</sup> ) with respect to _φ_ <sup>˙</sup> under the constraint that �Ω <sup>_φ_</sup> <sup>d</sup> <sup>_x_</sup> <sup>=</sup> <sup>_C_</sup> <sup>1.</sup> <sup>Notice</sup> <sup>that</sup> <sup>this</sup> <sup>condition</sup> <sup>is</sup> <sup>equivalent</sup> to �Ω <sup>_φ_</sup> <sup>˙d</sup> <sup>_x_</sup> <sup>= 0</sup> <sup>since</sup> <sup>the</sup> <sup>initial</sup> <sup>value</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_x,_</sup> <sup>0)</sup> <sup>satisfies</sup> �Ω <sup>_φ_</sup> <sup>(</sup> <sup>_x,_</sup> <sup>0)d</sup> <sup>_x_</sup> <sup>=</sup> <sup>_C_</sup> <sup>1.</sup> <sup>Therefore,</sup> <sup>the</sup> <sup>dynamic</sup> <sup>equation</sup> <sup>is</sup> determined by the variational problem Ω <sup>_φ_</sup> <sup>˙d</sup> <sup>_x_</sup> <sup>= 0</sup> <sup>since</sup> <sup>the</sup> <sup>initial</sup> <sup>value</sup> <sup>_φ_</sup> <sup>(</sup> <sup>_x,_</sup> <sup>0)</sup> <sup>satisfies</sup> min �Ω <sup>_φ_</sup> <sup>˙d</sup> <sup>_x_</sup> <sup>=0</sup> min �Ω <sup>_φ_</sup> <sup>˙d</sup> <sup>_x_</sup> _R_ ( _φ_ ; _φ_ <sup>˙</sup> ) _._ (14) By introducing a Lagrangian multiplier _λ_, we obtain a modified functional _Rλ_ = _R −_ _λ_ Ω _φ_ ˙d _x_ = Φ + _E_ ˙ _ε −_ _λ_ Ω _φ_ ˙d _x._ Direct computations for the Fr´echet derivative with respect to _φ_ <sup>˙</sup> give _⟨_ <sup>_<u>δRλ</u>_</sup> _δφ_ <sup>˙</sup> ( _φ_ <sup>˙</sup> _−_ _ε_ ∆ _φ_ + _ε_ <sup>_−_</sup> <sup>1</sup> _f_ <sup>_′_</sup> ( _φ_ ) _−_ _λ_ ) _ψ_ d _x_ + Γ _∂_ Ω _\_ Γ _ε_ ( _∂nφ_ ) _ψ_ d _s._ _, ψ⟩_ = Ω ( _ξφ_ <sup>˙</sup> + _ε∂nφ_ + _g_ <sup>_′_</sup> ( _φ_ )) _ψ_ d _s_ + The Euler-Lagrange equation of (14) is given by - _⟨_ <sup>_<u>δ</u>_</sup> _δ_ <sup>_<u>R</u>_</sup> _φ_ <sup>˙</sup> <sup>_<u>λ</u>_</sup> _δ_ <sup>_<u>R</u>_</sup> _φ_ <sup>˙</sup> <sup>_<u>λ</u>_</sup> <sup>_, ψ⟩_</sup> <sup>= 0</sup> <sup>_,_</sup> _∀ψ_ ; (15) _δλRλ_ <sup>= 0;</sup> _<u>δRλ</u>_ which leads to a modified Allen-Cahn equation,    _∂tφ −_ _ε_ ∆ _φ_ + _ε_ <sup>_−_</sup> <sup>1</sup> _f_ <sup>_′_</sup> ( _φ_ ) = _λ,_ in Ω; _ξ∂tφ_ + _ε∂nφ_ + _g_ <sup>_′_</sup> ( _φ_ ) = 0 _,_ on Γ; _∂nφ_ = 0 _,_ on _∂_ Ω _\_ Γ; �Ω <sup>_φdx_</sup> <sup>=</sup> <sup>_C_</sup> <sup>1</sup> <sup>_._</sup> 5 (16) _~~√~~_ 4 <sup>_<u>σ</u>_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> <sup>2)</sup> <sup>=</sup> <sup>_−_</sup> 2 Here _f_ <sup>_′_</sup> ( _φ_ ) = _φ_ <sup>3</sup> _−_ _φ_ and _g_ <sup>_′_</sup> ( _φ_ ) = _−_ <sup><u>3</u></sup> 4 <sup>_<u>σ</u>_</sup> Here _f_ <sup>_′_</sup> ( _φ_ ) = _φ_ <sup>3</sup> _−_ _φ_ and _g_ <sup>_′_</sup> ( _φ_ ) = _−_ <sup><u>3</u></sup> 4 <sup>_<u>σ</u>_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> <sup>2)</sup> <sup>=</sup> <sup>_−_</sup> 22 <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> <sup>2) cos</sup> <sup>_θY_</sup> <sup>.</sup> <sup>Notice</sup> <sup>that</sup> <sup>when</sup> <sup>_ξ_</sup> <sup>_>_</sup> <sup>0,</sup> <sup>the</sup> second equation in (16) is a dynamic relaxed boundary condition as in [10, 44]. When _ξ_ = 0, it is a standard Neumann boundary condition. By the above derivation, we can easily see the energy decay property of the solution of the AllenCahn equation (16). Suppose that _φ_ is the solution of the modified Allen-Cahn equation (16). By the equations (16), (13), (15) and �Ω <sup>_φdx_</sup> <sup>˙</sup> <sup>= 0,</sup> <sup>we</sup> <sup>have</sup> Ω <sup>_φdx_</sup> <sup>˙</sup> <sup>= 0,</sup> <sup>we</sup> <sup>have</sup> _<u>dEε</u>_ _dt_ <sup>=</sup> = Ω Ω ( _−φ_ <sup>˙</sup> + _λ_ ) _φ_ <sup>˙</sup> d _x −_ _ξ_ ( _−ε_ ∆ _φ_ + _ε_ <sup>_−_</sup> <sup>1</sup> _f_ <sup>_′_</sup> ( _φ_ )) _φ_ <sup>˙</sup> d _x_ + _∂_ Ω ( _ε∂nφ_ + _g_ <sup>_′_</sup> ( _φ_ )) _φds_ <sup>˙</sup> + _∂_ Ω _\_ Γ _ε_ ( _∂nφ_ ) _φ_ <sup>˙</sup> d _s_ Γ Γ _φ_ ˙ <sup>2</sup> d _s_ = _−_ _φ_ ˙ <sup>2</sup> d _x −_ _ξ_ Ω _φ_ ˙ <sup>2</sup> d _s ≤_ 0 _._ Therefore, when _t_ goes to infinity, the stationary solution of the Allen-Cahn equation corresponds to a minimizer of the problem (10). The modified equation (16) is more difficult to solve numerically than the standard Allen-Cahn equation, since we have a nonlinear boundary condition on the solid boundary in the second equation of (16). The boundary condition implies that the contact angle of the liquid is relaxed to or equal to the local Young’s angle. In addition, the last equation of (16) provides a non-local constraint for the phase-field function. 4. A diffusion generated motion method To obtain the equilibrium state of the wetting problem, one can solve the modified Allen-Cahn equation (16) by some standard numerical methods(e.g. [45, 46]). However, when the parameter _ε_ is small, the equation is very difficult to solve. Here we will not solve the equation directly. Instead, we will use it to develop an efficient diffusion generated motion method for the wetting problem (8). The key idea is to use the Onsager Principle as a tool to approximate the Allen-Cahn equation. _4.1._ _Approximation_ _of_ _an_ _Allen-Cahn_ _equation_ _by_ _using_ _the_ _Onsager_ _Principle._ In this subsection, we ignore the non-local constraint �Ω <sup>_φdx_</sup> <sup>=</sup> <sup>_C_</sup> <sup>1</sup> <sup>in</sup> <sup>the</sup> In this subsection, we ignore the non-local constraint �Ω <sup>_φdx_</sup> <sup>=</sup> <sup>_C_</sup> <sup>1</sup> <sup>in</sup> <sup>the</sup> <sup>phase</sup> <sup>field</sup> <sup>equation</sup> <sup>(16).</sup> <sup>The</sup> constraint comes from the volume conservation condition of the wetting problem (8) and will be considered in next subsection. We consider an Allen-Cahn equation    _∂tφ −_ _ε_ ∆ _φ_ + _ε_ <sup>_−_</sup> <sup>1</sup> _f_ <sup>_′_</sup> ( _φ_ ) = 0 _,_ in Ω; _ξ∂tφ_ + _ε∂nφ_ + _g_ <sup>_′_</sup> ( _φ_ ) = 0 _,_ on Γ; _∂nφ_ = 0 _,_ on _∂_ Ω _\_ Γ _._ (17) Similar to the analysis in the previous section, it is easy to see that the equation (17) can be derived by using the Onsager principle for the Reighleignian (12). In the following, we will use the Onsager principle to do some approximations for the equation (17). Since _ε_ is a small parameter, standard asymptotic analysis (c.f. [47, 11]) implies that the solution of (17) can be expanded with respect to _ε_ as _φ_ ( _x, t_ ) = _φ_ 0( _x, t_ ) + _εφ_ 1( _x, t_ ) + _· · ·_ _,_ where _φ_ 0( _x, t_ ) = tanh( <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x,t</u>_</sup> 2 _ε_ <sup><u>)</u></sup> <sup>)</sup> <sup>and</sup> <sup>_d_</sup> <sup>(</sup> <sup>_x, t_</sup> <sup>)</sup> <sup>is</sup> <sup>a</sup> <sup>signed</sup> <sup>distance</sup> <sup>function</sup> <sup>with</sup> <sup>respect</sup> <sup>to</sup> <sup>the</sup> <sup>zero</sup> <sup>level</sup> <sup>set</sup> of _φ_ 0( _x, t_ ) such that _d_ ( _x, t_ ) _>_ 0 when _φ_ 0( _x, t_ ) _>_ 0. When we are interested only in the leading order approximation of _φ_, we can assume - _<u>d</u>_ <u>(</u> _<u>x, t</u>_ <u>)</u> _~~√~~_ - _<u>d</u>_ <u>(</u> _<u>x, t</u>_ <u>)</u> _~~√~~_ 2 _ε_ _._ (18) _φ_ ( _x, t_ ) _≈_ _φ_ 0( _x, t_ ) = Ψ 2 _ε_ := tanh In this approximation, the only unknown is the signed distance function _d_ ( _x, t_ ) with respect to the zero level set of _φ_ 0. 6 We now derive a dynamic equation for the signed distance function _d_ ( _x, t_ ) by using the Onsager Principle. It is easy to see that Ψ <sup>_′_</sup> ( _·_ ) = 1 _−_ Ψ <sup>2</sup> ( _·_ ). Direct calculations give <u>1</u> _∇φ ≈_ _~~√~~_ <u>1</u> _~~√~~_ 2 _ε_ <sup>Ψ</sup> <sup>_′_</sup> <sup>�</sup> <sup>_<u>d</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> 2 _ε_ <sup><u>)</u></sup> <u>1</u> _~~√~~_ 2 _ε_ <sup>Ψ</sup> <sup>_′_</sup> <sup>�</sup> <sup>_<u>d</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> 2 _ε_ <sup><u>)</u></sup> 2 _ε_ 1 _−_ Ψ <sup>2�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> <sup><u>)</u></sup> 2 _ε_ 1 _−_ Ψ <sup>2�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> <sup><u>)</u></sup> �� <u>1</u> _∇d_ = _~~√~~_ 2 _ε_ <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> 0 <sup>2)</sup> <sup>_∇d,_</sup> �� <u>1</u> _∇d_ = _~~√~~_ - <u>1</u> _∇d_ = _~~√~~_ 2 _ε_ - <u>1</u> _∇d_ = _~~√~~_ <u>1</u> _∂tφ ≈_ _~~√~~_ 2 _ε_ 1 _−_ Ψ <sup>2�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> <sup><u>)</u></sup> 2 _ε_ 1 _−_ Ψ <sup>2�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> <sup><u>)</u></sup> �� <u>1</u> _∂td_ = _~~√~~_ 2 _ε_ <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> 0 <sup>2)</sup> <sup>_∂td._</sup> �� <u>1</u> _∂td_ = _~~√~~_ - <u>1</u> _∂td_ = _~~√~~_ 2 _ε_ - <u>1</u> _∂td_ = _~~√~~_ Combing the above approximations with (18), the energy dissipation function (defined in (11)) in the system can be calculated as <u>1</u> Φ _≈_ 4 _ε_ <sup>2</sup> Ω _<u>ξ</u>_ (1 _−_ _φ_ <sup>2</sup> 0 <sup>)2(</sup> <sup>_∂td_</sup> <sup>)2d</sup> <sup>_x_</sup> <sup>+</sup> 4 _ε_ <sup>2</sup> _<u>ξ</u>_ <sup>2</sup> 0 <sup>)2(</sup> <sup>_∂td_</sup> <sup>)2d</sup> <sup>_x_</sup> <sup>+</sup> 4 _ε_ <sup>2</sup> Γ (1 _−_ _φ_ <sup>2</sup> 0 <sup>)2(</sup> <sup>_∂td_</sup> <sup>)2d</sup> <sup>_s_</sup> (19) (1 _−_ _φ_ <sup>2</sup> 0 = <sup><u>1</u></sup> _ε_ <sup>2</sup> Ω _f_ ( _φ_ 0)( _∂td_ ) <sup>2</sup> d _x_ + <sup>_<u>ξ</u>_</sup> _ε_ <sup>2</sup> _f_ ( _φ_ 0)( _∂td_ ) <sup>2</sup> d _x_ + <sup>_<u>ξ</u>_</sup> _f_ ( _φ_ 0)( _∂td_ ) <sup>2</sup> d _s._ (20) Γ Similar calculations for the total free energy(defined in (9)) lead to _g_ ( _φ_ 0)d _s._ (21) Γ _Eε_ _≈_ Ω <u>1</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)(</sup> <sup>_|∇d_</sup> <sup>(</sup> <sup>_x, t_</sup> <sup>)</sup> <sup>_|_</sup> <sup>2 + 1)d</sup> <sup>_x_</sup> <sup>+</sup> The time derivative of _Eε_ is calculated by 2 _ε_ <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)</sup> <sup>_∇d · ∇∂td_</sup> <sup>+</sup> <sup><u>(1 +</u></sup> <sup>_<u>|∇</u>_</sup> _ε_ <sup>_<u>d|</u>_</sup> <sup>2)</sup> _<u>td</u>_ 2 _ε_ <sup>d</sup> <sup>_x_</sup> <sup>+</sup> Γ - _<u>∂td</u>_ _~~√~~_ 2 _ε_ <sup>d</sup> <sup>_s_</sup> _E_ ˙ _ε_ _≈_ = Ω Ω _−_ <sup><u>2</u></sup> _ε_ <sup><u>2</u></sup> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)∆</sup> <sup>_d∂td_</sup> <sup>+</sup> <sup><u>(1</u></sup> <sup>_<u>−|∇</u>_</sup> _ε_ <sup>_<u>d|</u>_</sup> <sup>2)</sup> <sup>_<u>|∇</u>_</sup> _ε_ <sup>_<u>d|</u>_</sup> <sup>2)</sup> _f_ <sup>_′_</sup> ( _φ_ 0)Ψ <sup>_′_</sup> <sup>�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> 2 _ε_ <sup><u>)</u></sup> - _<u>∂td</u>_ _~~√~~_ _g_ <sup>_′_</sup> ( _φ_ 0)Ψ <sup>_′_</sup> <sup>�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> <sup><u>)</u></sup> 2 _ε_ 2 _ε_ _<u>td</u>_ 2 _ε_ <sup>d</sup> <sup>_x_</sup> <sup>+</sup> _∂_ Ω _\_ Γ _ε_ <sup>_<u>d|</u>_</sup> <sup>2)</sup> _f_ <sup>_′_</sup> ( _φ_ 0)Ψ <sup>_′_</sup> <sup>�</sup> <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x, t</u>_</sup> 2 _ε_ <sup><u>)</u></sup> - _<u>∂td</u>_ _~~√~~_ <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)</sup> <sup>_∂nd∂td_</sup> <sup>d</sup> <sup>_s_</sup> + Γ = _−_ Ω _≈−_ Ω 0 <sup>)</sup> _~~√~~_ <sup>_<u>∂td</u>_</sup> <sup>2</sup> 2 <u>2</u> 0 _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)</sup> <sup>_∂nd∂td_</sup> <sup>+</sup> <sup>_g′_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)(1</sup> <sup>_−_</sup> <sup>_φ_</sup> <sup>2</sup> <sup>_<u>d</u>_</sup> 2 _ε_ <sup>d</sup> <sup>_s_</sup> _∂_ Ω _\_ Γ <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)</sup> <sup>_∂nd∂td_</sup> <sup>d</sup> <sup>_s_</sup> <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)∆</sup> <sup>_d∂td_</sup> <sup>d</sup> <sup>_x_</sup> <sup>+</sup> <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)∆</sup> <sup>_d∂td_</sup> <sup>d</sup> <sup>_x_</sup> <sup>+</sup> Γ Γ <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)(</sup> <sup>_∂nd −_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>)</sup> <sup>_∂td_</sup> <sup>d</sup> <sup>_s_</sup> <sup>+</sup> <u>2</u> _ε_ <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)(</sup> <sup>_∂nd −_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>)</sup> <sup>_∂td_</sup> <sup>d</sup> <sup>_s._</sup> In the derivations, we have used integration by part in the second equation, and used the facts that _|∇d|_ = 1, _~~√~~_ <u>2</u> <u>0</u> <sup><u>)2</u></sup> _g_ <sup>_′_</sup> ( _φ_ 0) = _−_ 2 <sup>cos</sup> <sup>_θY_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> 0 <sup>2)</sup> <sup>and</sup> <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0) =</sup> <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> 4 <sup>_<u>φ</u>_</sup> <sup>2</sup> in the third equation. In the last equation, we ignore the integral term on _∂_ Ω _\_ Γ, since _f_ ( _φ_ 0) _≈_ _f_ ( _−_ 1) = 0 on _∂_ Ω _\_ Γ. This can be seen from the equation (18) when the liquid-vapor interface _{x|φ_ 0( _x, t_ ) = 0 _}_ is far from the boundary _∂_ Ω _\_ Γ. _~~√~~_ 22 <sup>cos</sup> <sup>_θY_</sup> <sup>(1</sup> <sup>_−_</sup> <sup>_φ_</sup> 0 <sup>2)</sup> <sup>and</sup> <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0) =</sup> <sup><u>(1</u></sup> <sup>_<u>−</u>_</sup> 4 <sup>_<u>φ</u>_</sup> <u>0</u> <sup>2)2</sup> The Rayleighian is approximated by _R_ = Φ + _E_ <sup>˙</sup> _ε_ _≈_ <sup><u>1</u></sup> _ε_ <sup>2</sup> Ω ( _∂td_ ) <sup>2</sup> _−_ 2 _ε_ ∆ _d∂td_ _ε_ <sup>2</sup> _f_ ( _φ_ 0) d _x_ + <sup><u>1</u></sup> _f_ ( _φ_ 0)( _ξ∂td_ + 2 _ε_ ( _∂nd −_ cos _θY_ )) _∂td_ d _s._ Γ It is easy to see that Fr´echet derivative of _R_ with respect to _∂td_ is given by _⟨_ <sup>_<u>δR</u>_</sup> _δ_ ( _∂td_ ) <sup>_, ψ⟩≈_</sup> Ω <u>2</u> _ε_ <sup>2</sup> <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)(</sup> <sup>_∂td −_</sup> <sup>_ε_</sup> <sup>∆</sup> <sup>_d_</sup> <sup>)</sup> <sup>_ψ_</sup> <sup>d</sup> <sup>_x_</sup> <sup>+</sup> Γ <u>2</u> _ε_ <sup>2</sup> <sup>_f_</sup> <sup>(</sup> <sup>_φ_</sup> <sup>0)(</sup> <sup>_ξ∂td_</sup> <sup>+</sup> <sup>_ε∂nd −_</sup> <sup>_ε_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>)</sup> <sup>_ψ_</sup> <sup>d</sup> <sup>_s_</sup> By using the Onsager principle, the dynamic equation for _d_ is obtained by minimizing the approximated Rayleighian with respect to _∂td_ . This leads to a linear heat equation for _d_, - _∂td −_ _ε_ ∆ _d_ = 0 _,_ in Ω; (22) _ξ∂td_ + _ε_ ( _∂nd −_ cos _θY_ ) = 0 _,_ on Γ _._ 7 We can see that when _ξ_ = 0, the condition on Γ is a standard Neumann boundary condition; and when _ξ_ _>_ 0, it is a linear dynamic boundary condition. The equation (22) is much easier to solve than (17) since it is a linear equation with a linear boundary condition. However, the property _|∇d|_ = 1 is not preserved by the solution of the heat equation (22). Therefore, tanh( <sup>_<u>d</u>_</sup> _~~√~~_ <sup><u>(</u></sup> <sup>_<u>x,t</u>_</sup> 2 _ε_ <sup><u>)</u></sup> <sup>)</sup> <sup>is</sup> <sup>a</sup> <sup>good</sup> <sup>approximation</sup> <sup>for</sup> <sup>the</sup> <sup>solution</sup> <sup>of</sup> <sup>(17)</sup> <sup>only</sup> <sup>when</sup> <sup>_t_</sup> <sup>is</sup> <sup>small.</sup> <sup>Nevertheless,</sup> it is enough for us to derive a numerical scheme if we re-distance the solution of (22) every time step. _4.2._ _The_ _numerical_ _scheme_ We will construct a numerical method for the wetting problem (8). It includes the following three main steps: first to solve the linear diffusion equation (22), then to re-distance its solution, thirdly to correct the volume of the liquid domain. More details are described as follows. _Solving_ _a_ _heat_ _equation._ Given a signed distance function _dk_, suppose that the liquid phase is given by _D_ 1 <sup>_k_</sup> <sup>=</sup> <sup>_{x_</sup> <sup>:</sup> <sup>_dk_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>_}_</sup> <sup>and</sup> <sup>such</sup> <sup>that</sup> <sup>_|D_</sup> 1 <sup>_k|_</sup> <sup>=</sup> <sup>_V_</sup> <sup>0.</sup> <sup>We</sup> <sup>first</sup> <sup>solve</sup> <sup>the</sup> <sup>following</sup> <sup>heat</sup> <sup>equation</sup> <sup>until</sup> <sup>time</sup> <sup>_δt_</sup> <sup>:</sup> 1 <sup>_k_</sup> <sup>=</sup> <sup>_{x_</sup> <sup>:</sup> <sup>_dk_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>_}_</sup> <sup>and</sup> <sup>such</sup> <sup>that</sup> <sup>_|D_</sup> 1 <sup>_k|_</sup> <sup>=</sup> <sup>_V_</sup> <sup>0.</sup> <sup>We</sup> <sup>first</sup> <sup>solve</sup> <sup>the</sup> <sup>following</sup> <sup>heat</sup> <sup>equation</sup> <sup>until</sup> <sup>time</sup> <sup>_δt_</sup> <sup>:</sup>  _∂tϕ −_ ∆ _ϕ_ = 0 _,_ in Ω;  (23)  _∂tϕ −_ ∆ _ϕ_ = 0 _,_ in Ω; _ξ∂tϕ_ + _∂nϕ_ = cos _θY,_ on Γ; _ϕ_ ( _x,_ 0) = _dk_ ( _x_ ) _._ The equation is equivalent to (22) after a time scaling. In the above equation, we have not fixed the condition for _ϕ_ on the boundary _∂_ Ω _\_ Γ. Since we assume the boundary is far from the liquid-vapor interface, we could choose the boundary condition freely. For example, we can choose a Dirichlet boundary condition _ϕ_ = _dk_ ( _x_ ) or a Neumann boundary condition _∂nϕ_ = 0. In our simulations, we simply set _∂nϕ_ = 0 on _∂_ Ω _\_ Γ. Since the equation (23) is a linear diffusion equation, many standard numerical methods can be used. In our simulations, we use the backward Euler scheme to discretize the time derivative that _∂tϕ_ = <sup>_<u>ϕn</u>_</sup> <sup>+1</sup> _δt_ <sup>_<u>−ϕn</u>_</sup>, where _δt_ is the time step size. For the Laplace operator, we adopt the standard five point finite difference scheme to discretize it. Namely, for a uniform partition of Ω= ( _x_ 0 _, x_ 1) _×_ ( _y_ 0 _, y_ 1) with mesh size _h_, for the grid points inside Ω, we set _ϕ_ <sup>_n_</sup> _<u>i,j</u>_ <sup>+1</sup> <sup>_n_</sup> _<u>i</u>_ <u>+1</u> <sup>+1</sup> _<u>,j</u>_ <sup>+</sup> <sup>_ϕn_</sup> _<u>i,j</u>_ <sup>+1</sup> <u>+1</u> <sup>_n_</sup> _<u>i,j</u>_ <sup>+1</sup> <u>+1</u> <sup>+</sup> <sup>_ϕn_</sup> _<u>i,j</u>_ <sup>+1</sup> _<u>−</u>_ _<u>i,j</u>_ = 0 _._ _h_ <sup>2</sup> <sup>_n_</sup> _<u>i,j</u>_ <sup>+1</sup> _<u>−</u>_ <u>1</u> <sup>_−_</sup> <sup>4</sup> <sup>_ϕ_</sup> _<u>i,j</u>_ <sup>_n_</sup> <sup>+1</sup> <sup>_n_</sup> _<u>i,j</u>_ <sup>+1</sup> _−_ _ϕ_ <sup>_n_</sup> _<u>i,j</u>_ _<u>i,j</u>_ _−_ _δt_ _ϕ_ <sup>_n_</sup> _<u>i−</u>_ <sup>+1</sup> <u>1</u> <sup>_n_</sup> _<u>i−</u>_ <sup>+1</sup> <u>1</u> _<u>,j</u>_ <sup>+</sup> <sup>_ϕn_</sup> _<u>i</u>_ <u>+1</u> <sup>+1</sup> On the lower boundary Γ, we discretize a dynamic boundary condition as follows, <sup>_n_</sup> _<u>i</u>_ <u>+1</u> <sup>+1</sup> _<u>,</u>_ <u>1</u> <sup>+ 2</sup> <sup>_ϕ_</sup> _<u>i,</u>_ <sup>_n_</sup> <sup>+1</sup> <u>2</u> <sup>+ 2</sup> <sup>_ϕ_</sup> _<u>i,</u>_ <sup>_n_</sup> <sup>+1</sup> <u>2</u> _−_ 4 _ϕ_ <sup>_n_</sup> _<u>i,</u>_ <sup>+1</sup> <u>1</u> = <sup><u>2 cos</u></sup> <sup>_<u>θY</u>_</sup> _h_ <sup>2</sup> _h_ _<u>i,</u>_ <sup>_n_</sup> <sup>+1</sup> <u>2</u> _−_ 4 _ϕ_ <sup>_n_</sup> _<u>i,</u>_ <sup>+1</sup> <u>1</u> <sup>_<u>θY</u>_</sup> _._ _h_ (1 + <sup><u>2</u></sup> <sup>_<u>ξ</u>_</sup> _h_ <sup>)</sup> (1 + <sup><u>2</u></sup> <sup>_<u>ξ</u>_</sup> _h_ _ϕ_ <sup>_n_</sup> _<u>i,</u>_ <sup>+1</sup> <u>1</u> <sup>_n_</sup> _<u>i,</u>_ <sup>+1</sup> <u>1</u> _−_ _ϕ_ <sup>_n_</sup> _<u>i,</u>_ _<u>i,</u>_ <u>1</u> _−_ _δt_ _ϕ_ <sup>_n_</sup> _<u>i−</u>_ <sup>+1</sup> <u>1</u> _<u>,</u>_ <sup>_n_</sup> _<u>i−</u>_ <sup>+1</sup> <u>1</u> _<u>,</u>_ <u>1</u> <sup>+</sup> <sup>_ϕn_</sup> _<u>i</u>_ <u>+1</u> <sup>+1</sup> _<u>,</u>_ It is a combination of the discretization of the linear diffusion equation and the discretization of dynamic relaxed boundary conditions. When _ξ_ = 0, this equation is reduced to the standard finite difference discretization of the Neumann boundary condition. For simplicity in notations, we denote the process of solving the heat equation (23) by _ϕ_ ( _x, δt_ ) = EquSolver( _dk, δt_ ) _._ _The_ _re-distance_ _of_ _the_ _function_ _ϕ._ Since the solution _ϕ_ ( _x, δt_ ) is not a signed distance function, we need to transform it into a signed distance function while keeping its zero level set unchanged. Denote by _d_ <sup>˜</sup> _k_ +1 the signed distance function with respect to _ϕ_ ( _x, δt_ ), satisfying _∇d_ <sup>˜</sup> _k_ +1 = <sup>_<u>∇ϕ</u>_</sup> <sup><u>(</u></sup> <sup>_<u>x, δt</u>_</sup> <sup><u>)</u></sup> _|∇ϕ_ ( _x, δt_ ) _|_ on the interface. Computing _d_ <sup>˜</sup> _k_ +1 from _ϕ_ ( _x, δt_ ) is the standard re-distance process in the level-set method. Many efficient algorithms have been developed(e.g. [48, 49, 50, 51, 52]). Here we adopt the method based on a fast marching technique [48]. We denote the re-distance process by _d_ ˜ _k_ +1 = Redist( _ϕ_ ( _x, δt_ )) _._ 8 _Correction_ _of_ _the_ _volume._ Finally, notice that the volume of the domain surrounded by the zero level-set of _d_ <sup>˜</sup> _k_ +1 is not equal to the initial value _V_ 0. To preserve the volume of the liquid domain, we need to make some correction for _d_ <sup>˜</sup> _k_ +1 as in the volume-preserving threshold dynamics method [53]. We first search for a constant _δ_ <sup>_∗_</sup> such that the domain _|{x|d_ <sup>˜</sup> _k_ +1( _x_ ) _> δ_ <sup>_∗_</sup> _}|_ = _V_ 0, and then set _dk_ +1( _x_ ) = _d_ <sup>˜</sup> _k_ +1( _x_ ) _−_ _δ_ <sup>_∗_</sup> _._ Generally speaking, to find a constant _δ_ <sup>_∗_</sup> efficiently is not easy[53, 26, 54]. In our numerical simulations, we use a simple bisection method. For that purpose, we must have an interval containing _δ_ <sup>_∗_</sup> . For that purpose, we first find an estimate of _δ_ <sup>_∗_</sup> using the method of counting the grid number as in [12]. Suppose we have a uniform partition for Ωwith mesh size _h_ . We sort the values _d_ <sup>˜</sup> _k_ +1( _xij_ ) on the grid points into a decreasing array _S_ . Then _δ_ <sup>_∗_</sup> can be approximated roughly by a value _δ_ <sup>ˆ</sup> = ( _S_ ( _M_ ) + _S_ ( _M_ + 1)) _/_ 2, where _M_ = _⌊V_ 0 _/h_ <sup>2</sup> _⌋_, the integer part of _V_ 0 _/h_ <sup>2</sup> . We then easily extend it into a small interval which contains _δ_ <sup>_∗_</sup> . Repeat the above three steps iteratively. We get a series of signed distance function _dk_, _k_ = 0 _,_ 1 _, · · ·_ . Each _dk_ corresponds to a liquid domain _D_ 1 <sup>_k_</sup> <sup>satisfying</sup> <sup>_|D_</sup> 1 <sup>_k|_</sup> <sup>=</sup> <sup>_V_</sup> <sup>0.</sup> <sup>We</sup> <sup>expect</sup> <sup>that</sup> <sup>_{D_</sup> 1 <sup>_k, D_</sup> 2 <sup>_k}_</sup> <sup>with</sup> <sup>_D_</sup> 2 <sup>_k_</sup> <sup>:=</sup> <sup>Ω</sup> <sup>_\ D_</sup> 1 <sup>_k_</sup> gives an energy decreasing sequence for the problem (8). (The property will be studied in next section.) This leads to the following diffusion generated motion algorithm for the wetting problem. Algorithm 1 Step 0 . Give an initial signed distance function _d_ 0 such that _|{x|d_ 0( _x_ ) _>_ 0 _}|_ = _V_ 0, a constant tolerance _TOL_, and set _k_ = 0. Step 1 . Solve the heat equation (23) with initial function _dk_ until a time _δt_ (only one implicit Euler step) to obtain _ϕ_ ( _x, δt_ ) = EquSolver( _dk, δt_ ) _._ (24) Step 2 . Construct the signed distance function _d_ <sup>˜</sup> _k_ +1 from _ϕ_ ( _x, δt_ ) _d_ ˜ _k_ +1 = Redist( _ϕ_ ( _x, δt_ )) _._ (25) Step 3 . Find a constant _δ_ <sup>_∗_</sup> such that the domain _|{x|d_ <sup>˜</sup> _k_ ( _x_ ) _> δ_ <sup>_∗_</sup> _}|_ = _V_ 0. Set _dk_ +1( _x_ ) = _d_ <sup>˜</sup> _k_ +1( _x_ ) _−_ _δ_ <sup>_∗_</sup> _._ Step 4 . If _∥dk_ +1 _−_ _dk∥_ _< TOL_, stop. Otherwise, set _k_ = _k_ + 1 and go back to Step 1 . The algorithm is much more efficient than directly solving the modified Allen-Cahn equation (16), since we avoid to resolve the very thin inner layer induced by a small parameter _ε_ and also avoid the nonlinear boundary condition on Γ. Notice that the parameter _ξ_ in the dynamic boundary condition in (23) can be regarded as an adjustable parameter when we are only interested in the stationary state of wetting problems. Finally, if the boundary condition is replaced by a periodic boundary condition, the method is reduced to the standard method in [25] for mean curvature flows. Here the main difference is that we use a dynamic boundary condition, which is used to describe the contact angle condition in wetting problems. 5. Energy stability analysis We study the energy stability property for Algorithm 1 in this section. As mentioned above, for any given _d_ 0, which corresponds to a liquid domain _D_ 1 <sup>0</sup> <sup>=</sup> <sup>_{x|d_</sup> <sup>0(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>_}_</sup> <sup>,</sup> <sup>the</sup> <sup>algorithm</sup> <sup>generates</sup> <sup>a</sup> <sup>sequence</sup> <sup>of</sup> given _d_ 0, which corresponds to a liquid domain _D_ 1 <sup>0</sup> <sup>=</sup> <sup>_{x|d_</sup> <sup>0(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>_}_</sup> <sup>,</sup> <sup>the</sup> <sup>algorithm</sup> <sup>generates</sup> <sup>a</sup> <sup>sequence</sup> <sup>of</sup> _dk_ . Each _dk_ corresponds to a liquid domain _D_ 1 <sup>_k_</sup> <sup>=</sup> <sup>_{x|dk_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>_}_</sup> <sup>.</sup> <sup>This implies that Algorithm 1 generates a</sup> _dk_ . Each _dk_ corresponds to a liquid domain _D_ 1 <sup>_k_</sup> <sup>=</sup> <sup>_{x|dk_</sup> <sup>(</sup> <sup>_x_</sup> <sup>)</sup> <sup>_>_</sup> <sup>0</sup> <sup>_}_</sup> <sup>.</sup> <sup>This implies that Algorithm 1 generates a</sup> (discrete) evolution of a liquid domain. We will prove the total wetting energy (7) corresponding to the liquid domain _D_ 1 <sup>_k_</sup> <sup>(by</sup> <sup>setting</sup> <sup>_D_</sup> 2 <sup>_k_</sup> <sup>=</sup> <sup>Ω</sup> <sup>_\ D_</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>decays</sup> <sup>when</sup> <sup>_k_</sup> <sup>increases.</sup> <sup>For</sup> <sup>that</sup> <sup>purpose,</sup> <sup>we</sup> <sup>will</sup> <sup>first</sup> <sup>reformulate</sup> domain _D_ 1 <sup>_k_</sup> <sup>(by</sup> <sup>setting</sup> <sup>_D_</sup> 2 <sup>_k_</sup> <sup>=</sup> <sup>Ω</sup> <sup>_\ D_</sup> 1 <sup>_k_</sup> <sup>)</sup> <sup>decays</sup> <sup>when</sup> <sup>_k_</sup> <sup>increases.</sup> <sup>For</sup> <sup>that</sup> <sup>purpose,</sup> <sup>we</sup> <sup>will</sup> <sup>first</sup> <sup>reformulate</sup> the main processes in Algorithm 1 into some geometric flows for the surface of the liquid domain. Then we will prove some energy decay property for the geometric flows. Hereinafter we restrict our analysis in two 9 dimensions. For simplicity, we assume the liquid domain _D_ 1 <sup>_k_</sup> <sup>is</sup> <sup>simply</sup> <sup>connected</sup> <sup>and</sup> <sup>we</sup> <sup>consider</sup> <sup>only</sup> <sup>the</sup> case _ξ_ = 0 in (23), which corresponds to a standard Neumann boundary condition: _∂nϕ_ = cos _θY ._ (26) _5.1._ _The_ _approximate_ _geometric_ _flows_ _for_ _Algorithm_ _1_ We first consider Step 1 in Algorithm 1. When _δt_ is small and _ξ_ = 0, the zero level set of the solution of the linear diffusion equation (23) approximates a mean curvature flow problem starting from a curve _{x_ _∈_ Ω _| dk_ ( _x_ ) = 0 _}_ with the contact angle being given by Young’s angle _θY_ . Here a mean curvature flow denotes a geometric flow for a curve which evolves with the normal velocity equal to its local (mean) curvature. When the zero level set of _ϕ_ has no intersection with the solid boundary Γ, the relation between the solution of the heat equation and the mean curvature flow has been shown in [25]. The approximation error is of order _O_ ( _δt_ <sup>2</sup> )(c.f. Equation (66)-(67) in [25]). The analysis still works for (23) for the inner points on the zero level set of _ϕ_ ( _x, δt_ ). We need only to study the contact angle condition. On the zero level set of _ϕ_ ( _x, δt_ ), its normal direction is given by _|∇∇ϕϕ|_ <sup>.</sup> <sup>The</sup> <sup>contact</sup> <sup>angle</sup> <sup>_θ_</sup> <sup>between</sup> <sup>the</sup> <sup>zero</sup> <sup>level</sup> <sup>set</sup> <sup>of</sup> <sup>_ϕ_</sup> <sup>(</sup> <sup>_x, δt_</sup> <sup>)</sup> and the solid boundary Γ satisfies <u>1</u> <u>1</u> cos _θ_ = <sup>_<u>∇ϕ</u>_</sup> (27) _|∇ϕ|_ <sup>_·_</sup> <sup>n</sup> <sup>=</sup> _|∇ϕ|_ <sup>_∂nϕ_</sup> <sup>=</sup> _|∇ϕ|_ <sup>cos</sup> <sup>_θY ._</sup> Here we have used the boundary condition for _ϕ_ on Γ. The analysis(c.f. Equation (30) in [25]) shows that _|∇ϕ_ ( _x, δt_ ) _| ≈|∇ϕ_ ( _x,_ 0) _|_ + _O_ ( _δt_ ) = 1 + _O_ ( _δt_ ) _,_ in the vicinity of the zero level set of _ϕ_ . Therefore (27) implies that _θ_ _≈_ _θY_ + _O_ ( _δt_ ). In all, Step 1 of Algorithm 1 leads to a mean curvature flow for the surface of the liquid domain with a contact angle _θ_ _≈_ _θY_ . For Step 2 in Algorithm 1, i.e. the re-distance step, the zero level-set of _d_ <sup>˜</sup> _k_ +1 is the same as that for _ϕ_ ( _x, δt_ ). This implies the liquid domain is unchanged in this step. Then we need only further consider Step 3 (the volume correction step) in Algorithm 1. Since _d_ <sup>˜</sup> _k_ +1 is a signed distance function, it is easy to see that the volume correction step corresponds to a motion of the zero level-set of _d_ <sup>˜</sup> _k_ +1 with a constant normal velocity. More precisely, the zero level-set of _dk_ +1 is obtained by moving the zero level-set of _d_ <sup>˜</sup> _k_ +1 in a constant normal velocity equal to _−_ 1 until a time _δ_ <sup>_∗_</sup> . By the above analysis, one iteration of Algorithm 1 can be approximated by two geometric flows (a mean curvature flow and a constant normal velocity flow) for the surface of a liquid domain. For convenience in later analysis, we characterize the two geometric flows more precisely as follows. _•_ Process 1. At _t_ = _t_ 0 = 0, _dk_ gives a droplet with a free boundary curve _L_ 0(as shown in Figure 2). The boundary _L_ ( _t_ ) := _{_ _X_ ( _s, t_ ) : 0 _≤_ _s_ _≤_ _L_ ( _t_ ) _}_ of the droplet evolves under a mean curvature flow in the sense that _vn_ = _κ_ and the boundary condition that _θ_ 0 = _θ_ 1 = _θY_ . Here _s_ is the arc-length parameter, _L_ ( _t_ ) is the length of the curve _L_ ( _t_ ) at time _t_, and _θi_ with _i_ = 0 _,_ 1 are the contact angles at the two ends of _L_ ( _t_ ). This process ends until _t_ 1 = _t_ 0 + _δt_ and then we denote _L_ 1 = _L_ ( _t_ 1). In this process, the volume of the droplet is denoted by _A_ ( _t_ ) which decreases with time. We set _A_ 0 = _A_ ( _t_ 0) = _V_ 0 and _A_ 1 = _A_ ( _t_ 1). _•_ Process 2. Starting from _L_ 1 at _t_ = _t_ 1, the boundary _L_ <sup>ˆ</sup> ( _t_ ) := _{_ _X_ <sup>ˆ</sup> ( _s, t_ ) : 0 _< s <_ _L_ <sup>ˆ</sup> ( _t_ ) _}_ of the droplet moves under a constant velocity flow with _vn_ = _−_ 1. Here _s_ is the arc-length parameter and _L_ <sup>ˆ</sup> ( _t_ ) is the length of the curve _L_ <sup>ˆ</sup> ( _t_ ) at time _t_ . Notice that we have set _L_ <sup>ˆ</sup> ( _t_ 1) = _L_ 1. If we denote the volume of the droplet as _A_ ( _t_ ) in the process, it is an increasing function with respect to time _t_ such that _A_ ( _t_ 1) = _A_ 1. The process ends until _t_ 2 = _t_ 1 + _δ_ <sup>_∗_</sup> such that the liquid volume corresponding to _L_ <sup>ˆ</sup> ( _t_ 2) is equal to that to _L_ 0, namely _A_ ( _t_ 2) = _A_ 0 = _V_ 0. Here we use different notations _L_ and _L_ <sup>ˆ</sup> for the curve of a droplet in the two different processes. We will show the total energy decreases after an iteration of Process 1 and Process 2. In the following proof, we further assume the contact angle of _L_ <sup>ˆ</sup> ( _t_ ) in Process 2 are also keep fixed so that _θi_ = _θY_ for _i_ = 0 _,_ 1. 10 Figure 2: The evolving curve with constraints This can be guaranteed when the contact angle is smaller than 90 <sup>_o_</sup> under a proper extension of the level-set function under the solid boundary when we do the re-distance step. Otherwise, the contact angle may deviate slightly from _θY_ when _δ_ <sup>_∗_</sup> is small. _5.2._ _Energy_ _decay_ _property_ _for_ _the_ _geometric_ _flows_ In the following, we will analyse the energy decay property of an iteration of Process 1 and Process 2. This is based on a careful analysis of the properties of the corresponding geometric flows in the two processes. We first introduce some results for a general geometric flow for a curve with both ends on a substrate. As shown in Figure 2, we consider a smooth curve on a substrate, which represents the surface of a liquid droplet. The liquid domain is simply connected so that the curve does not intersect itself. For simplicity, we assume the curve can be represented by a function in a polar coordinate as _{_ _X_ ( _ω_ ) : 0 _≤_ _ω_ _≤_ _π}_ . The curve evolves with time and can be noted by _{_ _X_ ( _ω, t_ ) _}_ . Its length is given by _L_ ( _t_ ). Notice that the curve can also be represented in an arclength parameter _s_ that _{_ _X_ ( _s, t_ ) : 0 _≤_ _s_ _≤_ _L_ ( _t_ ) _}_ . Then we have _T_ = _∂s_ _X_ = and _∂s_ _T_ = _κ_ _N_ . Here _N_ and _T_ are respectively the unit normal vector and the unit tangential vector on the curve. _N_ is obtained by rotating _T_ for 90 <sup>_o_</sup> degrees in the counter-clockwise direction. _κ_ ( _s_ ) is the curvature of the curve, which is positive when the center of the circle of curvature is in the same direction of _N_ . In addition, we have the relation that _∂ω_ _X_ = _|∂ω_ _X_ _|_ _T_ and d _ω_ = _|∂ω_ _X_ _|_ d _s_ . Here _| · |_ is the norm of a vector in R <sup>2</sup> . We use _vn_ and _vs_ to represent the radial and tangential components of velocity respectively. Then the velocity can be written as _X_ _t_ = _v_ = _v_ _n_ + _v_ _s_ = _vn_ _N_ + _vs_ _T_ _._ We are interested in how the length of the curve and the area of the liquid domain (enclosed by the curve and substrate) change when the curve evolves with time. This is given by the following lemma, which is adapted from the result for closed curves(see Section 3.2 in [55]). Lemma 1. _For_ _an_ _evolving_ _curve_ _as_ _shown_ _Figure_ _2,_ _let_ _L_ ( _t_ ) _be_ _the_ _length_ _of_ _the_ _curve,_ _and_ _A_ ( _t_ ) _be_ _the_ _area_ _enclosed_ _by_ _the_ _curve_ _and_ _the_ _lower_ _substrate._ _Then,_ _we_ _have_ <u>d</u> _<u>L</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _−_ d _t_ <u>d</u> _<u>A</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _−_ d _t_ - _L_ _κvn_ d _s_ + _vx_ (0) cos _θ_ 0 _−_ _vx_ ( _L_ ) cos _θ_ 1 _,_ (28) 0 - _L_ _vn_ d _s._ (29) 0 _where_ _θ_ 0 _and_ _θ_ 1 _are_ _respectively_ _the_ _contact_ _angles_ _at_ _the_ _points_ _corresponding_ _to_ _s_ = 0 _and_ _s_ = _L_ ( _t_ ) _;_ _vx_ (0) _and_ _vx_ ( _L_ ) _are_ _respectively_ _the_ _velocities_ _of_ _the_ _two_ _end_ _points_ _in_ _x_ _direction._ 11 _Proof._ For proof of (28) we argue as follows. Here we use _⟨·, ·⟩_ to donate inner product of the vector in R <sup>2</sup> . - _π_ 0 _<u>⟨∂tω</u>_ _<u>X</u>_ _<u>, ∂ω</u>_ _<u>X</u>_ _<u>⟩</u>_ _⟨∂ω_ _X_ _, ∂ω_ _X_ _⟩_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> <sup>d</sup> <sup>_ω_</sup> dd _t_ <sup>_L_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> d <sup><u>d</u></sup> _t_ - _π_ _⟨∂ω_ _X_ _, ∂ω_ _X_ _⟩_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> d _ω_ = 0 - _|∂ω_ _X_ _|_ <sup>_<u>∂</u>_</sup> _∂s_ <sup>(</sup> <sup>_vn_</sup> <sup>_N_</sup> <sup>+</sup> <sup>_vs_</sup> <sup>_T_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_T_</sup> - _|∂ω_ _X_ _|_ <sup>_<u>∂</u>_</sup> d _ω_ d _ω_ = - _π_ 0 = = - _π_ 0 - _L_ ( _t_ ) 0 - _<u>∂</u>_ _∂ω_ <sup>(</sup> <sup>_vn_</sup> <sup>_N_</sup> <sup>+</sup> <sup>_vs_</sup> <sup>_T_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_T_</sup> - _<u>∂</u>_ _∂s_ <sup>(</sup> <sup>_vn_</sup> <sup>_N_</sup> <sup>+</sup> <sup>_vs_</sup> <sup>_T_</sup> <sup>)</sup> <sup>_,_</sup> <sup>_T_</sup> d _s_ - _L_ ( _t_ ) = _−_ _vnκ_ d _s_ + 0 - _L_ ( _t_ ) _∂svs_ d _s_ = _−_ 0 - _L_ ( _t_ ) _vnκ_ d _s_ + _vs_ ( _L_ ) _−_ _vs_ (0) _._ 0 In the last second derivation, we have used the geometric equation that _∂s_ _N_ = _−κ_ _T_ . Since the two end points can only move in horizontal direction, we have the constraint _vs_ ( _L_ ) = _−vx_ ( _L_ ) cos _θ_ 1 _,_ _vs_ (0) = _−vx_ (0) cos _θ_ 0 _._ (30) Then we have proved the equation (28). The proof of (29) can be done as follows. Notice that the curve can also be written as _X_ ( _ω, t_ ) = _ρ_ ( _ω, t_ ) _r_ ( _ω_ ), where _r_ ( _ω_ ) is the unit vector in the radial direction. Then we have _∂ω_ _X_ ( _ω, t_ ) = _∂ωρ_ ( _ω, t_ ) _r_ ( _ω_ ) + _ρ_ ( _ω, t_ ) _⃗θ_ ( _ω_ ) _,_ where _⃗θ_ ( _ω_ ) is the unit vector in the angular direction. Then we have _∂tω_ _X_ ( _ω, t_ ) = _∂tωρ_ ( _ω, t_ ) _r_ ( _ω_ ) + _∂tρ_ ( _ω, t_ ) _⃗θ_ ( _ω_ ) _._ We define an outer product for vectors _a_ = ( _a_ 1 _, a_ 2) <sup>_T_</sup> _,_ _b_ = ( _b_ 1 _, b_ 2) <sup>_T_</sup> _∈_ R <sup>2</sup> (see Page 22 in [55]) as = _a_ 1 _b_ 2 _−_ _a_ 2 _b_ 1 _,_ [ _a_ _,_ _b_ ] := det - _a_ 1 _b_ 1 _a_ 2 _b_ 2 which is a bilinear operator for the two vectors. This leads to [ _X_ ( _ω, t_ ) _, ∂tω_ _X_ ( _ω, t_ )] = _ρ_ ( _ω, t_ ) _∂tρ_ ( _ω, t_ ) - _r_ ( _ω_ ) _,⃗θ_ ( _ω_ ) = _ρ_ ( _ω, t_ ) _∂tρ_ ( _ω, t_ ) _._ Then we have <u>1</u> - _π_ 2 <sup>(</sup> <sup>_ρ_</sup> <sup>(</sup> <sup>_ω, t_</sup> <sup>))2d</sup> <sup>_ω_</sup> <sup>=</sup> 0 _ρ_ ( _ω, t_ ) _∂tρ_ ( _ω, t_ )d _ω_ dd _t_ <sup>_A_</sup> <sup>(</sup> <sup>_t_</sup> <sup>) =</sup> d <sup><u>d</u></sup> _t_ - _π_ 0 - _π_ [ _X_ ( _ω, t_ ) _, ∂ω_ _v_ ( _ω, t_ )] d _ω_ 0 = - _π_ [ _X_ ( _ω, t_ ) _, ∂tω_ _X_ ( _ω, t_ )] d _ω_ = 0 - _π_ <sup>_π_</sup> 0 <sup>_−_</sup> = [ _X_ ( _ω, t_ ) _,_ _v_ ( _ω, t_ )] _|_ <sup>_π_</sup> 0 [ _∂ω_ _X_ ( _ω, t_ ) _,_ _v_ ( _ω, t_ )] d _ω_ 0 - _π_ [ _|∂ω_ _X_ _|_ _T_ _,_ _v_ ( _ω, t_ )] d _ω_ = _−_ 0 - _L_ ( _t_ ) _vn_ d _s._ 0 = _−_ = _−_ - _L_ ( _t_ ) [ _T_ _,_ _v_ ( _ω, t_ )] d _s_ 0 In the derivation, we have used the integration by part, the fact that all the vectors _v_ (0), _v_ ( _π_ ), _X_ (0) and _X_ ( _π_ ) are in the horizontal direction, [ _T_ _,_ _T_ ] = 0 and [ _T_ _,_ _N_ ] = 1. We finish the proof of the lemma. 12 In wetting problems, we mainly interested in the total surface energy in a liquid-vapor-solid system, which is defined in (7). For a droplet as in Figure 2, the wetting energy can be rewritten as _E_ ( _t_ ) = _γ_ ( _L_ ( _t_ ) _−|_ _X_ (0) _−_ _X_ ( _L_ ) _|_ cos _θY_ ) + _C._ Here _γ_ = _γLV_ and _C_ = _C_ 0 + <sup>_<u>γ</u>_</sup> 2 <sup>_|_</sup> <sup>Γ</sup> <sup>_|_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>.</sup> <sup>Here</sup> <sup>we</sup> <sup>assume</sup> <sup>that</sup> <sup>the</sup> <sup>contact</sup> <sup>angle</sup> <sup>_θY_</sup> <sup>is</sup> <sup>a</sup> <sup>constant</sup> <sup>on</sup> <sup>the</sup> solid surface Γ. Applying Lemma 1 directly yields, Lemma 2. _For_ _a_ _droplet_ _with_ _an_ _evolving_ _surface_ _as_ _shown_ _in_ _Figure_ _2,_ _the_ _total_ _wetting_ _energy_ _satisfies_ <u>d</u> _<u>E</u>_ <u>(</u> _<u>t</u>_ <u>)</u> = _−γ_ d _t_ - _L_ ( _t_ ) _κvn_ d _s_ + _γvx_ (0)(cos _θ_ 0 _−_ cos _θY_ ) _−_ _γvx_ ( _L_ )(cos _θ_ 1 _−_ cos _θY_ ) _,_ (31) 0 _Proof._ Apply Lemma 1 directly to get - _L_ _κvn_ d _s_ + _vx_ (0) cos _θ_ 0 _−_ _vx_ ( _L_ ) cos _θ_ 1 0 _−_ ( _vx_ (0) _−_ _vx_ ( _L_ )) cos _θY_ dd _t_ <sup>_L_</sup> <sup>(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_−_</sup> d <sup><u>d</u></sup> _t_ <sup>_|_</sup> <sup>_X_</sup> <sup>(0)</sup> <sup>_−_</sup> <sup>_X_</sup> <sup>(</sup> <sup>_L_</sup> <sup>)</sup> <sup>_|_</sup> <sup>cos</sup> <sup>_θY_</sup> <sup>=</sup> _−_ = _−_ - _L_ _κvn_ d _s_ + _vx_ (0)(cos _θ_ 0 _−_ cos _θY_ ) _−_ _vx_ ( _L_ )(cos _θ_ 1 _−_ cos _θY_ ) _._ 0 Gathering the results above readily gives the following properties for the geometric flows in Process 1 and Process 2 defined in Section 5.1. Lemma 3. _For the geometric flow in Process 1, in which the normal velocity is equal to the mean curvature(vn_ = _κ)_ _and_ _the_ _contact_ _angle_ _is_ _given_ _by_ _Young’s_ _angle,_ _we_ _have_ <u>d</u> _<u>E</u>_ d _t_ <sup>=</sup> <sup>_−γ_</sup> - _L_ ( _t_ ) _κ_ <sup>2</sup> d _s,_ (32) 0 <u>d</u> _<u>A</u>_ d _t_ <sup>=</sup> <sup>_−_</sup> <sup>2</sup> <sup>_θY ._</sup> (33) _For the geometric flow in Process 2,_ _in which the normal velocity is a constant(vn_ = _−_ 1 _),_ _suppose the contact_ _angle_ _is_ _also_ _equal_ _to_ _Young’s_ _angle_ _θY,_ _then_ _we_ _have_ <u>d</u> _<u>E</u>_ d _t_ <sup>= 2</sup> <sup>_γθY,_</sup> (34) <u>d</u> _<u>A</u>_ d _t_ <sup>=</sup> <sup>_L_</sup> <sup>ˆ(</sup> <sup>_t_</sup> <sup>)</sup> <sup>_._</sup> (35) - _L_ ( _t_ ) - _L_ ˆ( _t_ ) _Proof._ The lemma is directly from the previous two lemmas by noticing that 0 _κ_ d _s_ = 2 _θY_ and 0 _κ_ d _s_ = 2 _θY_ in the two processes. _Proof._ The lemma is directly from the previous two lemmas by noticing that - _L_ ( _t_ ) 0 _κ_ d _s_ = 2 _θY_ and We are ready to prove the energy decay property of an iteration of Process 1 and Process 2. For clarity in presentation, we introduce a few more notations. Let _A_ 0 = _A_ ( _t_ 0), _A_ 1 = _A_ ( _t_ 1) and _A_ 2 = _A_ ( _t_ 2) be the volumes(areas) of the droplet at the beginning of Process 1, at the end of Process 1(or equivalently the beginning of Process 2) and the end of Process 2, respectively. Similarly, _Ei, i_ = 0 _,_ 1 _,_ 2 are respectively the total wetting energies in the corresponding states. Theorem 4. _For_ _a_ _droplet_ _as_ _shown_ _in_ _Figure_ _2,_ _it_ _evolves_ _by_ _a_ _mean_ _curvature_ _flow_ _as_ _described_ _in_ _Process_ _1_ _in_ _the_ _first_ _stage_ _(t_ 0 _< t < t_ 1 _),_ _and_ _then_ _correct_ _its_ _volume_ _to_ _initial_ _value_ _A_ 0 _by_ _a_ _constant_ _velocity_ _flow_ _as_ _described_ _in_ _Process_ _2_ _in_ _the_ _second_ _stage_ _(t_ 1 _< t < t_ 2 _)._ _If_ _we_ _assume_ _that_ _L_ ( _t_ 1) _is_ _not_ _a_ _circular_ _curve,_ _then_ _the_ _total_ _wetting_ _energy_ _decreases_ _after_ _an_ _iteration_ _of_ _Process_ _1_ _and_ _Process_ _2,_ _namely_ _E_ 2 _≤E_ 0 _,_ (36) _when_ _δt_ _is_ _small_ _enough._ 13 _Proof._ By Lemma 3, we obtain the relation of the wetting energies, - _L_ ( _t_ ) _κ_ <sup>2</sup> d _s_ d _t_ = _γ_ 0 - _L_ ( _t_ ) - _t_ 1 _t_ 1 _−δt_ - _L_ ( _t_ ) _κ_ <sup>2</sup> d _s_ d _t_ =: _I,_ (37) 0 _E_ 0 _−E_ 1 = _γ_ - _t_ 1 _t_ 0 We need only to prove _E_ 2 _−E_ 1 = 2 _γθY_ ( _t_ 2 _−_ _t_ 1) = 2 _γθY δ_ <sup>_∗_</sup> =: _II._ (38) _II_ _≤_ _I._ (39) For the volume of the droplet, we have _A_ 0 _−_ _A_ 1 = 2 _θY δt,_ (40) _A_ 2 _−_ _A_ 1 = - _t_ 2 _t_ 1 _L_ ˆ( _t_ )d _t._ (41) From the proof of Lemma 2, we know that, for the constant velocity flow in Process 2, _<u>dL</u>_ <sup>ˆ</sup> <u>(</u> _<u>t</u>_ <u>)</u> = 2 _θY_ + ( _vx_ (0) _−_ _vx_ ( _L_ <sup>ˆ</sup> )) cos _θY ._ (42) _dt_ Notice that _vx_ (0) sin _θY_ = _−vn_ = 1 and _vx_ ( _L_ ) sin _θY_ = _vn_ = _−_ 1. So we have <sup>_<u>dL</u>_</sup> <sup>ˆ</sup> _dt_ <sup><u>(</u></sup> <sup>_<u>t</u>_</sup> <sup><u>)</u></sup> = 2( _θY_ + ctan _θY_ ) _._ This leads to _L_ <sup>ˆ</sup> ( _t_ ) _−_ _L_ <sup>ˆ</sup> ( _t_ 1) = 2( _θY_ + ctan _θY_ )( _t −_ _t_ 1) _._ Then the right hand side term of the equation (41) can be computed as - _t_ 2 _t_ 1 _L_ ˆ( _t_ )d _t_ = _δ_ <sup>_∗_</sup> <sup>�</sup> _L_ ˆ( _t_ 1) + ( _θY_ + ctan _θY_ ) _δ_ <sup>_∗_</sup> <sup>�</sup> _._ _._ Due to the volume correction condition that _A_ 0 = _A_ 2, we have 2 _θY δt_ = _δ_ <sup>_∗_</sup> <sup>�</sup> _L_ <sup>ˆ</sup> ( _t_ 1) + ( _θY_ + ctan _θY_ ) _δ_ <sup>_∗_</sup> <sup>�</sup> _._ (43) _√_ _<u>L</u>_ ˆ( _<u>t</u>_ <u>1)2+82(</u> _<u>θYθ</u>_ <u>(</u> _Yθ_ +ctan _<u>Y</u>_ <u>+ctan</u> _θY θ_ ) _<u>Y</u>_ <u>)</u> _<u>δt−L</u>_ ˆ( _<u>t</u>_ <u>1)</u> . Notice that _L_ <sup>ˆ</sup> ( _t_ 1) is the same as _L_ ( _t_ 1). We have This leads to _δ_ <sup>_∗_</sup> = Then we have _δ_ <sup>_∗_</sup> = - _L_ ( _t_ <u>1)</u> <sup>2</sup> + 8 _θY_ ( _θY_ + ctan _θY_ ) _δt −_ _L_ ( _t_ <u>1)</u> _._ (44) 2( _θY_ + ctan _θY_ ) _<u>γθY</u>_ _II_ = 2 _γθY δ_ <sup>_∗_</sup> = _θY_ + ctan _θY_ - ~~�~~ _L_ ( _t_ 1) <sup>2</sup> + 8 _θY_ ( _θY_ + ctan _θY_ ) _δt −_ _L_ ( _t_ 1)� <u>4</u> _<u>θY</u>_ <sup>2</sup> d _t_ <u>�</u> _L_ ( _t_ 1) <sup>2</sup> + 8 _θY_ ( _θY_ + ctan _θY_ )( _t −_ _t_ 1) = _γ_ = _γ_ - _t_ 1+ _δt_ _t_ 1 - _t_ 1 _t_ 1 _−δt_ d _t_ =: _γ_ <u>4</u> _<u>θY</u>_ <sup>2</sup> ~~<u>�</u>~~ _L_ ( _t_ 1) <sup>2</sup> + 8 _θY_ ( _θY_ + ctan _θY_ )( _t_ 1 _−_ _t_ ) - _t_ 1 _t_ 1 _−δt_ _g_ ˜( _t_ )d _t_ (45) It is easy to see that _<u>Y</u>_ _g_ ˜( _t_ 1) = <sup><u>4</u></sup> <sup>_<u>θ</u>_</sup> <sup>2</sup> _L_ ( _t_ 1) <sup>_._</sup> By Cauchy-Buniakowsky-Schwarz inequality, we have - _L_ ( _t_ 1) 2 _θY_ = _κ_ d _s ≤_ 0 - <sup>�</sup> _L_ ( _t_ 1) _κ_ <sup>2</sup> d _s_ 0 �1 _/_ 2 ( _L_ ( _t_ 1)) <sup>1</sup> <sup>_/_</sup> <sup>2</sup> _._ 14 The equality holds only when _κ_ is a constant on _L_ ( _t_ 1). This implies _g_ ˜( _t_ 1) _<_ - _L_ ( _t_ 1) _κ_ <sup>2</sup> d _s._ (46) 0 when _L_ ( _t_ 1) is not a circular curve. Since _g_ ˜( _t_ ) is a smooth function with respect to _t_, we then have - _t_ 1 _t_ 1 _−δt_ - _L_ ( _t_ ) _g_ ˜( _t_ ) _dt ≤_ - _t_ 1 _t_ 1 _−δt_ - _L_ ( _t_ ) _κ_ <sup>2</sup> d _s._ (47) 0 when _δt_ is small enough. This ends the proof of the theorem. 6. Numerical examples _6.1._ _Accuracy_ _check_ In this subsection, we will do numerical experiments to test the convergence rate with respect to _δt_ for the diffusion generated motion method(Algorithm 1). For that purpose, we consider a liquid drop on a homogeneous planar surface. It is known that the problem (8) has an explicit solution. It corresponds to a circular droplet with the contact angle equal to Young’s angle on the substrate. Therefore we can compute the stationary profile of a liquid drop for various Young’s angles. We do tests for several choices of Young’s angle _θY_ . In all these tests, we set Ω= [0 _,_ 1] <sup>2</sup> . We put the initial curve in the middle of the lower boundary of Ω. When Young’s angle _θY_ is not equal to 90 <sup>_◦_</sup>,we set the surface of the initial droplet as a semicircle with the radius _R_ 0 = 0 _._ 25. When _θY_ = 90 <sup>_◦_</sup>, the initial droplet is a circular domain with an initial volume _V_ 0 = _π/_ 16 and with two contact points given by (3 _/_ 8 _,_ 0) and (5 _/_ 8 _,_ 0). We set _TOL_ = 10 <sup>_−_</sup> <sup>10</sup> in the algorithm. We find that Algorithm 1 always converges in the sense that the tolerance is obtained after some iterations. In each experiment, we use a uniform _N × N_ mesh and fix a time step _δt_ (as listed in Table 1-4), where we set a unit time as _tunit_ = 1 _/_ 64. We compute the error in the following way, _Err∞_ := dist( _Lk, L_ ) = sup x _∈Lk_ yinf _∈L_ <sup>_∥_</sup> <sup>x</sup> <sup>_−_</sup> <sup>y</sup> <sup>_∥_</sup> Here _Lk_ represents the zero level set of the numerical solution _dk_, _L_ is the circular curve corresponding to the exact solution. 0.5 0.4 0.3 0.2 0.1 Numerical Sol By Alg 1 <u>Exact Sol</u> 0.5 0.4 0.3 0.2 0.1 Numerical Sol By Alg 1 <u>Exact Sol</u> 0 0 0.2 0.4 0.6 0.8 1 (a) _θ_ = 70 <sup>_o_</sup> _, N_ = 32. 0 0 0.2 0.4 0.6 0.8 1 (b) _θ_ = 110 <sup>_o_</sup> _, N_ = 32. Figure 3: A comparison between the numerical solution obtained by Algorithm 1 and the exact solution. Figure 3 shows numerical solutions and the corresponding analytical solutions for the cases of _θY_ = 70 <sup>_o_</sup> _, N_ = 32 (left) and _θY_ = 110 <sup>_o_</sup> _, N_ = 32(right). We can see that our algorithm give accurate results in both cases even on a relatively coarse mesh. More results on numerical errors are shown in Tables 1-4. We decrease the spacial mesh size and time step size proportionally. We can see that the error is of order _O_ ( _δt_ ) when _θY_ = 110 <sup>_o_</sup> _,_ 100 <sup>_o_</sup> and 70 <sup>_o_</sup> . This is optimal as in the standard diffusion generated method for smooth curves[25]. When _θY_ = 90 <sup>_o_</sup>, the convergence order is much better. This might be due to the error for time 15 discretization is less dominant in this case, so that the error is of order _O_ ( _δx_ <sup>2</sup> ). In all, the diffusion generated motion method gives optimal convergence rate _O_ ( _δt_ ) with respect to the time step for the wetting problems. This is better than the threshold dynamics method developed in [12, 13], where the convergence order is of _O_ ( _δt_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> ), due to the existence of the contact points. Table 1: Numerical errors of Algorithm 1 for the case _θY_ = 110 <sup>_◦_</sup> <u>#</u> <u>Resolution</u> <u>#</u> _<u>δt</u>_ <u>(</u> _<u>tunit</u>_ <u>)</u> <u>#</u> <u>Error</u> <u>#</u> <u>Order</u> 8 _×_ 8 1/2 9.96E-3 16 _×_ 16 1/4 5.31E-3 0.91 32 _×_ 32 1/8 2.68E-3 0.99 64 _×_ 64 1/16 1.67E-3 0.68 <u>128</u> _<u>×</u>_ <u>128</u> <u>1/32</u> <u>7.42E-4</u> <u>1.17</u> Table 2: Numerical errors of Algorithm 1 for the case _θY_ = 100 <sup>_◦_</sup> <u>#</u> <u>Resolution</u> <u>#</u> _<u>δt</u>_ <u>(</u> _<u>tunit</u>_ <u>)</u> <u>#</u> <u>Error</u> <u>#</u> <u>Order</u> 8 _×_ 8 1/2 1.42E-2 16 _×_ 16 1/4 6.03E-3 1.24 32 _×_ 32 1/8 2.26E-3 1.42 64 _×_ 64 1/16 1.04E-3 1.12 <u>128</u> _<u>×</u>_ <u>128</u> <u>1/32</u> <u>4.58E-4</u> <u>1.18</u> Table 3: Numerical errors of Algorithm 1 for the case _θY_ = 90 <sup>_◦_</sup> <u>#</u> <u>Resolution</u> <u>#</u> _<u>δt</u>_ <u>(</u> _<u>tunit</u>_ <u>)</u> <u>#</u> <u>Error</u> <u>#</u> <u>Order</u> 8 _×_ 8 1/2 2.39E-2 16 _×_ 16 1/4 6.17E-3 1.95 32 _×_ 32 1/8 1.65E-3 1.90 64 _×_ 64 1/16 3.59E-4 2.20 <u>128</u> _<u>×</u>_ <u>128</u> <u>1/32</u> <u>6.59E-5</u> <u>2.44</u> Table 4: Numerical errors of Algorithm 1 for the case _θY_ = 70 <sup>_◦_</sup> <u>#</u> <u>Resolution</u> <u>#</u> _<u>δt</u>_ <u>(</u> _<u>tunit</u>_ <u>)</u> <u>#</u> <u>Error</u> <u>#</u> <u>Order</u> 8 _×_ 8 1 2.86E-2 16 _×_ 16 1/2 1.09E-2 1.39 32 _×_ 32 1/4 4.13E-3 1.40 64 _×_ 64 1/8 1.12E-3 1.99 <u>128</u> _<u>×</u>_ <u>128</u> <u>1/16</u> <u>5.92E-4</u> <u>0.92</u> _6.2._ _Wetting_ _on_ _chemically_ _patterned_ _surfaces_ We then compute a wetting problem on a chemically pattern solid surface by our algorithm. We assume the lower boundary Γ is composed of two materials with different Young’s angles. Two typical material distributions are shown in Figure 5 and 7. We use _A_ to represent the red parts and _B_ to represent the green parts. Their corresponding Young’s angles are respectively _θA_ = 2 _π/_ 3 and _θB_ = _π/_ 3. On the chemically patterned surface, We first give an initial droplet and perform our algorithm until a stable state is reached (i.e. the energy in (8) is minimized). After that, we increase(or decrease) the volume 16 of the droplet a little by changing the level-set of the signed distance function slightly. The new droplet may not be stable. We use our algorithm again to compute a stable state. By repeating this process, we can observe the advancing(or receding) contact angle and the corresponding contact points. The difference between the advancing and receding trajectories gives the interesting contact angle hysteresis phenomena. More details will be given below. We first consider the _k_ = 2 case, which implies there are two green patterns in each side of the middle point on the lower surface as shown in Figure 5. The computational domain Ωis (0 _,_ 1) _×_ (0 _,_ 1). We solve this problem on a uniform 256 _×_ 256 spacial mesh and the time step is fixed at _δt_ = _tunit/_ 40. In the advancing case, the initial droplet has a circular surface with two contact points (0 _._ 45 _,_ 0) and (0 _._ 55 _,_ 0) which are located in the central red part. The initial contact angles are _θ_ 1 = _θ_ 2 = _θA_ = 3 <sup><u>2</u></sup> <sup>_π_</sup> <sup>.</sup> <sup>Since</sup> <sup>the</sup> <sup>local</sup> <sup>contact</sup> <sup>angles</sup> in the central red part. The initial contact angles are _θ_ 1 = _θ_ 2 = _θA_ = 3 <sup><u>2</u></sup> <sup>_π_</sup> <sup>.</sup> <sup>Since</sup> <sup>the</sup> <sup>local</sup> <sup>contact</sup> <sup>angles</sup> equal to Young’s angle, the initial state of the droplet is stationary. We add some volume to the initial state and solve the problem (8) by using Algorithm 1 until we find a solution. We repeat the process again and again until the distance _d_ of the contact points from the middle point (0 _._ 5 _,_ 0) is larger than 0 _._ 35. In the process, the volume we added in each iteration is determined by the current position of the contact points. To be precise, let 2 _d_ be the distance between the two contact points, we add a volume of _πd_ <sup>2</sup> _/_ 20. In the receding case, the initial droplet is circular and has two contact points (0 _._ 15 _,_ 0) and (0 _._ 85 _,_ 0) which are located in the outer red parts on the chemically patterned boundary. We set the initial contact angles as _θ_ 1 = _θ_ 2 = _θA_ = <sup><u>2</u></sup> 3 <sup>_π_</sup> <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>case,</sup> <sup>we</sup> <sup>decrease</sup> <sup>the</sup> <sup>volume</sup> <sup>gradually.</sup> <sup>In</sup> <sup>each</sup> <sup>iteration,</sup> <sup>the</sup> <sup>volume</sup> <sup>we</sup> as _θ_ 1 = _θ_ 2 = _θA_ = <sup><u>2</u></sup> 3 <sup>_π_</sup> <sup>.</sup> <sup>In</sup> <sup>this</sup> <sup>case,</sup> <sup>we</sup> <sup>decrease</sup> <sup>the</sup> <sup>volume</sup> <sup>gradually.</sup> <sup>In</sup> <sup>each</sup> <sup>iteration,</sup> <sup>the</sup> <sup>volume</sup> <sup>we</sup> decrease is computed similarly as in the advancing case. We repeat this process until _d <_ 0 _._ 05. Figure 5 shows the position of the contact points(its distance _d_ away from the middle point) and the contact angle _θ_ with respect to the volume of the droplet. It is clear that contact angle hysteresis phenomena occur during the processes. Both the trajectories of the position of the contact point and the contact angles are different for the advancing(increasing volume) and receding(decreasing volume) cases. The hysteresis occurs near some joint points of the two materials. The largest advancing contact angle is equal to _θA_ and the smallest receding contact angle is equal to _θB_ . The results are consistent with the analytical analysis in [11]. Figure 5 shows the drop profiles for different volumes in the advancing case. We see clearly the stick-slip phenomena of the contact points. In the receding case, the stick-slip behaviour of the droplet is similar to the advancing case. increasing V <u>decreasing</u> V 0.0133 0.021 0.0333 0.0528 0.0836 0.1326 0.2101 0.333 v 0.35 0.3 0.25 0.2 0.15 0.1 increasing V <u>decreasing</u> V 0.05 0.0127 0.0192 0.029 0.0439 0.0664 0.1006 0.1522 0.2304 0.3487 2. <mark>1</mark> 2 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 v Figure 4: Contact angle hysteresis and constact line slipping( _k_ = 2). Contact point (left) moved and contact angles (right) varied by the changing of drop volume. In the _k_ = 4 case, the patterned surface is shown as in Figure 7. Since there are more patterns on the lower boundary of Ω= (0 _,_ 1) _×_ (0 _,_ 1), we need finer meshes to resolve the chemical patterns. In our experiments, we adopt a 512 _×_ 512 spacial mesh and the time step is chosen as _δt_ = _tunit/_ 80. We do similar computations as in the _k_ = 2 case. The only difference is that the volume of the droplet changes more slowly. Suppose the current droplet has a circular surface with two contact points, which are of distance _d_ away from the middle point of the lower boundary. The volume we add (decrease) in the advancing(receding) case is _πd_ <sup>2</sup> _/_ 40. 17 0 0.21 0.27 0.33 0.39 0.61 0.67 0.73 0.79 1 Figure 5: The drop profiles with increasing volume when _k_ = 2. In Figure 6 and Figure 7, we draw the pictures of _d_ and _θ_ as functions of the volume _v_ and the profiles of drops for the case _k_ = 4. The results are quite similar to the case _k_ = 2. We observe the hysteresis in the trajectories of the contact angle and contact positions. There are also clear stick-slip phenomena of the contact points in the profile of the droplet. Since we have more patterns in this distribution of the materials on the substrate, we can see more stick-slip phenomena on the joint points of the two materials. increasing V <u>decreasing</u> V 0.35 0.3 0.25 0.2 0.15 0.1 increasing V <u>decreasing</u> V 0.05 0.0079 0.0125 0.0198 0.0315 0.0499 0.079 0.1252 0.1985 0.3146 2. <mark>1</mark> 2 1.9 1.8 1.7 1.6 1.5 1.4 1.3 1.2 1.1 0.0079 0.012 0.0181 0.0274 0.0415 0.0628 0.095 0.1438 0.2176 0.3294 v v Figure 6: Contact angle hysteresis and constact line slipping( _k_ = 4). Contact point (left) moved and contact angles (right) varied by the changing of drop volume. 7. Conclusions and Further discussions By using the Onsager principle as an approximation tool, we develop a new diffusion generated motion method for the wetting problem. The key idea is to consider the leading order approximation of a modified Allen-Cahn equation with a nonlinear relaxed boundary condition on a solid surface. By assuming the leading order has a _tanh_ profile, we derive a linear diffusion equation for the signed distance function of the liquid-vapor interface. The equation is much simpler than the original phase field model and can act as a basis to construct our numerical method. In the proposed method, we use the signed distance function to represent the interface between the liquid and vapor surface. In each iteration, only a linear diffusion equation with a linear boundary condition is 18 0 11/60 13/60 1/4 17/60 19/60 7/20 23/60 5/12 7/12 37/60 13/20 41/60 43/60 3/4 47/60 49/60 1 Figure 7: The drop profiles with increasing volume in the _k_ = 4 case. solved, in addition to a re-distance step and a volume correction step. Numerical experiments show that the method has a convergence rate of _O_ ( _δt_ ), which is much better than the previous threshold dynamics method for wetting problems[12], where one can only obtain a half order _O_ ( _δt_ <sup>1</sup> <sup>_/_</sup> <sup>2</sup> ) accuracy. The method can be seen as a generalization of the standard diffusion generate motion method using a signed distance function for mean curvature flows[25]. The energy stability of the method is analysed by careful studies for some geometric flows on the substrates. Numerical results show that the method works well for wetting on inhomogeneous surfaces. In this paper, we focus on two-dimensional problems. Our method can be generalized to three-dimensional cases directly. For three dimensional problems, it is very helpful to use an adaptive spacial mesh to decrease the computational complexity as in [56]. Acknowledgement The work was partially supported by NSFC 11971469 and by the National Key R&D Program of China under Grant 2018YFB0704304 and Grant 2018YFB0704300. References References [1] T. Young. An essay on the cohesion of fluids. _Philos._ _Trans._ _R._ _Soc._ _London_, 95:65–87, 1805. [2] P.G. de Gennes. Wetting: Statics and dynamics. _Rev._ _Mod._ _Phys._, 57:827–863, 1985. [3] D. Bonn, J. Eggers, J. Indekeu, J. Meunier, and E. Rolley. Wetting and spreading. _Rev._ _Mod._ _Phys._, 81:739–805, 2009. [4] P.G. de Gennes, F. Brochard-Wyart, and D. Quere. _Capillarity_ _and_ _Wetting_ _Phenomena_ . Springer Berlin, 2003. [5] W. Ren. Wetting transition on patterned surfaces: transition states and energy barriers. _Langmuir_, 30:2879–2885, 2014. [6] K. Deckelnick, G. Dziuk, and C. M. Elliott. Computation of geometric partial differential equations and mean curvature flow. _Acta_ _numerica_, 14:139–232, 2005. [7] K. A. Brakke. The surface evolver. _Exp._ _math._, 1(2):141–165, 1992. [8] D. E. Womble. A front-tracking method for multiphase free boundary problems. _SIAM_ _J._ _Numer._ _Anal._, 26(2):380–396, 1989. [9] H. Zhao, T. Chan, B. Merriman, and S. J. Osher. A variational level set approach to multiphase motion. _J._ _Comput._ _Phys._, 127(1):179–195, 1996. [10] T. Qian, X.-P. Wang, and P. Sheng. Molecular scale contact line hydrodynamics of immiscible flows. _Phy._ _Rev._ _E_, 68(1):016306–15, July 2003. [11] X. Xu and X. P. Wang. Analysis of wetting and contact angle hysteresis on chemically patterned surfaces. _SIAM_ _J._ _Appl._ _Math._, 71:1753–1779, 2011. 19 [12] X. Xu, D. Wang, and X.-P. Wang. An efficient threshold dynamics method for wetting on rough surfaces. _J._ _Comput._ _Phys._, 330:510–528, 2017. [13] D. Wang, X. Xu, and X.-P. Wang. An improved threshold dynamics method for wetting dynamics. _J._ _Comput._ _Phys._, 392:291–310, 2019. [14] S. Jiang, D. Wang, and X. P. Wang. An efficient boundary integral scheme for the MBO threshold dynamics method via the NUFFT. _J._ _Sci._ _Comput._, 74:474–490, 2018. [15] D. Wang, S. Jiang, and X.-P. Wang. An efficient boundary integral scheme for the threshold dynamics method ii: Applications to wetting dynamics. _J._ _Sci._ _Comp._, 81(3):1860–1881, 2019. [16] B. Merriman, J. K. Bence, and S. Osher. _Diffusion_ _generated_ _motion_ _by_ _mean_ _curvature_ . UCLA CAM Report 92-18, 1992. [17] S. J. Ruuth. Efficient algorithms for diffusion-generated motion by mean curvature. _J._ _Comput._ _Phys._, 144(2):603–625, 1998. [18] S. J. Ruuth. A diffusion-generated approach to multiphase motion. _J._ _Comput._ _Phys._, 145(1):166–192, 1998. [19] S. Esedoglu and F. Otto. Threshold dynamics for networks with arbitrary surface tensions. _Comm._ _Pure_ _Appl._ _Math._, 2015. [20] Steven J Ruuth and Barry Merriman. Convolution–thresholding methods for interface motion. _J._ _Computat._ _Phys._, 169(2):678–707, 2001. [21] S. Esedoglu and R. Tsai. Threshold dynamics for the piecewise constant Mumford–shah functional. _J._ _Comput._ _Phys._, 211(1):367–384, 2006. [22] D. Wang, H. Li, X. Wei, and X.-P. Wang. An efficient iterative thresholding method for image segmentation. _J._ _Comput._ _Phys._, 350:657–667, 2017. [23] M. Elsey and S. Esedoglu. Threshold dynamics for anisotropic surface energies. _Math._ _Comp._, 87(312):1721–1756, 2018. [24] B. Osting and D. Wang. A diffusion generated method for orthogonal matrix-valued fields. _Math._ _Comp._, 2019, DOI:https://doi.org/10.1090/mcom/3473. [25] S. Esedoglu, S. Ruuth, and R. Tsai. Diffusion generated motion using signed distance functions. _J._ _Comput._ _Phys._, 229(4):1017–1042, 2010. [26] C. Kublik, S. Esedoglu, and J. A. Fessler. Algorithms for area preserving flows. _SIAM_ _J._ _Sci._ _Comput._, 33(5):2382–2401, 2011. [27] A. Zaitzeff, S. Esedoglu, and K. Garikipati. On the voronoi implicit interface method. _SIAM J. Sci. Comput._, 41(4):A2407– A2429, 2019. [28] A. Zaitzeff, S. Esedoglu, and K. Garikipati. Second order threshold dynamics schemes for two phase motion by mean curvature. _J._ _Comput._ _Phys._, page 109404, 2020. [29] L. Onsager. Reciprocal relations in irreversible processes. II. _Phys._ _Rev._, 38(12):2265–2279, dec 1931. [30] L.Onsager. Reciprocal relations in irreversible processes. I. _Phys._ _Rev._, 37(4):405–426, feb 1931. [31] M. Doi. _Soft_ _Matter_ _Physics_ . Oxford University Press, Oxford, 2013. [32] M. Doi. Onsager principle as a tool for approximation. _Chin._ _Phys._ _B_, 24:020505, 2015. [33] X. Xu, Y. Di, and M. Doi. Variational method for contact line problems in sliding liquids. _Phys._ _Fluids_, 28:087101, 2016. [34] Y. Di, X. Xu, and M. Doi. Theoretical analysis for meniscus rise of a liquid contained between a flexible film and a solid wall. _Europhys._ _Lett._, 113(3):36001, feb 2016. [35] Xingkun Man and Masao Doi. Ring to mountain transition in deposition pattern of drying droplets. _Phys._ _Rev._ _Lett._, 116:066101, 2016. [36] J. Zhou, Y. Jiang, and M. Doi. Cross interaction drives stratification in drying film of binary colloidal mixtures. _Phys._ _Rev._ _Lett._, 118:108002, 2017. [37] Y. Di, X. Xu, J. Zhou, and M. Doi. Analysis of thin film dynamics in coating problems using Onsager principle. _Chin._ _Phys._ _B_, 27(2):024501, 2018. [38] S. Guo, X. Xu, T. Qian, Y. Di, M. Doi, and P. Tong. Onset of thin film meniscus along a fibre. _J._ _Fluid_ _Mech._, 865:650–680, 2019. [39] W. Jiang, Q. Zhao, T. Qian, D. J. Srolovitz, and W. Bao. Application of Onsager’s variational principle to the dynamics of a solid toroidal island on a substrate. _Acta_ _Mater._, 163:154–160, 2019. [40] M. Doi. Onsager’s variational principle in soft matter. _J._ _Phys.:_ _Condens._ _Matter_, 23:284118, 2011. [41] T. Qian, X.-P. Wang, and P. Sheng. A variational approach to moving contact line hydrodynamics. _J._ _Fluid_ _Mech._, 564:333–360, 2006. [42] L Modica and S Mortola. Il limite nella gamma-convergenza di una famiglia di funzionali ellittici. _Boll._ _Math._ _Ital._ _A_, 14, 1977. [43] L. Modica. Gradient theory of phase transitions with boundary contact energy. In _Annales_ _de_ _l’Institut_ _Henri_ _Poincare_ _(C)_ _Non_ _Linear_ _Analysis_, volume 4, pages 487–512. Elsevier, 1987. [44] X. Chen, X.-P. Wang, and X. Xu. Analysis of the Cahn-Hilliard equation with relaxation boundary condition modelling contact angle. _Arch._ _Rational_ _Mech._ _Anal._, 213:1–24, 2014. [45] J. Shen and X. Yang. Numerical pproximations of allen-cahn and cahn-hilliard equations. _Discrete_ _Contin._ _Dyn._ _Syst._ _B_, 28(4):1669–1691, 2010. [46] Q. Du and X. Feng. The phase field method for geometric moving interfaces and their numerical approximations. _Geometric_ _Partial_ _Differential_ _Equations-Part_ _I,_ _Handbook_ _of_ _Numerical_ _Analysis_, 21, 2020. [47] G. Caginalp and P. C. Fife. Dynamics of layered interfaces arising from phase boundaries. _SIAM_ _J._ _Appl._ _Math._, 48(3):506–518, 1988. [48] J. A. Sethian. _Level_ _set_ _methods_ _and_ _fast_ _marching_ _methods:_ _evolving_ _interfaces_ _in_ _computational_ _geometry,_ _fluid_ _me-_ 20 _chanics,_ _computer_ _vision,_ _and_ _materials_ _science_, volume 3. Cambridge university press, 1999. [49] G. Russo and P. Smereka. A remark on computing distance functions. _J._ _Comput._ _Phys._, 163(1):51–67, 2000. [50] S. Osher and R. P. Fedkiw. Level set methods: an overview and some recent results. _J._ _Comput._ _Phy._, 169(2):463–502, 2001. [51] L. Cheng and Y. Tsai. Redistancing by flow of time dependent eikonal equation. _J._ _Comput._ _Phys._, 227(8):4002–4017, 2008. [52] M. Elsey and S. Esedoglu. Fast and accurate redistancing by directional optimization. _SIAM_ _J._ _Sci._ _Comput._, 36(1):A219– A231, 2014. [53] S. J Ruuth and B. T. Wetton. A simple scheme for volume-preserving motion by mean curvature. _J._ _Sci._ _Comput._, 19(1-3):373–384, 2003. [54] K. Svadlenka, E. Ginder, and S. Omata. A variational method for multiphase volume-preserving interface motions. _J._ _Comput._ _Appl._ _Math._, 257:157–179, 2014. [55] R. Kimmel. _Numerical_ _geometry_ _of_ _images:_ _Theory,_ _algorithms,_ _and_ _applications_ . Springer Science & Business Media, 2003. [56] X. Xu and W.-J. Ying. An adaptive threshold dynamics method for three-dimensional wetting on rough surfaces. _Comm._ _Comput._ _Phys.,_ _to_ _appear_, 2020. 21

섹션 본문

섹션 본문이 없습니다.

참고문헌

참고문헌 정보가 없습니다.