Proceedings of the Royal Society A: Mathematical, Physical and Engineering Sciences
You have accessResearch articles

Improved phase-field models of melting and dissolution in multi-component flows

Eric W. Hester

Eric W. Hester

School of Mathematics and Statistics, The University of Sydney, Sydney, New South Wales 2006, Australia

[email protected]

Google Scholar

Find this author on PubMed

,
Louis-Alexandre Couston

Louis-Alexandre Couston

British Antarctic Survey, Cambridge CB3 0ET, UK

Department of Applied Mathematics and Theoretical Physics, University of Cambridge, Cambridge, UK

Google Scholar

Find this author on PubMed

,
Benjamin Favier

Benjamin Favier

Aix-Marseille University, CNRS, Centrale Marseille, IRPHE, Marseille, France

Google Scholar

Find this author on PubMed

,
Keaton J. Burns

Keaton J. Burns

Department of Mathematics, Massachusetts Institute of Technology, Cambridge, MA 02139, USA

Center for Computational Astrophysics, Flatiron Institute, Simons Foundation, New York, NY 10010, USA

Google Scholar

Find this author on PubMed

and
Geoffrey M. Vasil

Geoffrey M. Vasil

School of Mathematics and Statistics, The University of Sydney, Sydney, New South Wales 2006, Australia

Google Scholar

Find this author on PubMed

    Abstract

    We develop and analyse the first second-order phase-field model to combine melting and dissolution in multi-component flows. This provides a simple and accurate way to simulate challenging phase-change problems in existing codes. Phase-field models simplify computation by describing separate regions using a smoothed phase field. The phase field eliminates the need for complicated discretizations that track the moving phase boundary. However, standard phase-field models are only first-order accurate. They often incur an error proportional to the thickness of the diffuse interface. We eliminate this dominant error by developing a general framework for asymptotic analysis of diffuse-interface methods in arbitrary geometries. With this framework, we can consistently unify previous second-order phase-field models of melting and dissolution and the volume-penalty method for fluid–solid interaction. We finally validate second-order convergence of our model in two comprehensive benchmark problems using the open-source spectral code Dedalus.

    1. Introduction

    Many scientific and industrial questions involve fluid flows coupled with phase changes; including sea-ice formation [1], semiconductor crystal manufacture [2], binary alloy solidification [3] and geophysical mantle dynamics [4]. Multi-phase interaction combines the challenges of nonlinear multi-component convection [5] and evolution of phase boundaries [6], creating entirely new effects. Quantifying this complexity demands appropriate mathematical tools.

    Moving boundary problems are the standard method to model phase change phenomena. Separate partial differential equations (PDEs) exist in the liquid and solid regions and moving boundary conditions are applied at the interface (figure 1a). A dynamically shifting interface means that the boundary conditions form an essential (often nonlinear) part of the solution [7]. Moving boundaries present many challenges, complicating numerical algorithms [8] and mathematical proofs [9].

    Figure 1.

    Figure 1. (a) A moving boundary formulation in which the domain is partitioned into the fluid Ω+, solid Ω and interface ∂Ω. (b) A phase-field approximation, where the phase ϕ smoothly varies between fluid and solid. The ϕ = 1/2 contour approximates the true interface. We illustrate the asymptotic fluid Ω+, solid Ω and size O(ε) boundary ΔΩ regions of our analysis. (c) The signed-distance coordinate system used to analyse the boundary region ΔΩ. Points on the interface p(s) (blue) are parameterized by arbitrary surface coordinates s. A point off the boundary x can be reached by moving a distance σ in the normal direction n^(s) from the closest point on the manifold p(s). Coordinate singularities (the corners of the outermost red curves) will occur, but the coordinate system remains well behaved in the interface region (b). The figure is in two dimensions for clarity, though the analysis of §3 is done in three dimensions. (Online version in colour.)

    As a possible remedy, it is useful to recall that boundary conditions are a mathematical abstraction; they result from limiting cases of rapid transitions in material properties. There is a long history of reinterpreting discontinuous boundary conditions as smoothed phenomena. Where Gibbs treated capillarity with infinitesimal surfaces [10], van der Waals understood the importance of smoothness at phase boundaries [11]. Where Stefan treated solid–liquid phase boundaries as discontinuous [12], Cahn and Hilliard modelled phase separation as smoothed [3]. Readopting a physics-based viewpoint of boundary conditions allows new possible techniques for addressing complex multi-phase problems. As well as providing a firmer mathematical and physical foundation, smoothed models also simplify numerical implementations by removing the need to track the infinitesimal boundary.

    This paper focuses on phase-field models, one of the foremost examples of this smoothed approach. Phase-field models represent distinct phases using a single smoothed phase field ϕ, illustrated in figure 1b [13,14]. The evolution of the phases is then determined by a single set of equations that apply over the entire domain. Many other methods also model phase changes, such as enthalpy methods [15,16], level set methods [17,18], diffuse-domain approaches [19,20] or some immersed-boundary methods [21]. Yet phase-field models stand out for combining several key benefits:

    They are physically motivated, introduced by Fix [22] and Langer [23] to model free energy near phase boundaries (following from Hohenburg and Halperin’s model C [24]).

    They generalize canonical models of phase separation, reducing to Allen–Cahn and Hele-Shaw flow (among others) in various asymptotic limits [25,26].

    They are easily extensible to more general systems, including two-component alloys [2730], convection [31,32] or multi-phase flows [20,33].

    They can be made thermodynamically consistent [3438].

    They are mathematically rigorous, with well-posedness and convergence results [39,40].

    They are simple to simulate as they avoid explicit tracking of the interface [22,4149].

    We emphasize this last point. The simulation of moving boundary problems requires specialized algorithms designed to track and apply boundary conditions at the interface. These algorithms can be difficult or impossible to implement in existing codes. For example, spectral methods are popular for their efficiency, but cannot easily handle non-trivial geometries or topologies. Phase-field models (and other diffuse-interface methods) alleviate these difficulties by removing boundary conditions from the problem formulation. By replacing boundary conditions with simple source terms, they can be implemented in general codes for little effort. More general effects can be modelled by changing source terms, as opposed to developing and integrating new algorithms into the codebase. Phase-field models extend the range of phenomena that existing codes can simulate, and accelerate the development of codes to study new scientific problems.

    However, phase-field models possess one important drawback for simulation: they must resolve the diffuse interface. For small-scale simulations, this is feasible. But there is a vast disparity between the microscopic scale of the smoothed interface and the macroscopic scale of interest in most problems. This disparity is what makes discontinuous boundary conditions appropriate models in most circumstances. Throughout this paper, we denote this ratio, also known as the Cahn number [50,51], by ε

    ε=Cahn number=microscopic interface widthbulk system size. 1.1
    Feasible numerical values of ε are orders of magnitude larger than reality. Straightforward analysis implies a commensurate O(ε) error with respect to the limiting boundary conditions.

    The only way to perform accurate phase-field simulations with achievable values of ε is to accelerate the convergence of the model itself. This can be done through second-order asymptotic analysis in the limit ε → 0. While the first order is sufficient to determine the limiting behaviour, it is the second order that reveals the dominant error of the model. It is then possible to find optimal prescriptions that cancel the dominant error and boost convergence from O(ε) to O(ε2).

    This strategy leads to various ‘quantitative’ (i.e. second order) phase-field models, beginning with a correction for arbitrary interface kinetics in pure materials [52,53], and since extended to unequal diffusivities [36,54], multiple components [29], and the combination thereof [55,56]. An introduction to this asymptotic procedure can be found in [57]. Despite much success, progress is difficult. Second-order asymptotic analysis has not yet ascertained a quantitative phase-field model of multi-component convection.1

    This paper presents the first second-order phase-field model of buoyancy-forced convecting binary mixtures. The model, given in §2, builds on first-order models of multi-component convection [31], second-order models of pure melts [59], the diffuse-domain method for Robin boundary conditions [60], and the smooth volume-penalty method for no-slip boundary conditions [61]. We verify second-order convergence in §3 by developing a straightforward asymptotic procedure suitable for general equations and geometries in three dimensions. This procedure allows us to consistently analyse and unify previous second-order phase-field and diffuse-interface methods. We also implement this procedure in the symbolic computing language Mathematica. For brevity, we assume somewhat simplified thermodynamical properties in our model, such as uniform temperature diffusivity, negligible solute within the solid, and Boussinesq buoyancy. Each assumption could be relaxed and analysed using the framework of §3. We finally validate the improved convergence in two comprehensive benchmark problems implemented in the Dedalus numerical code [62] in §4.

    2. Models of melting in binary mixtures

    (a) Conventional moving boundary formulation

    Melting in binary mixtures, such as ice in sea water, is often modelled as a moving boundary problem. We partition the domain into fluid Ω+ and solid Ω regions, pose separate PDEs on each subdomain, and apply boundary conditions at the evolving interface ∂Ω (as in figure 1a).

    In the fluid, the temperature T+ and dissolved solute concentration C satisfy advection–diffusion equations, and the fluid velocity u and pressure p satisfy incompressible Navier–Stokes equations with Boussinesq buoyancy forcing gρ(T+,C)z^,

    tT++uT+κ2T+=0,tC+uCμ2C=0,tu+uuν2u+p+gρ(T+,C)ρ0z^=0,u=0,inΩ+, 2.1
    where κ, μ and ν are the thermal, solutal and momentum diffusivity (each assumed constant), and g, ρ and ρ0 are the gravitational acceleration, the density of the fluid and a reference density. In the solid only the temperature T is defined, which follows a diffusive equation,
    tTκ2T=0,inΩ. 2.2

    We require several boundary conditions at the moving interface [7]. The Gibbs–Thompson relation relates departure of thermosolutal equilibrium (T + mC, where m is the liquidus slope) to a mean-curvature K¯ dependent surface energy, and kinetic undercooling proportional to the interfacial normal velocity v. The Stefan condition expresses heat conservation, equating latent heat L release with a discontinuity in temperature flux. The Robin concentration condition ensures total solute conservation. Zero velocity boundary conditions maintain mass conservation,

    T+mCγK¯+αv=0,[κn^T]++Lv=0,μn^C++C+v=0,u=0. 2.3
    This model involves several idealizations, namely Boussinesq buoyancy forcing, constant diffusivities and densities that are phase, temperature, and concentration invariant, and a linear liquidus relation. We can include more general thermodynamic properties into our framework, but we continue with the current model as it captures many aspects of melting and dissolution in multi-component flows. Kinetic undercooling is only relevant for rapidly solidifying supercooled liquids so we set α = 0. Note that the neglect of density change during melting means the fluid velocity is equal to zero at the moving interface.

    (b) Phase-field model

    Phase-field models are an alternative approach that is physically motivated and simple to simulate. They represent distinct phases with a smoothed phase field ϕ. This field obeys an Allen–Cahn type equation which forces the phase to ϕ ≈ 1 in the solid and ϕ ≈ 0 in the fluid [31]. The interface is represented implicitly by the level set ϕ = 1/2. The new equations are

    tT+uTκ2T=Ltϕ,tC+uCμ2C=CtϕμϕC1ϕ+δ,tu+uuν2u+p+gρ(T,C)ρ0z^=ν(βε)2ϕu,u=0,ε56Lκtϕγ2ϕ=1ε2ϕ(1ϕ)(γ(12ϕ)+ε(T+mC)). 2.4

    The new source terms of equation (2.4) can be understood heuristically. At leading order, the phase-field equation develops a tanh-like profile around the interface with thickness ε. Beyond this distance, the phase ϕ tends to its limiting values of zero in the fluid and one in the solid. In the fluid, equation (2.4) reproduces equation (2.1). In the solid, the advective and diffusive solute flux tend to zero (with δ ≪ 1 regularizing the concentration equation for numerical stability), and the velocity is damped by Darcy drag terms for porous media. At next order, thermosolutal forcing perturbs the interface to generate latent heat. For a clear derivation of a similar first-order model, see [31].

    Our goal is to surpass this approximate understanding and demonstrate improved convergence of this optimized phase-field model to the original moving boundary formulation. We achieve this with an asymptotic analysis of equation (2.4) as the interface length-scale ε tends to zero. Some approaches focus on a variational derivation of phase-field equations [3438]; however, we follow the view of [31], which states ‘phase-field equations are only quantitatively meaningful in the sharp-interface limit where they can be ultimately related to experiment’. While variational derivations are useful, it is asymptotic analysis, tested with numerical experiments, that best determines the accuracy of phase-field models. Proving these equations converge to the moving boundary formulation at O(ε2) in general geometries is nontrivial, but builds on second-order models of each individual boundary condition; a phase-field model which optimizes the mobility term for zero interface kinetics [59], a concentration equation similar to [31] and the diffuse domain method for Robin boundary conditions [60], and the smooth volume penalty method (which gives β = 1.51044385) [61].

    3. Analysis of the phase-field model

    In order to understand the phase-field model and demonstrate second-order accuracy, we use a multiple-scales matched-asymptotics framework, which we break into several modular steps:

    (i)

    Partition the solid Ω, fluid Ω+ and size O(ε) boundary ΔΩ regions (figure 1b).

    (ii)

    Adopt signed distance coordinates in the boundary region (§3a(i), figure 1c).

    (iii)

    Rescale normal coordinate and operators by ε near the interface (§3a(ii), figure 1b).

    (iv)

    Expand the variables in an asymptotic power series in ε in each region (§3a(iii)).

    (v)

    Connect regions with asymptotic matching conditions in the limit ε → 0 (§3a(iv)).

    (vi)

    Iterate to solve the zeroth-, first- and second-order problems (§3b–d).

    This procedure follows our previous analysis of the volume-penalty method [61]. The philosophy of our approach is to determine the evolution of the phase-field model up to and including O(ε2) in each region. We show that the variables in the fluid and solid regions, as well as the location of the interface itself, evolve with only O(ε2) divergence from the moving boundary formulation. Errors of O(ε) in the temperature and tangential velocity do occur in the boundary region ΔΩ. But this deviation is a necessary consequence of smoothly approximating discontinuous gradients across the interface, and is localized to the boundary region. We thereby derive a second-order accurate phase-field model. We now summarize the key components of this procedure.2

    (a) Summary of asymptotic procedure

    (i) (Signed-distance coordinate system)

    We build a simple orthogonal coordinate system in the boundary region ΔΩ using the signed-distance function from the ϕ = 1/2 level set. The signed distance σ is the minimum distance of a point x to the interface. It follows that the point x must lie in the direction of the unit normal vector n^ from the nearest point on the interface p, which we label with surface coordinates s,

    x=p(s)+σn^(s). 3.1
    The surface coordinates induce a tangent vector basis ti. Given orthogonal surface coordinates, we also derive the dual vector basis si and a unique orthonormal tangent basis t^i,
    ti=psi,t^i=ti|ti|andsi=t^i|ti|. 3.2
    We can then write the surface area measure dA = |t1||t2| ds1 ds2 and surface gradient ,
    =s1s1+s2s2=t^11+t^22.
    It is not difficult to show the normal n^ is everywhere equal to the gradient of the signed distance. The gradient of the normal is therefore symmetric and diagonalizable. The eigenvectors are the principal directions of curvature (which must align with orthogonal surface coordinates), and the eigenvalues are the principal curvatures κi,
    n^=σ,n^=κ1t^1t^1κ2t^2t^2=K. 3.3
    We use this orthonormal frame to describe all geometric quantities near the interface. We can then express the gradient using the surface and normal derivatives and the scale tensor J
    =n^σ+J1,whereJ=IσK. 3.4
    It is straightforward to derive the remaining vector calculus operators from the gradient, which we list in appendix A. Finally, the Cartesian partial time derivative ∂t can be rewritten in a moving coordinate system using the signed-distance partial time derivative τ,
    t=τvσ+σvJ1. 3.5

    (ii) (Rescaling interfacial coordinates)

    We analyse the size ε interfacial region using the rescaled coordinate ξ and derivative ξ,

    σ=εξ,σ=1εξ. 3.6
    This rescales vector calculus operators (listed in appendix A) through scale factors of the gradient
    J=IεξK,J1=k=0εkξkKk. 3.7

    (iii) (Variable expansions with formal power series)

    After splitting the domain into the fluid Ω+, solid Ω and interfacial ΔΩ regions, each variable f in each region (fluid f+, solid f and interfacial f) is expressed as a power series in ε,

    f+(x,t)=k=0εkfk+(x,t),f(x,t)=k=0εkfk(x,t)andf(ξ,s,τ)=k=0εkfk(ξ,s,τ). 3.8
    We do so for the temperature T, solute concentration C, fluid velocity u=uσn^+u, pressure p, phase field ϕ and interface velocity vn^ (which does not depend on ξ). We substitute these series into the hierarchy of equations generated by §3a(ii) to derive a system of equations at each order of ε. Solving each order requires a matching procedure between adjacent regions.

    (iv) (Asymptotic matching)

    To ensure agreement between different regions, we specify asymptotic matching boundary conditions. This subtle notion requires asymptotic agreement in intermediate zones ξ ∼ ε−1/2 in the limit that ε → 0. We can then let ξ approach infinity for the inner problem without encountering coordinate singularities (provided εmini|κi1|), and let σ approach zero for the outer problem without entering the interfacial region. That is, for any variable f, we require

    limε0f(±ε1/2ξ,s,t)limε0f±(p(s,t)±ε+1/2ξn^(s,t),t). 3.9
    Each variable is already expressed as an asymptotic series. Each series term in the outer variables can be further expanded as a Taylor series about the interface at ϕ = 1/2 using the signed distance σ. The matching conditions at each order of ε then simplify to
    limξ±f(ξ)=limξ±k=0εkfklimξ±k=0εk(=0kξ!σfk±|σ=0). 3.10
    Equipped with our multiple-scales matched-asymptotics procedure, we can now verify second-order convergence of our phase-field model in general smooth geometries.

    (b) Zeroth order

    At leading order, the phase-field equation reduces to the condition ϕ0±(1ϕ0±)(12ϕ0±)=0. We define the solid by ϕ0=1, the liquid by ϕ0+=0, with the boundary region separating them.

    Fluid problem—Noting that the phase is zero in the fluid, we recover the desired sharp interface equations for the remaining leading order variables,

    tT0++u0+T0+κ2T0+=0,tC0++u0+C0+μ2C0+=0,tu0++u0+u0+ν2u0++p0+B(T0+NC0+)z^=0,u0+=0.
    For brevity, we approximate the buoyancy relationship as being linear in temperature and concentration, with proportionality constants B and −NB respectively. This simplification does not affect the convergence results. The solutions may also require external boundary conditions to complete the system.

    Solid problem— Within the solid, we reproduce the diffusion equation for the temperature, and zero velocity in the solid. The divergence of the momentum equation reveals a Poisson equation for the pressure. The concentration equation depends sensitively on the decay of the phase to zero, but in the region 1 − ϕ ≪ δ the concentration forcing terms vanish, giving

    tT0κ2T0=0,tC0μ2C0=0,u0=0,2p0=Bz(T0NC0).
    Similarly, internal ice boundary conditions may be necessary.

    Boundary problem—The boundary region is defined relative to the interface ϕ = 1/2. To hold true for all ε when expanded into its power series, this implies that

    ϕ0(ξ=0)=12andϕk(ξ=0)=0for all k>0.
    In this region, the phase-field equation balances the diffusion and reaction terms. The limiting boundary conditions ϕ0(ξ → +∞) = 0 and ϕ0(ξ → −∞) = 1 imply a tanh profile for ϕ0,
    ξ2ϕ0=ϕ0(1ϕ0)(12ϕ0),limξ±ϕ0(ξ)ϕ0±|σ=0,ϕ0(ξ)=12(1tanhξ2).
    Matching the inner heat equation to the outer temperature requires T0 to be constant in ξ,
    ξ2T0=0,limξ±T0(ξ)T0±|σ=0,T0=T0±|σ=0.
    The identity ξϕ0=ϕ0(1ϕ0) simplifies the concentration equation. The limiting behaviour of the operator implies exponential growth of the kernel into the solid. This is unphysical, implying that the operand ξC0 is zero. Matching to the outer variables requires a constant concentration,
    (1ϕ0)(ξ+ϕ0)ξC0=0,limξ±C0(ξ)C0±|σ=0C0=C0±|σ=0.
    The divergence constraint and matching to the solid implies zero normal velocity,
    ξuσ0=0,limξ±uσ0(ξ)uσ0±|σ=0,uσ0=uσ0±|σ=0=0.
    The tangential momentum equation balances diffusion with damping. The kernel is spanned by an unphysical solution that grows exponentially into the solid, and a physical solution U(ξ) that decays exponentially into the solid and is affine in the fluid. Calibrating β [61] allows linear (rather than affine) behaviour of U(ξ) in the fluid. Matching to the fluid implies u⊥0 is zero,
    (ξ21β2ϕ0)u0=0,limξ±u0(ξ)u0±|σ=0,u0=u0±|σ=0=0.
    In summary, the zeroth-order asymptotics shows that the phase field has a tanh profile near the boundary, and that the leading order outer velocities satisfy no-slip boundary conditions. The next order problem reproduces the remaining boundary conditions.

    (c) First order

    The first-order perturbation of the phase-field equation away from the interface takes the form

    (16ϕ0±+6ϕ0±2)ϕ1±=(T0±+mC0±)ϕ0±(1ϕ0±).
    At subsequent orders, the leading order operator (16ϕ0±+6ϕ0±2) pairs with the highest order ϕk±. The forcing terms contain lower-order factors. As the first inhomogeneity is zero, all remaining forcing terms, and therefore all outer phase-field expansions ϕk1±, are zero.

    Fluid problem—The remaining fluid equations are linear and homogeneous,

    tT1++u0+T1++u1+T0+κ2T1+=0,tC1++u0+C1++u1+C0+μ2C1+=0,tu1++u0+u1++u1+u0+ν2u1++p1+B(T1+NC1+)z^=0,u1+=0.
    The external boundary conditions are satisfied by the zeroth-order outer solutions. The first-order corrections therefore have homogeneous external boundaries. They are only perturbed at the melting interface. We show this interfacial perturbation is zero at first order.

    Solid problem—The solid equations are the same at first order,

    tT1κ2T1=0,tC1μ2C1=0,u1=0,2p1=Bz(T1NC1).

    Boundary problem—The differential operator of the first-order phase-field equation has a two-dimensional kernel spanned by ξϕ0 and 6ϕ0(1 − ϕ0)(ξ + sinhξ) + sinhξ. The inhomogeneity must be orthogonal to the kernel, implying the Gibbs–Thomson condition,

    γ(ξ2(16ϕ0+6ϕ02))ϕ1=ξϕ0(T0+mC0γK¯)(T0±+mC0±)|σ=0γK¯=0.
    Matching implies ϕ1 = 0. Integrating the temperature equation recovers energy conservation,
    κξ2T1=v0Lξϕ0,T1=v0Lκξϕ0dη+σT0+(0)ξ+T1+(0),[κσT0±]σ=0+Lv0=0.
    Solving the homogeneous concentration equation and matching gives the solute conservation condition,
    [(ξ+ϕ0)(μξC1+v0C0)=0,C1=v0μC0+(0)ξ+C1+(0),μσC0+|σ=0+C+|σ=0v0=0.
    The divergence condition when matched with the solid again implies zero normal velocity,
    ξuσ1=0,uσ1=uσ1±|σ=0=0.
    The tangential velocity is proportional to the physical solution U(ξ). We choose β [61] to ensure linear behaviour in the fluid,
    (ξ2ϕ0β2)u1=0u1(ξ)=σu0+|σ=0U(ξ),u1(ξ)σu0+|σ=0ξ,u1+|σ=0=0.
    We finally use the normal momentum equation to show the pressure is constant at leading order
    ξp0+νϕ0β2uσ1=0p0=p0±(0).
    The first-order asymptotics have reproduced the Gibbs–Thomson condition with zero interface kinetics and the solute and energy conservation boundary conditions. Hence the phase-field equations will tend to the sharp interface equations in the limit. Calibrating β ensures the first-order outer fluid velocity satisfies homogeneous boundary conditions uσ1+|σ=0=u1+|σ=0=0. We now solve the second-order asymptotics to show that the mobility coefficient ε(5/6)(L/κ) ensures homogeneous boundary conditions for the first-order outer temperature and concentration, and that the first-order interfacial velocity error is zero—allowing second-order convergence.

    (d) Second order

    Fluid problem—At second order, the fluid equations are sourced by the first-order errors,

    tT2++u0+T2++u2+T0+κ2T2+=u1+T1+,tC2++u0+C2++u2+C0+μ2C2+=u1+C1+,tu2++u0+u2++u2+u0+ν2u2++p2+B(T2+NC2+)z^=u1+u1+,u2+=0.

    Solid problem—The solid velocity is now non-zero from interior pressure and forces,

    tT2=κ2T2,tC2=μ2C2,2p2=Bz(T2NC2),νβ2u2=B(T0NC0)z^p0.

    Boundary problem—The phase-field equation now has a more complex inhomogeneous term:

    γ(ξ2(16ϕ0+6ϕ2))ϕ2=ξϕ0(56Lκv0+(T1+mC1)ξγK2¯).
    We again apply a solvability condition. The odd terms drop out, and integration shows ξϕ0ϕ0(1ϕ0)dξ=16 and ξϕ0ϕ0(1ϕ0)ξϕ0dηdξ=536. The interfacial velocity term thus vanishes, giving a constraint between first-order concentration and temperature:
    ξϕ02(T1±(0)+mC1±(0)+Lv0κ(56ξϕ0dη))dξ=0(T1±+mC1±)|σ=0=0.
    An explicit formula for ϕ2 (using variation of parameters) is non-trivial but it decays exponentially to zero in either direction. The temperature equation is then integrated. If initially T1±|σ=0=0, then matching prevents linear asymptotic behaviour of T2, implying v1 = 0,
    κξ2T2=Lv1ξϕ0+tT0κT0+(κK¯v0)ξT1,κT2=(tκ+(κK¯v0)σ)T0+|σ=0ξ22+(κK¯v0)v0Lκξηϕ0dζdη+T2±|σ=0.
    The concentration equation is similarly integrated. The inhomogeneity is constant in ξ, and explicitly solvable. Using previous solutions and C1±|σ=0=T1±|σ=0=v1=0, we find C2,
    (ξ+ϕ0)(μξC2+v0C1+v1C0)=tC0+μK¯ξC1μC0,μC2=v02μ2C0+|σ=0ξ22+(t+K¯v0μ)C0±|σ=00ξlogϕ1ϕdη+C2±|σ=0.
    The divergence equation implies the second-order normal velocity is now no longer zero,
    ξuσ2=u1,uσ2=uσ2()(σu0+(0))ξUdζ.
    The second-order tangential velocity can then be solved using variation of parameters
    ν(ξ2ϕ0β2)u2=p0+(νK¯v0)ξu1+B(T0NC0)z^=R,u2=(Q+c)U,whereQ0ξηRUdζU2dη,
    where c is a constant of integration that cancels the linear part of the solution into the fluid. The normal momentum equation can then be integrated to determine p1. Matching requires no constant term in the limiting behaviour of the pressure into the fluid,
    ξp1=ν(σu0+|σ=0)(ϕ0β2(ξUdηU(ξ)))νϕ0β2uσ2|σ=0B(T0+NC0+)|σ=0z^σ,p1=ν(σu0+|σ=0)U(ξ)B(T0+NC0+)|σ=0z^σξ+νβ2((σu0+|σ=0)(ξϕ0ζU(η)dηdζ)+uσ2|σ=0ξϕ0dη).

    The second-order asymptotic analysis shows that calibrating the mobility and damping parameters ensures homogeneous boundary conditions of the first-order outer solutions at the interface. Combined with homogeneous external boundary conditions and homogeneous linear evolution equations at first order, this implies that if the outer solutions are initialized correct to O(ε2), then the fields and interfacial velocity will evolve accurate to O(ε2) over time. In reality, the chaotic nature of many fluid dynamics problems prevents convergence beyond the Lyapunov timescale of the flow, but at each point in time the system behaves correctly to within second-order accuracy.

    4. Numerical validation of the model

    We now validate the asymptotic arguments of §3 in two benchmark problems. In each problem, we calculate a numerical reference solution corresponding to the ‘sharp interface’ equations of §2a. We then show the optimal phase-field equations of §2b achieve convergence of O(ε2) to these reference solutions. Both the reference and phase-field problems are simulated using the flexible and efficient spectral code Dedalus [62].3 Dedalus is a general-purpose code that takes PDEs in plain text and automatically discretizes them using spectral series (including Fourier series, Chebyshev polynomials and other orthogonal polynomials). Linear terms in the equations are converted into sparse banded matrices and nonlinear terms are treated pseudospectrally. Included implicit–explicit timesteppers integrate the linear terms implicitly, and the nonlinear terms explicitly. Dedalus is written in the Python programming language to aid rapid development, and uses compiled libraries (including BLAS, LAPACK and MPI) to perform efficient parallelized simulations at scale.

    (a) Melting and dissolution at a stagnation point

    The first benchmark problem examines warm liquid with dissolved solute flowing towards a melting interface at a stagnation point (similar to §5 of [63] and 5.6 of [61]). We compare the sharp interface and phase-field approximations to this problem, as illustrated in figure 2. The symmetries of the system allow us to significantly simplify equation (2.1), revealing a steady travelling wave similarity solution for the moving boundary and phase-field formulations. We do this by transforming to a frame moving leftward at the steady interface melting speed −v. We solve the system as a nonlinear boundary value problem in Dedalus.

    Figure 2.

    Figure 2. On the left, we illustrate stagnation point flow towards a melting interface. The fluid velocity decreases to zero at the interface (black arrows x > 0), and the vertical velocity is proportional to y. The interface velocity (grey arrow at x = 0) uniformly recedes to the left. The temperature (in colour) decreases towards the left, and is invariant in y (as are all quantities excepting the vertical fluid velocity). The concentration (not shown) decreases similarly. We also plot reference and phase-field solutions for temperature T, solute concentration C, normal velocity u and phase field ϕ as a function of x in the second and third columns. Only the temperature exists inside the solid in the reference solution. We negate the normal fluid velocity u for clarity. (Online version in colour.)

    Sharp interface model—We solve a diffusion equation for the solid temperature T, advection–diffusion equations for the liquid temperature T+ and solute concentration C and a nonlinear third-order equation for the horizontal fluid velocity u,

    T(1)=1,T+(0)=T(0),[xT(0)]+=Lvκ,u(0)=0,xu(0)=0,T+(1)=1,T±(0)=mC(0),xC(0)=C(0)vμ,C(1)=0,xu(1)=1. 4.2

    Phase-field model—The phase field instead implicitly models the interfacial boundary conditions through various equation terms, which reduce equation (2.4) to

    νx2T=((1ϕ)uv)xT+Lvxϕ,μx2C=(uv)xCxlog(1ϕ+δ)(μxC+vC),νx3u=1+(uv)x2u(xu)2+ν(βε)2ϕxu,γx2ϕ=ε56Lκvxϕ+γε2ϕ(1ϕ)(12ϕ)+1εϕ(1ϕ)(T+mC). 4.3
    We now only require the Dirichlet outer boundary conditions of before to solve the problem
    T(1)=D,C(1)=0,ϕ(1)=1,u(1)=0,xu(1)=0 4.4
    and
    T(1)=1,C(1)=1,ϕ(1)=0,ϕ(0)=12,xu(1)=1. 4.5
    Requiring ϕ(0) = 1/2 is necessary to fix the problem in the moving frame to determine v.

    Results—We solve each problem as a nonlinear boundary value problem in Dedalus. We discretize each variable on the solid (−1 < x < 0) and fluid (0 < x < 1) domains using Chebyshev polynomials. Newton–Kantorovich iteration then converges on a solution with a tolerance of 10−12 (see [64, appendix C]). We reproduce example phase field and reference snapshots in figure 2 for ε = 0.05, κ = μ = ν = 1/10 and D = m = L = γ = 1, using 64 grid points for each subdomain. We set δ = 2 × 10−5 to regularize the solute equation within the solid. The disagreement (though small) is visible by eye for the temperature, concentration and normal velocity.

    We then perform a quantitative analysis of convergence in figure 3. We test seven logarithmically spaced values of ε from 10−1 to 10−3, for the previous control parameters, and using 256 grid points in each subdomain. We quantify the difference between the reference and phase-field solutions with the L1 and L error norms of each variable (u, T+, T, C, v) as a function of ε. We find clear O(ε2) convergence in the L1 error norm of each field variable, as well as for the L error norm of the u, C and v variables. The L1 convergence demonstrates the quantitative accuracy of the phase-field model. The reason for the apparently restricted O(ε) L convergence of the temperature fields is the jump in temperature gradient of the reference solution at the interface. The smooth phase-field model cannot follow this kink leading to an O(ε) disagreement that is localized to the boundary. Tangential velocities also suffer from this reduced continuity in general.

    Figure 3.

    Figure 3. Plot of convergence in L1 and L error norm of the velocity u, liquid temperature T+, solid temperature T, solute concentration C and interface melting speed v as a function of ε. Each norm is calculated within the appropriate domain of the reference variable. Clear O(ε2) convergence is observed in L1 norm using optimal parameters. O(ε) convergence in L norm occurs for the temperature because of the non-differentiability of the reference solution. (Online version in colour.)

    (b) Double diffusive melting

    In our second benchmark, we examine buoyancy driven flow of warm liquid with dissolved solute underneath a melting solid layer. This problem develops non-trivial geometries from the evolution of the flow. To simulate the reference formulation in Dedalus, we use an evolving coordinate system that maps the fluid and solid regions to a stationary rectangular domain. This transformation allows an efficient spectral discretization using Dedalus, and is used in similar spectral solvers [65]. We repeat this remapping for the phase-field formulation as it concentrates resolution near the ϕ = 1/2 level set. This allows us to efficiently and accurately simulate much smaller ε. By comparing the phase-field simulation to the reference problem as we decrease ε, we demonstrate second-order accuracy of the model.

    Sharp differential equations—The full domain exists between 0 < z < 2 and 0 < x < 4. It is partitioned by the interface at height z = h(t, x). Above the interface, we solve the heat equation for the solid temperature field T with diffusivity κ. Below the interface, we solve incompressible Boussinesq hydrodynamics (using a first-order formulation in terms of velocity u, vorticity q and augmented pressure p=P+12|u|2), with advection and diffusion of temperature T+ and solute concentration C,

    tTκ2T=0,u=0,tT+κ2T+=uT+,q×u=0,tCμ2C=uC,tu+pν×q=q×u+(T+NC)e^z, 4.6
    where ν, κ and μ are the momentum, temperature and solute diffusivity. This first-order reformulation is required in the Dedalus solver, and has the added benefit of simplifying the mathematical details of the coordinate transformation. We set the buoyancy parameter B = 1.

    Boundary conditions—At the top, we specify conservative temperature boundary conditions. At the bottom, we specify no-slip boundaries with no-flux temperature and solute conditions. The zeroth mode for the vertical velocity is replaced by a choice of pressure gauge,

    zT(t,x,2)=0,zT+(t,x,0)=0,zC(t,x,0)=0,u(t,x,0)=0,p(t,x,0)=0.
    At the interface z = h(t, x), we have a Gibbs–Thomson boundary condition, matching temperature boundary conditions, energy and solute conservation boundary conditions and zero velocity boundary conditions required for mass conservation,
    T++mC=γn^,n^T+n^T+Lκn^the^z=0,ux=0,T+T=0,n^C+Cμn^the^z=0,uz=0. 4.7

    Initial conditions—We initialize the problem with h(0, x) = 1 and zero velocity and pressure, and a decreasing concentration profile with height. We apply a large perturbation to the linearly decreasing temperature field to initiate convection,

    [T(0,x,z)=1z+exp(52((x2)2+(z0.5) 2))
    and
    [C(0,x,z)=0.05+(10.05)12(1tanh(10(z0.5))).

    Phase-field equations—The phase-field equations are a similar reformulation of equation (2.4):

    tTκ2TLtϕ=uT,tCμ2C=uC+tϕCCϕ1ϕ+δ,u=0,ε56Lκtϕγ2ϕ=1ε2ϕ(1ϕ)(γ(12ϕ)+ε(T+mC)),q×u=0,tu+pν×q=q×u+(T+NC)e^zν(βε)2ϕu. 4.8
    We use the optimal damping prescription β = 1.51044385 [61] and choose δ = 10−4. We specify the same insulating no-slip boundary conditions at z = 0 and z = 2. The boundary conditions at z = h(t, x) require continuity of each field and its derivatives. We initialize using the same initial conditions as for the remapped simulation, plus the initial conditions for the phase field
    ϕ(0,x,z)=12(1+tanh(12ε)(z1)).

    Remapped coordinates—To solve the melting problem, we remap our evolving domain in Cartesian space to a fixed rectangular domain with the new coordinates τ, ξ and ζ±,

    τ(t,x,z)=t,ξ(t,x,z)=x,ζ+(t,x,z)=zh(t,x),ζ(t,x,z)=zh2h(t,x),
    for which we plot equally spaced level set contours in figure 4. The differential geometry of the new coordinates is presented in appendix B. We solve the phase-field equations on the remapped domains of the reference problem to concentrate resolution near the phase-field interface and speed up comparison of quantities between simulations.
    Figure 4.

    Figure 4. Contour plot of ξ (vertical) and ζ coordinates (horizontal) for h(x)=34+15cos(πx). (Online version in colour.)

    Model and numerical parameters—We simulate these equations using model parameter values from table 1. We simulate the reference equations using 64 Chebyshev polynomials in the vertical direction and 128 Fourier modes in the periodic horizontal direction. After determining the reference solution, we discretize the phase-field equations on the same evolving domain of the reference simulation for several values of ε. To interpolate the reference geometries into the phase-field simulations between the saved time and grid points, we use third-order interpolating splines. The phase-field simulations discretize the vertical ζ basis using three compound Chebyshev bases [0,10ε][10ε,110ε][110ε,1], with resolutions of 32, 64 and 32 modes, respectively. This greatly reduces the simulation cost. We use a time step size of Δt = 10−3, 5 × 10−4, 2.5 × 10−4, 2 × 10−4, 5 × 10−5 for decreasing choice of ε, and integrate in time using a second-order multistep semi-implicit backwards difference formula (SBDF2).

    Table 1. Model parameters used in the second benchmark problem.

    ν κ μ γ L m N ε
    10−2 10−2 10−2 10−2 1 0.2 0 5×103,102.5,2×102.5,5×102.5,102

    Results—A time series of the temperature and concentration fields of the reference solution is given in figure 5, which illustrates a rising buoyant plume from the initial temperature anomaly in the fluid. The warm solute-laden liquid melts the interface in the middle more rapidly than the ambient liquid at the sides, causing a trough to develop.

    Figure 5.

    Figure 5. Time series of temperature and concentration fields in reference simulation. (Online version in colour.)

    In figure 6, we plot several error metrics of the phase-field simulations. In the first two columns, we plot the spatial error normalized by the L1 error for the liquid temperature T+, solute concentration C, Cartesian velocity components ux and uz, and true pressure P=p12|u|2. We plot these normalized spatial errors for the smoothest (ε = 10−2) and sharpest (ε=5×103) phase-field simulations at the final time t = 10. These plots reveal a consistent spatial error profile between simulations. To understand the amplitude of the spatial error, we plot the L1 and L error norms of each variable as a function of ε in the third and fourth columns of figure 6. We see clear second-order convergence of all variables in L1 norm. We note that the structure of the boundary layer of the tangential velocity and temperature affects the L norm. The phase-field model causes a kink in the temperature and tangential velocity near the interface, which leads to an O(ε) error of these variables in the interfacial region. However, this error is localized to the boundary, and does not propagate outward. (This trend is difficult to notice in the temperature plot as the error within the fluid still dominates the O(ε) boundary error for the moderate choices of ε chosen.) We therefore achieve second-order convergence in the fluid and solid regions due to our optimal calibration of the phase-field model parameters.

    Figure 6.

    Figure 6. Columns 1 and 2 plot normalized spatial errors of the liquid temperature T+, concentration C, horizontal and vertical Cartesian velocity ux, uz and pressure p at time t = 10. Columns 3 and 4 plot the L1 and L error norms for the fluid temperature T+, concentration C, vertical ux and horizontal velocity uz, pressure p and interface height h as a function of ε at time t = 10. (Online version in colour.)

    5. Conclusion

    In this paper, we provide a general framework for analysing the convergence of phase-field models. We use this procedure to develop a second-order phase-field model of melting and dissolution in multi-component flows. This is a concrete advancement that showcases second-order accurate approximations of many common boundary conditions; no-slip Dirichlet boundaries, Neumann boundaries, Robin boundaries and Stefan boundaries. We also verify these prescriptions in two thorough benchmark problems with accurate reference solutions. By developing a framework to validate this model, we now possess the machinery required to create second-order accurate extensions to more general thermodynamic properties. We can also consider yet higher-order analyses of this and other models. An automated approach of Richardson sequence extrapolation could also be considered to generate higher-order accurate models, as was done by the authors for the volume-penalty method [61]. To be clear, phase-field models are not necessarily the most appropriate choice for any problem. Remapping was also shown to be an effective strategy for sufficiently simple geometries in §4b. However, our second-order phase-field model is simple to implement, is more accurate than standard phase-field models, and is applicable in much more challenging geometries than remapping approaches.

    Data accessibility

    The Dedalus code is free and open-source and available at http://dedalus-project.org/. All simulation code, data and analysis scripts and plots are available at https://github.com/ericwhester/phase-field-code. The Mathematica asymptotics script is also available at that link.

    Authors' contributions

    E.W.H. project conception and design, writing, mathematics (asymptotics and remapping), simulation code, data analysis and visualization; L.-A.C. project design and conception; B.F. project design and conception, phase-field expertise; K.J.B. domain remapping simulation expertise, Dedalus code; G.M.V. mathematics of signed distance coordinates, Dedalus code. All authors provided critical revision of the manuscript, approve the final version of the paper and agree to be held accountable for the work.

    Competing interests

    We declare that we have no competing interests.

    Funding

    E.W.H. acknowledges support from The University of Sydney Phillip Hofflin International Research Travel Scholarship, Postgraduate Research Support Scheme and William and Catherine McIlrath Scholarship. L.-A.C. acknowledges support from the European Union’s Horizon 2020 research and innovation programme under Marie Skłodowska-Curie grant agreement no. MIMOP 793450.

    Acknowledgements

    We acknowledge PRACE for awarding us access to Marconi HPC at CINECA, Italy, and The University of Sydney for access to the Artemis HPC.

    Appendix A. Signed-distance coordinates

    The signed distance σ of the point x is the minimum distance to the surface. Labelling surface points p and unit normals n^ with orthogonal surface coordinates s, we have

    [x=p(s)+σn^(s).
    This gives a tangent vector basis ti, dual basis si and orthonormal tangent basis t^i:
    [ti=psi,t^i=ti|ti|andsi=t^i|ti|.
    These give the surface gradient , area measure dA = |t1||t2| ds1 ds2 and surface divergence,
    =s1s1+s2s2=t^11+t^22andu=1|t1||t2|(s1(|t2|u1)+s2(|t1|u2)).
    The normal n^ is everywhere equal to the gradient of the signed distance, and therefore its gradient is symmetric and diagonalizable. The eigenvectors are the principal directions of curvature (which align with orthogonal surface coordinates), and the eigenvalues are the principal curvatures κi,
    n^=σ,n^=κ1t^1t^1κ2t^2t^2=K.
    We express the gradient using the orthonormal frame (n^,t^1,t^2) and the scale tensor J
    =n^σ+J1,whereJ=IσK.
    The determinant |J| relates mean curvature K¯, Gaussian curvature |K | and volume measure dV,
    K¯=κ1+κ2,|K|=κ1κ2,|J|=1σK¯+σ2|K|anddV=|J|dσdA.
    We define the adjugate tensors J^ and K^,
    K^=|K|K1=κ2t^1t^1+κ1t^2t^2,J^=|J|J1=IσK^.
    We also define the cross product with the unit normal, which admits simple identities,
    =n^×,==0,n^×(Ju)=J^u,u=n^×u,uu=uu=0,n^×u=u.
    We next find the gradient of the basis vectors, and define Ricci rotation coefficients,
    n^=κ1t^1t^1κ2t^2t^2,Rijk=t^j(t^i)t^k,R112=t^1(t^1)t^2=ω1,t^i=κit^in^+Rijkt^jt^k,Rijk=Rkji,R221=t^2(t^2)t^1=ω2.
    These relations allow us to calculate all relevant vector calculus operators,
    u=σ(|J|uσ)|J|+(J^u)|J|,2f=σ(|J|σf)|J|+(J^J1f)|J|,×u=n^(J^u)|J|+J^1(σ(J^u)uσ)×u=n^|J|((J^J1(σ(Ju)uσ)))+J^1σ(J^J1(σ(Ju)uσ))+J^1((Ju)|J|),u=n^n^σuσ+n^σu+J1(uσ+Ku)n^+J1(uKuσ),uf=uσσf+uJ1f,uu=n^(uσσuσ+uJ1(uσ+Ku))+uσσu+uJ1(uKuσ),tf=τfvσf+σvJ1f,tu=(τuσvσuσ+σvJ1(uσ+Ku))n^+(τuvσu+σvJ1(uKuσ)).
    Rescaling—Rescaling the normal coordinate by ξ = σ/ε gives the following operators:
    =ε1n^ξ+k=0εkξkKk,|J|u=ε1ξuσξ(ξK¯uσ)+u+ε(ξ(ξ2|K|uσ)ξ(K^u)),2f=ε2ξ2f+ε1(K¯ξf)+ε0(ξK2¯ξf+f)+O(ε)××u=ε2ξ2u+ε1(K¯ξuξuσn^(ξu))+O(ε0),uf=ε1uσξf+k=0εkξkKkuf,uu=ε1(uσξu+n^uσξuσ)+k=0εkξkuKk((uKuσ)+(uσ+Ku)n^),t=ε1vξ+ε0τ+ε1(ξvk=0εkξkKk).

    Appendix B. Differential geometry of remapped coordinates

    We solve §4b by remapping to a fixed rectangular domain with coordinates τ, ξ and ζ±,

    τ(t,x,z)=t,ξ(t,x,z)=x,ζ+(t,x,z)=zh(t,x),ζ(t,x,z)=zh(t,x)2h(t,x),η(τ,ξ)=h(t,x),
    where η is the interface height in the new coordinates. We now develop the differential geometry required to write equations (2.1) and (2.4) in the new coordinates. We give explicit formulae for the ζ+ remapping. The ζ remapping is analogous and straightforward to derive. We use a tangent vector basis derived from the Jacobian J of our transformation and its inverse K,
    J+[tτtξtζxτxξxζzτzξzζ]=[10ζτηη01ζξηη001η]andK+[τtτxτzξtξxξzζtζxζz]=[10ζτη01ζξη00η].

    The tangent vector components are the rows of the spatial component of the inverse Jacobian ei=Kije^j. We use Einstein notation to sum over the spatial indices i = 1, 2. These tangent vectors induce dual vectors ωi=Jjie^j which satisfy ωiej=δji, with components from the column vectors of the spatial component of the Jacobian. We record the length of the vectors using the metric, with co/contravariant components gij = ei · ej, gij = Ωi · Ωj,

    e1+=e^1+ζξηe^2,e2+=ηe^2,ω1+=e^1,ω2+=e^2ζξηe^1η,g11+=(1+ζ2ξη2),g12+=ζηξη,g11+=1,g12+=ζξηη,g21+=ζηξη,g22+=η2,g21+=ζξηη,g22+=1η2(1+ζ2ξη2).

    These give ‘Jacobian’ ||K|| determinants of ||K+||||gij||=η. The completely antisymmetric tensor can be transformed from Cartesian coordinates,

    E=[ij]ω^iω^j=[ij]KkiKljωkωl=||K||[kl]ωkωl=1||K||[kl]ekel,
    where [ij] is the antisymmetric symbol. We project the gradient to the tangent basis with the covariant derivative i=ei=ωii. We measure spatial variation of the basis with the connection coefficients Γijk=ωkjeiejei=Γijkek. For the tangent basis, the connection coefficients take a particularly simple and symmetric form
    [Γ111+=Γ121+=Γ211+=Γ221+=0,Γ112+=ζξ2ηη,Γ122+=Γ212+=ξηη,Γ222+=0.

    We note the connection coefficients for the dual vectors are related to those for the tangent basis by 0=k(ωiej)=k(ωi)ej+ωik(ej)=k(ωi)ej+Γjki. The partial time derivative ∂t changes as defined in zeroth row of the Jacobian, and the basis vectors also evolve in time,

    τe1+Γ10i+ei+=ζητξηe2+,τe2+Γ20i+ei+=τηηe2+.

    These geometric quantities allow us to calculate all the relevant vector calculus quantities,

    u=i(ujej)ωi=(iuj+ukΓkij)ejωi,u=u:I=(iuj+ukΓkij)ejωi=iui+ukΓkii,×u=E:u=(Eijωiωj):ωk(k)(ulel)=||K||[ij]u;kl(ωiωk)(ωjel)=||K||[ij]giku;kj,×q=Eq=(Eijkq)(ejωk)ei=1||K||[ij]q,jei=1||K||(q,2e1q,1e2),2f=i(jfωj)ωi:I=(ijf)ωjωijfΓkijωkωi=gjiijfgkijfΓkij,p=gjip,jei,u×q=Euq=(Eijωiωj)(qukek)=||K||gjk[ij]uiek=||K||q(g2ku1g1ku2)ek,××u=[ij]j([kl]kul)e^i=(δikδjlδilδjk)jkule^i=(u)2u,(×u)×u=[ij][kl]kuluje^i=(iujjui)uje^i=12(uu)(u)u,(uu)=(u)u+(u)u,t=τ+J0ii,tu=tuiei+uitei=(τ+J0ii)ujej+J0i0Γki0jukej.

    The normal vector at the interface is proportional to the ζ dual vector. This gives us the normal gradient and normal velocity at the interface,

    n^=ω2g22n^=g2ig22i,v=the^z,n^v=1g22thh.

    We finally write the interfacial curvature as κ=ξ2η/(1+ξη2) 3/2. This completes the relations used to simulate the sharp interface and phase-field equations in remapped geometries.

    Footnotes

    1 Shortly before submission, we became aware of the work [58]. In it, Subhedar et al. perform second-order analysis of a phase-field model combining melting and advection. Our work is more general as we also account for dissolution, give a more comprehensive analytical treatment, and use more challenging computational benchmarks.

    2 We also provide a Mathematica script that automates each step of this analysis at github.com/ericwhester/phase-field-code.

    3 The full simulation code, saved data and analysis scripts are freely available at github.com/ericwhester/phase-field-code.

    Published by the Royal Society. All rights reserved.

    References

    Reference