<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>A stable and accurate scheme for solving the Stefan problem coupled with natural convection using the Immersed Boundary Smooth Extension method</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>2021 May</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10233021</idno>
					<idno type="doi">https://doi.org/10.1016/j.jcp.2021.110162</idno>
					<title level='j'>Journal of computational physics</title>
<idno>1090-2716</idno>
<biblScope unit="volume"></biblScope>
<biblScope unit="issue"></biblScope>					

					<author>J. M. Huang</author><author>M. J. Shelley</author><author>D. B. Stein</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[The dissolution of solids has created spectacular geomorphologies ranging from centimeterscale cave scallops to the kilometer-scale "stone forests" of China and Madagascar. Mathematically, dissolution processes are modeled by a Stefan problem, which describes how the motion of a phase-separating interface depends on local concentration gradients, coupled to a fluid flow. Simulating these problems is challenging, requiring the evolution of a free interface whose motion depends on the normal derivatives of an external field in an ever-changing domain. Moreover, density differences created in the fluid domain induce self-generated convecting flows that further complicate the numerical study of dissolution processes. In this contribution, we present a numerical method for the simulation of the Stefan problem coupled to a fluid flow. The scheme uses the Immersed Boundary Smooth Extension method to solve the bulk advection-diffusion and fluid equations in the complex, evolving geometry, coupled to a θ -L scheme that provides stable evolution of the boundary. We demonstrate 3rd-order temporal and pointwise spatial convergence of the scheme for the classical Stefan problem, and 2nd-order temporal and pointwise spatial convergence when coupled to flow. Examples of dissolution of solids that result in high-Rayleigh number convection are numerically studied, and qualitatively reproduce the complex morphologies observed in recent experiments.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="1.">Introduction</head><p>Mass exchange between material phases, as in melting, solidification, and dissolution, drives the evolution of the phase separating interface. When the driving dynamics are generated by diffusion or heat transfer, such interface-evolution problems are categorized as Stefan problems <ref type="bibr">[1]</ref><ref type="bibr">[2]</ref><ref type="bibr">[3]</ref>. In the cases of solidification and melting, heat flux at the interface drives the boundary motion <ref type="bibr">[3]</ref><ref type="bibr">[4]</ref><ref type="bibr">[5]</ref>; in the case of dissolution, molecular diffusion converts the solid into solute <ref type="bibr">[3,</ref><ref type="bibr">[6]</ref><ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref>. The rate at which melting or dissolution occurs depends on the distribution of heat or concentration in the fluid phase, and this distribution is typically governed by an advection-diffusion equation.</p><p>These processes cannot be fully described by the classical Stefan problem alone: diffusion of heat/solute induces density changes in the fluid, causing buoyancy driven flows that reorganize the temperature/concentration fields <ref type="bibr">[10,</ref><ref type="bibr">11]</ref>. These rearrangements induce Rayleigh-Taylor <ref type="bibr">[12]</ref> and Rayleigh-B&#233;nard convection <ref type="bibr">[13]</ref> and hence enhance the interfacial melting/dissolving rate <ref type="bibr">[5,</ref><ref type="bibr">7,</ref><ref type="bibr">9]</ref>, further complicating the interfacial dynamics. These complex dynamics have been shown to generate fascinating pattern formations such as the scalloping of icebergs <ref type="bibr">[14]</ref>, the roughening of dissolving surfaces <ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref>, and the sharpening of dissolving pinnacles <ref type="bibr">[15]</ref>.</p><p>A significant body of literature exists for the numerical solution of Stefan problems, including schemes based on the levelset method <ref type="bibr">[16]</ref><ref type="bibr">[17]</ref><ref type="bibr">[18]</ref><ref type="bibr">[19]</ref><ref type="bibr">[20]</ref><ref type="bibr">[21]</ref>, phase field method <ref type="bibr">[5,</ref><ref type="bibr">19]</ref>, and others <ref type="bibr">[19,</ref><ref type="bibr">22]</ref>. In this paper, we seek to construct a scheme for solving the Stefan problem with convection in a high Reynolds number fluid. While difficulties are numerous, the two primary ones stem from the fact that (1) it has been observed that these problems typically generate flows and interfacial boundaries with fine length-scales; <ref type="bibr">(2)</ref> the boundary evolution depends on gradients of computed quantities at the boundary <ref type="bibr">[7]</ref><ref type="bibr">[8]</ref><ref type="bibr">[9]</ref>. The first difficulty demands a high resolution scheme that can accommodate a moving boundary, and thus a natural choice is to use an embedded boundary method. These schemes embed the complex and evolving boundary in a larger, geometrically simple domain, enabling the use of many of the fast and robust methods for solving partial differential equations (PDE) that have been developed for regular domains. Unfortunately, most embedded boundary schemes, such as the Immersed Boundary Method <ref type="bibr">[23]</ref>, fail to accurately capture the gradient of unknowns at the boundary. For the Immersed Boundary Method as applied to the diffusion equation, for example, normal derivatives of the concentration field are inconsistent at the boundary <ref type="bibr">[24]</ref>. The use of such a method would thus yield inaccurate dynamics of the phase interface.</p><p>To construct an accurate, fast, and stable solver, we leverage the recent development of the Immersed Boundary Smooth Extension (IBSE) method <ref type="bibr">[24]</ref><ref type="bibr">[25]</ref><ref type="bibr">[26]</ref>, an embedded boundary scheme that accurately captures derivative information at the boundary. The bulk advection-diffusion equations for heat/solute transport and the Navier-Stokes equations are solved using the IBSE method in the evolving fluid region. The interfacial boundary dynamics is solved using the &#952; -L method <ref type="bibr">[27]</ref><ref type="bibr">[28]</ref><ref type="bibr">[29]</ref> and the Gibbs-Thomson effect is added to stabilize its long-time evolution. The solver is accurate (at least second-order pointwise in space), efficient and stable -allowing for high resolution of flow and boundary features, as well as long-time simulation of complex phenomena. We validate the solver through comparisons to analytic solutions and refinement studies, demonstrate that it reproduces classical instabilities, and use it to analyze the formation of complex surface morphologies and fluid flows for a dissolving solid.</p><p>This paper is organized as follows. In Section 2 we define the Stefan problem for melting and dissolution, and discuss its coupling to an external fluid. In Section 3, we describe the IBSE-Stefan solver; including a review of the IBSE method introduced in <ref type="bibr">[24,</ref><ref type="bibr">25]</ref>, as well as the &#952; -L method, introduced in <ref type="bibr">[27]</ref><ref type="bibr">[28]</ref><ref type="bibr">[29]</ref>. In Section 4, we describe the numerical method and discuss important details of the specific implementation. In Section 5, we compare the numerical solution of a Stefan problem without convection to an analytic solution and show that the solver captures the Mullins-Sekerka instability, resolving complex dynamics of the solid interface. In Section 6, we show several examples of dissolution coupled with Navier-Stokes flows. Sweeping across a range of Reynolds and P&#233;clet numbers, we explore which control parameters are most predictive of pattern formation on the interface and identify that the Rayleigh number governs the regimes of shape dynamics. In Section 7, we discuss the scope and limitations of our numerical method, and demonstrate that our study qualitatively reproduces phenomena seen in recent experiments <ref type="bibr">[7,</ref><ref type="bibr">8]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.">Stefan problem coupled with natural convection</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.1.">Stefan problem</head><p>The classical Stefan problem models the diffusion of heat between two phases of a substance that are separated by a phase interface , along with the evolution of that interface. Physically, one phase corresponds to a solid domain solid as shown in Fig. <ref type="figure">1</ref> that solidifies from or melts into its liquid phase, depending on the direction of heat flux. In the liquid phase liquid , the heat transfer is modeled by the heat equation</p><p>(</p><p>Here T (x, t) is the temperature field and K is the thermal diffusivity of the liquid phase. The solid phase is typically assumed to have infinite thermal conductivity so that</p><p>where T m is the melting point of the solid. This condition provides a boundary condition for Eq. ( <ref type="formula">1</ref>): T = T m on &#8834; &#175; solid .</p><p>When the liquid temperature is greater than T m the solid melts into the liquid and the boundary recedes. If the liquid temperature is lower than T m , which means the liquid is in an undercooled state, solidification occurs at the boundary and the solid grows. This motion is a consequence of Fourier's law of heat transfer, which specifies that the rate of material transfer is proportional to the heat flux f = -K &#961;c p &#8711; T , with &#961; and c p the liquid density and specific heat, respectively. Combining Fourier's law with the conservation of mass leads to a normal boundary velocity V n (s) = -(K c p /l)&#8706; T /&#8706;n at the interface, where l is the latent heat of the liquid.</p><p>In the following, we assume that the solid and liquid are defined in the periodic domain T 2 = [0, 2&#960; ] &#215; [0, 2&#960; ] and the solid domain solid is simply connected, as shown in Fig. <ref type="figure">1(a)</ref>. The moving interface (t) between the solid and liquid phases </p><p>It may appear that there is one too many boundary conditions for c. Note however that one serves to fix c, while the other defines the evolution of the time-dependent interface . Only one parameter -the Stefan number &#946; = -c p T /l -controls the dynamics of the dimensionless system. For the solidification problem (c 0 &#8712; [-1, 0], c m = 0 on ), it has been observed that the Stefan problem posed in Eq. ( <ref type="formula">3</ref>) undergoes a Mullins-Sekerka instability, caused by rapid growth of the interface in high-curvature regions. These phenomena will be further demonstrated with numerical examples in Section 5.</p><p>It is worth noting that Eq. ( <ref type="formula">3</ref>) also models the dissolution process, where the temperature field is replaced with the concentration field c &#8712; [0, 1]. The parameter space in melting, solidification and dissolution is listed below.</p><p>Process</p><p>The parameter &#961; s in the case of dissolution is the solid density. The Stefan number &#946; is positive for dissolution processes as lower liquid concentration c 0 leads to dissolution hence V n &lt; 0; however &#946; &lt; 0 for the melting and solidification processes since lower liquid temperature leads to solidification and V n &gt; 0. In the following sections we will neglect to distinguish between the heat and the mass transfer problems, instead referring to them simply as Stefan problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.2.">The Stefan problem with natural convection</head><p>In the liquid phase, temperature or solute concentration differences lead to changes in the specific volume of fluid parcels, and hence the fluid density. These changes in density lead to the buoyancy driven convection that typically accompanies melting and solidification processes. Using the Boussinesq approximation <ref type="bibr">[11,</ref><ref type="bibr">30]</ref>, we treat the fluid as incompressible and subject to a buoyancy force B &#8733; -c &#375; that is proportional to the concentration difference. The concentration field c(x, t) diffuses and is advected by the flow field u(x, t). The complete model in dimensionless form is given by &#8706;c &#8706;t</p><p>In the experiments of dissolution that motivated this numerical study <ref type="bibr">[7]</ref>, dissolution occurred in a tank, with solid boundaries at the bottom (and an air-liquid interface at the top). To approximate these conditions, we place adiabatic walls wall at the top and bottom of the domain so that the liquid is bounded from above and below but periodic in the horizontal direction; see Fig. <ref type="figure">1(b)</ref>. At these walls, fluid motion ceases and the walls are impermeable to the solute, i.e. we impose that u = 0 and &#8706; n c = 0 on wall . The behavior of this system is controlled by the Reynolds number (Re) of the fluid and the P&#233;clet number (Pe) of the advection diffusion equation, and the parameter &#946; that governs the rapidity of boundary evolution. Because time is rescaled by the typical flow speed, the diffusivity is now 1/Pe instead of 1 in Eq. ( <ref type="formula">3</ref>), and the Stefan number in this problem is &#946;/Pe instead of &#946;. These parameters are typically related to the Grashof number Gr and Prandtl (or Schmidt) number Pr (or Sc) as Re = &#8730; Gr, Pe = &#8730; GrPr (or</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>&#8730;</head><p>GrSc) <ref type="bibr">[31]</ref>. In heat transfer problems, Gr = &#945; V gL 3 T /&#957; 2 and Pr = &#957;/K , with &#945; V , g and &#957; the thermal expansion coefficient, acceleration due to gravity and kinematic viscosity respectively. In mass transfer problems, Gr = &#946; V gL 3 /&#957; 2 and Sc = &#957;/D, with &#946; V , g, D and &#957; the relative density difference between the solid and the fluid, acceleration due to gravity, molecular diffusivity and kinematic viscosity respectively. As we will show later in Section 6, an important control parameter of dissolution under natural convection is the Rayleigh number Ra = GrSc = RePe = &#946; V gL 3 /&#957; D, which governs the regimes of dissolution shape dynamics.</p><p>For the familiar case of ice melting into water <ref type="bibr">[4]</ref> at room temperature, Gr is in the range of 10 6 -10 We remark that the u = 0 boundary condition given in Eq. (4e) is not exactly a no-slip condition because the interface is moving. However, in all simulations in this paper and most dissolution processes in nature, the Stefan number &#946;/Pe 1. Since typical fluid velocities u are O(1), we assume that the boundary is in a quasi-steady state, and u = 0 is a good approximation of the no-slip condition.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2.3.">Gibbs-Thomson effect</head><p>During melting, solidification, and dissolution processes, surface effects such as surface tension and molecular kinetics modify the dynamics of the interface. The classical Gibbs-Thomson effect <ref type="bibr">[32,</ref><ref type="bibr">29]</ref> is an idealized way to summarize these surface effects: an additional term that dissipates high curvature regions is added to the normal boundary velocity,</p><p>where &#954; * is the planar curvature and L is the total arclength of . The Gibbs-Thomson effect causes faster dissolution to occur in regions where the local curvature &#954; * is higher than a mean curvature 2&#960; /L <ref type="bibr">[32,</ref><ref type="bibr">29]</ref>. With no phase-change driven boundary velocity [that is, the first term on the right-hand side in Eq. ( <ref type="formula">5</ref>)], the Gibbs-Thomson effect simply drives the boundary to a steady form: a circular arc with curvature &#954; * = 2&#960; /L everywhere. Physically, the Gibbs-Thomson effect comes from the balance between the energy of fusion -which represents the energy exchange during phase change -and the surface energy that is a function of the curvature &#954; * <ref type="bibr">[32]</ref>. When the local curvature is high enough, the surface energy overcomes the energy of fusion and drives interfacial motion. Numerically, the Gibbs-Thomson effect defines a minimal spatial scale at which Mullins-Sekerka instabilities occur.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.">Numerical methods</head><p>Solving Eq. ( <ref type="formula">4</ref>) presents two central difficulties: (1) solving the Navier-Stokes (NS) equations in the evolving domain liquid , and (2) solution of the advection-diffusion equation for c in that same domain. Because the boundary evolution is itself driven by gradients of c, the quantity &#8706;c/&#8706;n must be captured accurately at the boundary. We first discuss the Navier-Stokes equations. In 2D, the NS equations can be reformulated using the stream function &#968; and the vorticity &#969;, as &#8706;&#969; &#8706;t</p><p>where &#8711; &#8869; = (&#8706; y , -&#8706; x ). The driving term -&#8706;c/&#8706;x arises due to the Boussinesq approximation of the buoyancy forces, which appears as the term -c &#375; in Eq. (4b). In this formulation, solution of the pressure field is no longer required, which typically poses difficulties due to the lack of boundary conditions. Nevertheless, the equations do not decouple: Equation (6a) lacks a boundary condition on &#969;, while there are two boundary conditions imposed on the stream function.</p><p>To efficiently discretize the full nonlinear system, we will treat the non-linear terms explicitly, and the linear terms implicitly. A full description of the timestepping scheme we use is given in Section 4; here we give a simplified description in order to introduce the various subproblems that must be solved. Representing the boundary with its Cartesian coordinates X = (x, y) &#8712; , the simplest implicit-explicit time discretization is to combine the forward and backward Euler schemes:</p><p>with boundary conditions on &#968; t+ t and c t+ t as given in Eqs. ( <ref type="formula">4</ref>) and <ref type="bibr">(6)</ref>. One can first evolve c, so that c t+ t is known and can be used explicitly in the RHS of the vorticity equation. For more general, timestepping schemes, the temporal discretization takes the form:</p><p>Here &#963; c , &#963; &#969; , f c , and f &#969; depend on the choice of time discretization. There are thus two essential components required for evolving this system: (1) a scheme for evolving the interface [Eq. (8d)], which will be introduced in Section 3.1, and (2) Modified-Helmholtz solvers for both the concentration evolution Eq. (8a) and the coupled Navier-Stokes system [Eqs. (8b) and (8c)]. The methodology for solving these PDE will be introduced in Sections 3.2 and 3.3, as well as some technical considerations that arise when solving the fully coupled system.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.1.">&#952; -L method for boundary evolution</head><p>For a variety of boundary evolution problems, including the Stefan problem studied here, as well as problems with an interfacial surface tension, discretization and evolution of the boundary in Cartesian coordinates can lead to stability issues due to the fact that only the normal motion of the boundary is fixed by the physics. Discretized boundary markers moved only according to the normal velocity typically clump or spread. To alleviate the issues that arise with a direct discretization of the boundary position, we instead use the &#952; -L method to discretize the boundary by the arclength s and tangent angle &#952;(s, t). This method is well-developed and has been used extensively for the study of 2D free-boundary problems in fluid dynamics <ref type="bibr">[27]</ref><ref type="bibr">[28]</ref><ref type="bibr">[29]</ref><ref type="bibr">33,</ref><ref type="bibr">34]</ref>. We provide a brief overview of the method here.</p><p>Consider a domain as depicted in Fig. <ref type="figure">1</ref> </p><p>where n and s are unit vectors along the normal and tangential direction at a given point on . As the normal velocity V n governs the shape evolution, the actual shape dynamics of are independent of the tangential velocity V s . We are thus free to add an arbitrary tangential velocity without altering the effective physics. One choice that preserves the equal-arclength distribution and keeps &#945; and t as independent variables <ref type="bibr">[29]</ref> is</p><p>With V n and V s specified, Eq. ( <ref type="formula">9</ref>) can be written as</p><p>In addition to evolving &#952;(&#945;, t) and L(t), the motion of an anchor point is required to recover the absolute location of the boundary . In this paper, we use the top point (x 0 , y 0 ) as this moving anchor. These satisfy the equation</p><p>When the interface is a smooth, closed curve, Eq. ( <ref type="formula">11</ref>) can be solved accurately using a Fourier spectral method. When including the Gibbs-Thomson effect [Eq. ( <ref type="formula">5</ref>)] in the boundary evolution, the &#952; equation is instead</p><p>Thus the Gibbs-Thomson effect smooths the boundary by dissipating regions with high curvature.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.2.">IBSE k for solving Poisson and modified-Helmholtz equations</head><p>In this section we provide a basic outline of the Immersed Boundary Smooth Extension (IBSE) method, focusing on the details most relevant to the numerical scheme for the Stefan and dissolution problems studied in this paper. A careful analysis of the method is presented in <ref type="bibr">[24,</ref><ref type="bibr">25]</ref>. The essential idea of this method is to find a smooth extension of the unknown solution from the physical domain to the entirety of a computationally simple domain, such that the first several derivatives of the unknown solution and its extension match across the physical boundary. To simplify the presentation, we first consider the inhomogeneous Poisson problem:</p><p>One way to compute an inhomogeneous solution is to compute an extension of f from to a larger domain C containing , which we assume has a simple geometry. Perhaps the simplest choice of C , and the one used throughout this paper, is</p><p>or a rescaled version of that domain. For this choice of C the Poisson operator may be rapidly inverted via the fast-Fourier transform. The physical domain of the equations is , the exterior of that domain is E, and C = &#8746; E. Given a general extension f e &#8712; C k (C), u satisfies Eq. ( <ref type="formula">14</ref>), up to a homogeneous correction, to O(h k+1 ) where h = 2&#960; /N is the spatial resolution. There is significant freedom in choosing f e . One such choice is to define f e = u e , where u e is an extension to the solution u of the PDE. In this case, u satisfies the PDE without any homogeneous correction, although the extension f e must be determined implicitly, as the solution u, and hence its extension u e , is not known a priori. We describe some of the essential elements for computing u in this manner below. Let</p><p>&#8712; C be compact and simply connected, with smooth boundary = &#8706; . To facilitate generating the smooth extension u e of the solution u, as well as to impose boundary conditions on , we will need to be able to communicate singular and hyper-singular force distributions known on to the grid; and to interpolate values and derivatives of functions known on the grid to the discrete boundary nodes of . Communication of singular forces is done through the spread operators S ( j) as</p><p>while approximations of a function and its derivatives at are computed via the interpolation operators S * ( j) :</p><p>As is suggested by the notation, the spread and interpolation operators for the jth derivatives are adjoint to each other, and for j = 0 these operators reduce to the classical Immersed Boundary (IB) spread and interpolation operators <ref type="bibr">[23]</ref>. The interpolation operator S * ( j) maps the jth normal derivative of a function &#958; from the domain C to the boundary , while the spread operator S ( j) maps the hyper-singular forces from the boundary back to the domain C . To simplify the notation for the rest of this study, we define the composite operators T k , T * k , and R * k as</p><p>The operator T * k interpolates a function and its first k normal derivatives to the boundary; R * k provides an interpolation of the first k normal derivatives to the boundary, excluding the function value itself; the operator T k spreads a set of singular forces (&#948;-like) and hyper-singular forces (like the first k normal derivatives of the &#948;-function) from the boundary to the domain.</p><p>To solve Eq. ( <ref type="formula">14</ref>), a function &#951; is found that smoothly extends the unknown solution u from to C such that &#951; &#8712; C k (C) and the first k derivatives of u match the first k derivatives of &#951; at the boundary: &#8706; j u/&#8706; j n = &#8706; j &#951;/&#8706; j n for j = 1, . . . , k on . There are many such extensions. We choose to compute &#951; by solving a high-order PDE of the form H k &#951; = 0 in C , where H k is a differential operator with sufficient order to allow us to impose that the derivatives of &#951; at the boundary match those of u. One such choice of H k is the polyharmonic operator k+1 ; this choice has a nullspace and is poorly conditioned; the specific operator H k that we use will be defined in Section 4.2. The function &#951; then serves to define a force in all of C , given by f e = &#967; f + &#967; E &#951;. Inversion of the periodic Laplace operator with this force provides a solution u e , smooth in C , that satisfies the boundary conditions and converges rapidly. The full formulation, which we will refer to as the IBSE-k system, is given by:</p><p>S * (0) u e = g.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>(18d)</head><p>In <ref type="bibr">[24]</ref>, the IBSE-k formulation given in Eq. ( <ref type="formula">18</ref>) has been verified to produce C k (C) solutions that converge at a rate of O ( x k+1 ) for k = 1, 2, 3; and may be used for solving the Helmholtz and Modified-Helmholtz equations, by replacing with (k 2 + ) and (k 2 -), respectively. In <ref type="bibr">[25]</ref>, the IBSE method was extended to solve the Stokes and Navier-Stokes equations. In the following sections, we will discuss how to modify these methods to provide a solver for the Stefan and dissolution problems.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="3.3.">Navier-Stokes equations coupled with concentration field</head><p>In order to solve the coupled dissolution problem with the IBSE method, we let the physical domain be = liquid and the extension domain be E = solid , and define the modified Helmholtz operators:</p><p>Roughly speaking, these operators will be used to define solvers similar to the solver described in Section 3.2. Specifically, for the concentration Eq. (8a), we solve</p><p>Next, we solve the Navier-Stokes equations, Eqs. (8b) and (8c), with the known concentration field c, by solving Eq. ( <ref type="formula">20</ref>). In <ref type="bibr">[25]</ref>, the authors used a velocity-pressure formulation for solving fluid problems. Importantly, they noted that the best stability and error was achieved when the regularity of extensions matched those expected from derivative counting the PDEs: that is, if u is extended to be C k (C), then p should only be extended to be in C k-1 (C). We find similar phenomena in the streamfunction-vorticity formulation, and hence to find a velocity u = (u, v) in C k (C), we choose to extend &#969; &#8712; C k-1 (C) and &#968; &#8712; C k+1 (C). Accordingly, the appropriate formulation is</p><p>The unknowns are (&#969;, &#968;, &#951; &#969; , &#951; &#968; , F &#969; , F &#968; ). In the next section, we discuss details of the numerics.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.">Numerical implementation</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.1.">Numerical scheme for the &#952; -L method</head><p>On the boundary , the rescaled arclength &#945; &#8712; [0, 1) is discretized using equispaced points, and Fourier spectral (or pseudo-spectral) methods are used. The explicit equations in Eqs. ( <ref type="formula">11</ref>) and ( <ref type="formula">12</ref>) are integrated with a fourth-order Adam-Bashforth method. At time t = m t, Eq. ( <ref type="formula">13</ref>) can be split into the non-stiff explicit part</p><p>For this equation, we use the fourth-order implicit-explicit (IMEX) Backward Differentiation formula and the fourth-order Adam-Bashforth formula:</p><p>Here</p><p>At timestep m + 1, the evaluation of I m+1 would require L m+1 , so the explicit integration of x m+1 0 , x m+1 0 and L m+1 is performed first. &#952; m+1 is then found via the Fourier method.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.2.">Discretization of spread, interpolation and extension operators</head><p>In this section, we define the discrete spread, interpolation and extension operators introduced in Section 3.2; we will not explicitly distinguish the discretized operators through different notation. Let &#948; denote a regularized &#948;-function, defined by Cartesian products of regularized one-dimensional &#948;-functions. We define normal derivatives of &#948; to be</p><p>where repeated indices i j are summed according to the Einstein summation convention. Using the standard spectral discretization of the integral in Eq. ( <ref type="formula">16</ref>), and replacing the &#948; function with its regularized equivalent, we define the discretized spread operator to be:</p><p>is the ith coordinate of the boundary and s = L/n bdy (note that for arbitrary parametrizations, s depends on</p><p>s ; however, since we use an arclength parametrization, this is constant). The number of nodes in the quadrature is chosen so that s &#8776; 2 x. Choosing s smaller yields better accuracy while choosing it larger yields better numerical stability. The number of boundary points is n bdy &#8776; L/(2 x). Note that during the process of melting or dissolving, the number of boundary points n bdy must thus be updated as the total arclength L changes.</p><p>The interpolation operator is then defined through the adjoint property u, S ( j) F C = S * ( j) u, F , and is explicitly given by</p><p>Here the vector</p><p>) points from the boundary point X k &#8712; to the domain point x ij &#8712; C ; the gridspacing x = y = 2&#960; /N. The accuracy of these operators is analyzed in <ref type="bibr">[24]</ref>, and depends on the choice of the underlying regularized &#948;-function.</p><p>We use the C 3 function with a support width of 16 x defined in <ref type="bibr">[24]</ref>; with this choice the interpolation operator provides fourth-order accurate approximations for the 0th to 3rd normal derivatives of smooth functions.</p><p>Finally, we must choose the extension operator(s) H k used in Eqs. ( <ref type="formula">20</ref>) and ( <ref type="formula">21</ref>). This should be a high-order differential operator, so that a sufficient number of boundary conditions can be imposed. An obvious choice is the poly-harmonic operator of the appropriate order, but this is both poorly conditioned and has a null-space. Adding a scalar remedies the nullspace, and its size may be used to control the condition number of the system that must be solved, at the expense of adding an artificial length-scale to the problem that must be resolved by the discretization:</p><p>The choice of depends on the smoothness k and the largest wave-number m present in the discrete Fourier transform on the discrete domain</p><p>while the intrinsic lengthscale introduced is -1/2(k+1) . We choose as * =</p><p>as in <ref type="bibr">[25]</ref>. Here N is a parameter that controls how many points are used to resolve the intrinsic lengthscale introduced by H k ; for all simulations in this paper N = 10 is used.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.3.">Smoothed characteristic functions &#967;E and &#967; for stiff modified-Helmholtz problems</head><p>When solving the diffusion equation with a small diffusion coefficient and/or small timestep, time-discretization yields a modified Helmholtz problem with a very small Helmholtz parameter. In fact, this parameter is typically artificially small, in that it introduces a length-scale that is below any relevant to the physical problem. However, if this length-scale is not resolved, the standard IBSE solver may yield low-quality solutions, especially during brief transient phases (i.e. for small times t around the startup of a dissolution problem, when c jumps discontinuously from 1 to 0 across the interface, and diffusion has yet to have enough time to regularize the solution). Stability, although not accuracy, may be recovered in these circumstances by using smoothed, rather than sharp, characteristic functions &#967; and &#967;E . The family of functions we adopt here are the Wendland functions <ref type="bibr">[35]</ref>:</p><p>Here m is an integer controlling the smoothness of Wendland function, and l = m + d/2 + 1 with d = 2 as the spatial dimension in our study. It can be shown that Eq. ( <ref type="formula">30</ref>) produces a C 2m (R + ) function. We also define the integral of Wendland function as</p><p>Throughout our study, we choose m = 2 and l = 4 so all functions involved are at least C 4 , and define the smoothed characteristic functions &#967;E and &#967; as &#967; (x) = (r + (x)/d s ), <ref type="bibr">(31)</ref> &#967;E (x) = 1 -&#967; (x). <ref type="bibr">(32)</ref> Here r + (x) is the signed distance between x and the boundary , such that r + (x) &gt; 0 when x &#8712; and r + (x) &lt; 0 when x &#8712; E. d s is a smoothing length-scale that is chosen to be 4 x. In general, d s should be small enough that the boundary layer structure can be sufficiently resolved.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.4.">Inversion of the IBSE-k system using Schur complements</head><p>For the pure Stefan problem, Eq. ( <ref type="formula">20</ref>) can be written in block form as</p><p>As shown in <ref type="bibr">[24,</ref><ref type="bibr">25]</ref>, the size of this system can be reduced to kn bdy &#215; kn bdy by computing the Schur complement (SC)</p><p>Equation ( <ref type="formula">33</ref>) may then be reduced to</p><p>During each time step, the m-th column of SC can be prepared by applying the RHS of Eq. ( <ref type="formula">34</ref>) to a vector a such that a j = &#948; jm . Although this computation is relatively expensive and must be done kn bdy times, it is embarrassingly parallel, significantly reducing the preparation cost of SC on a multicore system. Equation <ref type="bibr">(35)</ref> can then be inverted to solve for F c .</p><p>Once F c is known, we may find &#951; c and c:</p><p>It is worth noting that SC depends only on the boundary geometry, which is slowly changing in the Stefan problem. As the preparation of the SC is expensive, we seek to reuse it, effectively amortizing its formation cost over a number of timesteps. In the simulation, SC (m) is prepared at a time step m and decomposed into LU components such that (m) . Since the boundary changes slowly, M = (L (m) U (m) ) -1 serves as a good preconditioner for solving the linear system Eq. ( <ref type="formula">35</ref>) for some number of timesteps. Once the SC fails to serve as an effective preconditioner, it is recomputed. Reformation of the SC is triggered by two criteria: (i) it takes too many iterations for GMRES to converge (more than 10 iterations in all examples in this manuscript); (ii) the boundary size n bdy is changed (since n bdy &#8776; L/2 x and the arclength L is changing). We call recomputation of Schur complement a "SC renewal". In Section 6.5, we show how often SC renewal happens for a particular simulation.</p><p>Next, the Schur complement for Eq. ( <ref type="formula">21</ref>) is formed in the similar way. The discrete equation is</p><p>To distinguish from SC, we define the Grand Schur complement (GSC) for this system,</p><p>Equation <ref type="bibr">(37)</ref> becomes</p><p>Once Eq. ( <ref type="formula">39</ref>) has been solved for (F &#969; , F &#968; ), the remaining unknowns (&#969;, &#968;, &#951; &#969; , &#951; &#968; ) can be determined in a manner analogous to Eq. ( <ref type="formula">36</ref>). The GSC is a 2kn bdy + 1 square system, where the additional equation is added due to the null space of the Laplace operator (see Appendix B of <ref type="bibr">[24]</ref>).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4.5.">Outline of the numerical solver</head><p>Here we sketch a brief outline to solve the Stefan problem and its related flow problem with IBSE. At each time step, 1. The shape of the moving boundary is determined by solving Eqs. ( <ref type="formula">12</ref>) and ( <ref type="formula">22</ref>). 4th order Adam-Bashforth and IMEX schemes are used for time integration, and the spatial equation is solved using a Fourier spectral method.</p><p>2. Operators such as T , T * , R, R * , S, S * are prepared according to Eqs. ( <ref type="formula">17</ref>), ( <ref type="formula">25</ref>) and ( <ref type="formula">26</ref>).</p><p>3. If the simulation is running for the first time, or one of the two SC (GSC) refreshing conditions is met, the Schur complement will be prepared according to the procedure introduced in Section 4.4.</p><p>4. The concentration field c is solved first through Eq. ( <ref type="formula">33</ref>) -Eq. ( <ref type="formula">36</ref>). The value of &#8706; x c is then evaluated with Fourier differentiation, the value of &#8706; n c at the boundary is calculated by applying S *</p><p>(1) to c and the boundary velocity V n is computed according to Eq. ( <ref type="formula">5</ref>).</p><p>5. The vorticity &#969; and the stream function &#968; equations are solved through Eq. ( <ref type="formula">37</ref>) -Eq. ( <ref type="formula">39</ref>). The flow velocity field u = &#8711; &#8869; &#968; is then calculated and serves as the advection term u &#8226; &#8711;c in f c for the next time step.</p><p>For a pure Stefan problem without flow, only step 1-4 are involved.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.">Results: Stefan problems</head><p>In this section, we use the method described in Sections 3 and 4 to solve Stefan problems with the form:</p><p>Physically, these equations describe the growth of a solid body into its over-cooled liquid surrounding as discussed in Section 2.1. We first examine the convergence of the numerical scheme with an analytic solution, demonstrating the expected order of convergence for the temperature and boundary position (up to third-order, in L &#8734; , depending on the regularity of extensions). We then examine an unstable problem, and show that the method qualitatively produces the typical growth patterns driven by the Mullins-Sekerka (MS) instability.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.1.">Convergence of the Stefan solver</head><p>An exact solution for a circle growing in infinite space (known as the "Frank disk") <ref type="bibr">[20]</ref> stays circular during the freezing process (although small perturbations, if present, will drive the Mullins-Sekerka instability, as in Section 5.2). The radius of the Frank disk, as a function of time, is R(t) = S 0 &#8730; t, where S 0 is a parameter determined by &#946; and c &#8734; . The associated temperature field is:</p><p>where s = |x|/ &#8730; t, F (s) = E 1 (s 2 /4), and</p><p>To analyze the validity and accuracy of our solver, we let &#946; = -0.4, S 0 = 1.2, and begin simulations starting at t = 0.1 with an initial radius R(0.1) = 0.38. In these simulations, as in all simulations throughout this manuscript, we use a Fourier pseudo-spectral method as the basis for the IBSE solver. Our system thus has naturally periodic boundary conditions, while the analytical form for the Frank disk solution is valid only in infinite space. The numerical solution to the periodic problem, as computed by the IBSE-2 method, together with the analytical Frank disk solution, is shown in Fig. <ref type="figure">2(a)</ref>. Despite the differing boundary conditions, the periodic solution and the The liquid-solid interface given by the numerical solution to the periodic problem (IBSE-2, solid line) and the exact solution to the free-space problem (dashed line). The circular initial shape remains circular until periodicity limits the growth of the interface. (b) The total arclength of the interface L grows as the square root of time. The numerical solution (IBSE-2, solid line) matches well with the free-space analytic solution (dashed line), especially at short times. Inset: Relative error of L at early times. Data from IBSE-3 simulation with N = 1000. (c)-(e) L &#8734; error of the numerical solutions. For IBSE-1, 2 and 3, the concentration field c, total arclength L and boundary velocity V n converge to the exact solution at 1 st , 2nd, and 3rd order, respectively. (For interpretation of the colors in the figure(s), the reader is referred to the web version of this article.) analytic solutions agree well over short to medium times. As the interface diameter approaches the width of the periodic interval, periodicity pushes the interface shape away from the analytic circular solution. The arc-length of the liquid-solid interface is shown in Fig. <ref type="figure">2(b)</ref>, with the absolute difference between analytic and computed solutions shown in the inset for short times, where the interface is far from the periodic boundary. At these small times, this concordance is on a similar scale to the error we expect from our solver. In order to test the accuracy of our solver, we thus solve for only a short amount of time: to t = 0.11 (for times larger than t 0.11, periodic effects, although still small, become comparable with the errors achieved by the IBSE-3 method). In Fig. <ref type="figure">2(c)-(e)</ref>, we show a convergence study for the arclength L of the boundary, the concentration field c(x, t) and the boundary velocity V n , as computed using the IBSE-1, 2, and 3 methods with t = 0.1/N and N/10 timesteps. Startup values for the BDF-based IMEX timestepping scheme are computed from the analytic solution. All errors are measured against the analytic solution in L &#8734; , and a convergence rate of O(h k ) is observed for all variables examined. Although these errors are a mixture of discretization and periodicity-related errors, the periodicityrelated error must be dominated by our discretization error over these times, or we would have seen stagnating errors, rather than a k-th order convergence rate. The IBSE-k method achieves an O(h k+1 ) convergence rate for Dirichlet problems with defined boundaries <ref type="bibr">[24]</ref>. In this problem the interface location is moving with the normal velocity V n . Computing this velocity requires estimating &#8706;c/&#8706;n, which is only accurate to O(h k ). This error is propagated through the boundary location to all other variables.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="5.2.">Mullins-Sekerka instability</head><p>The Mullins-Sekerka (MS) instability is frequently observed when solidification occurs in an over-cooled fluid <ref type="bibr">[18]</ref>. The solid stays at the melting temperature (c = 0, here), and the temperature gradient determines the rate of liquid solidification.</p><p>Regions of the interface with higher curvature result in locally higher temperature gradients, enhancing the local solidification, further increasing the local curvature. Thus once the local curvature begins to deviate from the mean curvature, the MS instability leads to growth of those deviations.</p><p>In this section, we demonstrate that our solver is able to qualitatively capture the dynamics driven by the MS instability.</p><p>We start with a perturbed geometry that has L = &#960; and &#952; = 0.5&#960; (1 -4&#945;) + 0.6 sin (24&#960;&#945;), as shown in Fig. <ref type="figure">3(a)</ref>. For this computation, the Stefan number is &#946; = -0.2 and we use the IBSE-2 method with N = 300 and t = 5 &#215; 10 -4 . In order to prevent the formation of singular features on the boundary, regularization via the Gibbs-Thomson effect is required, and we set = 0.002. Fig. <ref type="figure">3</ref>(a)-(b) shows the development of the MS instability, and the shape profiles of this process are shown in Fig. <ref type="figure">3(c</ref>). An associated movie is included in supplemental movie S1. The flat part of the boundary grows slowly while the high curvature part grows rapidly, and the resulting growing front further bifurcates into extrusions, which can be seen in Fig. <ref type="figure">3</ref>(c) on the branches at in the NE (Northeast), SE, SW and NW directions. The arclength of the interface is shown in Fig. <ref type="figure">3(d)</ref>. Eventually, the growth of the solid is limited by the periodic computational domain and the saturation of temperature in the liquid [Fig. <ref type="figure">3(b)</ref>]. The solidification stops as the liquid reaches an equilibrium temperature of c = 0 everywhere.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.">Results: Stefan problems coupled with Navier-Stokes flow (dissolution)</head><p>We now turn our attention to the case of a Stefan problem coupled to an incompressible flow. When the Reynolds number is high, the BDF-based IMEX scheme used to timestep pure Stefan problems severely limits the timestep. We instead use a 2nd-order method based on an Adam-Bashforth Backward-Differentiation (ABBD) scheme. Spatially, we set k = 2 in Eqs. ( <ref type="formula">20</ref>) and ( <ref type="formula">21</ref>), so c &#8712; C 2 , &#969; &#8712; C 1 , u &#8712; C 2 and &#968; &#8712; C 3 . At time t, the set of equations</p><p>is solved, where</p><p>(43c)</p><p>The concentration Eq. (42a) is solved first, so that the value of &#8706;c/&#8706;x at time t is known in Eq. (43c). Anti-aliasing for the non-linear terms is done by smoothly rolling off high-frequency modes, using the method introduced in <ref type="bibr">[36]</ref>.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.1.">Convergence of the dissolution solver</head><p>We first ensure that our solver achieves the desired order of accuracy through a refinement study. We let Re = 3.16, Pe = 3.16, &#946; = 0.1, and = 0.1. The aspect ratio of the domain is taken to be 4/3 (width / height, controlled by adjusting the wall size). We run simulations at grid-sizes of N = 32, 64, . . . 512 with the timestep t = 0.01/N. Each simulation  runs for N steps in time so t end = 0.01 for all simulations. Fig. <ref type="figure">4</ref> shows, for both bulk and surface fields, the difference, measured in L &#8734; , between the solution with a grid size N and N/2; achieving the expected second-order convergence. Moreover, our method accurately captures the surface shear stress &#964; = Re -1 &#8706; 2 &#968;/&#8706;n 2 , enabling us to study near surface flow phenomena such as the boundary layer separation in Section 6.5. As with the pure Stefan problem examined in Section 5.1, total accuracy is limited by the estimation of the boundary velocity V n , which is only second-order since it depends on &#8706;c/&#8706;n and c &#8712; C 2 (C).</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.2.">Dissolution problem in the laminar boundary layer regime</head><p>We initialize a problem with a circular solid domain immersed in fluid that initially has no solute concentration. When the Reynolds and P&#233;clet numbers are moderate, the system displays an up-down symmetry breaking, as shown in Figs. <ref type="figure">5</ref> and<ref type="figure">6</ref>. In Section 6.3, we show how the shape dynamics changes across a range of parameters, and argue that pattern formation is driven primarily by increasing the Rayleigh number Ra = PeRe. For the simulation in Figs. <ref type="figure">5</ref> and<ref type="figure">6</ref>, we have set Re = 316, Pe = 316, Ra = 10 5 and the Stefan number to &#946;/Pe = 0.003, while the Gibbs-Thompson effect is set to be low at = 5 &#215; 10 -4 . The grid size in this simulation is N = 300, and the timestep is t = 0.004. Fig. <ref type="figure">5</ref> shows the concentration field c and the contour lines of the streamfunction &#968; . Fluid with higher solute concentration has a higher density than the ambient fluid, and the buoyancy difference results in a gravity driven downward flow. A movie of the simulated dissolution process can be found in the supplement material S2. At the Reynolds and P&#233;clet number of 316, a gravity driven flow forms within the boundary layer near the solid, and separates from the body only at the bottom stagnation point. Two vortices are clearly seen below the dissolving body, due to the combination of the downward flow and the splitting flow at the bottom wall. In the later stages of the simulation, a circulation pattern of four vortices can be seen across the computational domain, as shown in Fig. <ref type="figure">5(d)</ref>. Overall, the flow is in a laminar regime, and the competition between the viscosity/diffusion and the gravity driven flow leads to the formation of the boundary layer surrounding the dissolving solid. The time-dependent profile of the interface between the solid and fluid domains is shown in Fig. <ref type="figure">6</ref>(a). The initial trace is shown in blue, and the final trace in red; successive curves are equispaced in time. From the initial circular configuration, the up-down asymmetry develops into an egg-shaped geometry. Comparing the spacing between each interface, we see that the top of the solid domain dissolves fastest, as the fluid near the top separation point is the freshest (that is, has a low solute concentration). Flows around the interface appear to stay attached until the very bottom of the body, and the variation of c is mostly contained in a laminar boundary layer. This enables us to establish a boundary layer scaling. It is known that the concentration gradient within the boundary layer of natural convection has the scaling &#8706;c/&#8706;n &#8764; L -1/4 <ref type="bibr">[31]</ref>, where L(t) is a typical length-scale that we choose as the total arclength. So the boundary velocity V n &#8764; &#8706;c/&#8706;n &#8764; L -1/4 , and the rate of area change can be estimated as</p><p>where A 0 = A(0) is the initial area while t f is the time at which the solid body vanishes. After fitting this parameter (t f &#8776; 72), the numerical value of the solid area fits the predicted scaling law, see Fig. <ref type="figure">6(b)</ref>. We note that the simulation deviates from the power-law prediction near the beginning; this is to be expected as the boundary layer is not fully established.</p><p>Within the laminar boundary layer regime, the interface remains smooth and rounded. As we shall see in the proceeding examples, the boundary layer becomes unstable when the Reynolds and P&#233;clet numbers are increased, and the interface geometry becomes more complex.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.3.">Shape dynamics as Rayleigh number increases</head><p>To understand the parameters affecting shape dynamics, we run simulations across a range of Reynolds and P&#233;clet numbers. For this parameter sweep, we hold the Stefan number &#946;/Pe = 0.003 fixed so that changes in shape dynamics are driven solely by changes in Pe and Re. Sweeping through Pe and Re changes the Rayleigh number Ra = RePe. Fig. <ref type="figure">7</ref> As a measure of the scale over which patterns are formed, we examine the non-dimensional curvature &#954; = -&#8706;&#952;/&#8706;&#945;. The actual planar curvature is &#954; * = &#954;/L(t), which diverges as L(t) &#8594; 0. In Fig. <ref type="figure">7</ref>(f) we show max &#945;,t |&#954;(&#945;, t)| for each set of parameters. In all simulations this curvature increases and peaks soon after the moment of boundary layer detachment, and decreases thereafter. The boundary layer detachment is associated with the formation of near-corner regions with high  curvature, while the Gibbs-Thomson effect limits the growth of this curvature and diffuses the distribution of &#952; over time <ref type="bibr">[29,</ref><ref type="bibr">37]</ref>.</p><p>It is apparent that the curvature increases as Re and Pe increase, although neither parameter explains the growth on its own. In the phase diagram Fig. <ref type="figure">7</ref>(f), we plot contours of constant Ra as white lines. As the maximum curvature is nearly constant on these contours, and increases with increasing Ra, it is apparent that Ra plays a central factor in determining the pattern morphology.</p><p>To further investigate the dependence between dissolving shape dynamics and Rayleigh number Ra, we compare simulations with the same Ra but different Re and Pe. In Fig. <ref type="figure">7</ref> Re and Pe, we see that the resulting dynamics show visual resemblance. This similarity is also seen for higher Ra, as shown in Fig. <ref type="figure">8(c)-(d</ref>) which correspond to the points (d) and (d') in Fig. <ref type="figure">7(f</ref>). One possible explanation for the similarity in shape dynamics is that the density plume size is a function of the Rayleigh number <ref type="bibr">[13]</ref>, so similar Ra results in similar length scales presenting in the flow/concentration fields and the geometry.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.4.">Solver behavior as flow structure changes</head><p>SC/GSC renewals are significantly more time consuming than timesteps (although the exact ratio depends on many factors, including the discretization, machine core-count, and the number of GMRES iterations required). To assess the performance of our numerical solver, we show the number of GMRES iterations per timestep and the number of SC/GSC  renewals for the simulation shown in Fig. <ref type="figure">7(d</ref>). As shown in Fig. <ref type="figure">9</ref>, the SC and GSC are, on average, renewed every 100 timesteps, resulting in significant amortization of the renewal cost.</p><p>At the beginning of the simulation, the initial concentration field is 0 in the fluid and 1 at the boundary. The sharp gradient at the dissolving boundary drives rapid boundary motion and the SC renews at a fast pace. As the concentration builds up around the boundary, the renewals become less frequent. After a SC/GSC renewal, the number of GMRES iterations steadily increases as the boundary shape deviates more and more from the shape at last renewal. Rapid boundary motion also happens at the moment of boundary layer separation, where the built up concentration field around the boundary becomes gravitationally unstable and a downward jet forms as the concentration blob drips (supplemental movie S6). As the thickness of the boundary layer &#948; suddenly decreases, the resultant concentration gradient &#8706;c/&#8706;n &#8764; &#948; -1 increases and SC/GSC renews more rapidly due to the boundary motion.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="6.5.">Dissolution problem at higher Rayleigh number</head><p>In this section we discuss a simulation with the highest Rayleigh number we have achieved so far -Ra = 10 6 with Re = 316, Pe = 3160, = 5 &#215; 10 -4 and Stefan number &#946;/Pe = 0.005. Fig. <ref type="figure">10</ref> shows simulation results using N = 300, with t = 0.004. For this Rayleigh number, the flow is no longer laminar [see Fig. <ref type="figure">10</ref>(b) and supplemental movie S8]. Detached density plumes with higher local concentration sink towards the bottom, showing a close resemblance to the thermal plumes of Rayleigh-B&#233;nard convection <ref type="bibr">[13,</ref><ref type="bibr">38]</ref> and the density plumes of the Rayleigh-Taylor instability <ref type="bibr">[11]</ref>. Naturally, this change of flow regimes transforms the shape dynamics. Starting from a circular interface as shown in Fig. <ref type="figure">10</ref>(a), one distinct feature of the dissolution at high Ra is the formation of near-corners and a rough bottom surface. Once formed, this roughness persists throughout the dissolution process as shown in Fig. <ref type="figure">10(b)</ref>-(e). The maximum non-dimensional curvature max &#945; |&#954;(&#945;, t)| is plotted as a function of time in Fig. <ref type="figure">10(f)</ref>.</p><p>Initially, the interface stays very nearly circular with &#954; &#8776; 2&#960; . However, the curvature suddenly increases at t &#8776; 10 when the boundary layer starts to separate, and the surface roughens thereafter (see supplemental movie S8). The curvature peaks at around t = 30 in Fig. <ref type="figure">10(f)</ref>, and an inspection of the supplemental movie S8 shows that the two bottom near-corners shown in Fig. <ref type="figure">10(b</ref>) merge into a single downward spike in Fig. <ref type="figure">10(c</ref>)-(e) during that time. The curvature of this downward spike is highest along the interface, and its value decreases in time due to the geometric dissipation from the Gibbs-Thomson effect.</p><p>What initiates this formation of fine-scale structure? Fig. <ref type="figure">11</ref>(a) shows several snapshots of the interface and the concentration field around the time of the first boundary layer separation. The boundary layer has thickened by t &#8776; 8, and by t &#8776; 10, the bottom boundary layer has detached, eventually forming two heavy plumes (by t &#8776; 12) that sink towards the bottom. During the same period of time, near-corners start to develop at the location of flow separation; similar corner formation has been observed in the experiments on erosion <ref type="bibr">[37]</ref> and dissolution <ref type="bibr">[6]</ref>. One sign of a destabilizing boundary layer is the weakening of surface shear stress &#964; = Re -1 &#8706; 2 &#968;/&#8706;n 2 <ref type="bibr">[31]</ref>. <ref type="bibr">Fig. 11(b)</ref> shows such a weakening between the locations of flow separation, marked with dashed lines, between t = 10 and t = 12. Indeed, &#964; decreases markedly in magnitude there and then. The dissolution rate increases significantly as the flow separates (see Fig. <ref type="figure">11(c</ref>)), due to recirculating flows in the wake that introduce relatively fresh liquid, creating a higher local concentration gradient at the surface. Likewise, the curvature distribution in Fig. <ref type="figure">11(d</ref>) deviates from its initial profile of &#954; = 2&#960; , as the bottom of the dissolving solid forms new near-corners. By t &#8776; 12 there are now two descending plumes on each side, one emanating from a newly formed near-corner, and the other from the initial boundary layer detachment point. As the bottom surface of the solid recedes upwards, at later times these plumes destabilize to transverse bending, and the flows become much more complex, as seen in Fig. <ref type="figure">10</ref>.</p><p>Small numerical artifacts begin to appear in this simulation at t &#8776; 12 (see Fig. <ref type="figure">11(b)-(d)</ref>). In this simulation, the high Pe and Re produce fine length-scales and fast velocities, especially when boundary-layer separation occurs. To compute this solution in a reasonable timeframe, we are using a discretization that just resolves the spatial scales and timesteps that near the Courant-Friedrichs-Lewy condition. Increased temporal and spatial resolution will be required to attack problems with higher Re and Pe. We discuss some possibilities for how to achieve this in Section 7.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="7.">Discussion</head><p>In this paper we introduce and test an accurate, sharp-interface method for solving the Stefan problem coupled to a Navier-Stokes flow (the dissolution problem). These problems are numerically challenging, as the boundary motion depends on the normal derivative of field variables. The solver introduced here is based on the IBSE method, which allows accurate resolution of these normal derivatives <ref type="bibr">[24]</ref>. In refinement studies the method achieves third-order accuracy for Stefan problems and second-order accuracy for the dissolution problem, measured in L &#8734; for all variables. In addition, we explicitly verify that the method provides convergent estimates for the normal-derivative of the concentration and the surface shear stress on the boundary. Having access to accurate estimates of these quantities allows for an analysis of the way flow structures affect the dissolution process, as in our discussion in Section 6.5. For the classical Stefan problem (without flow), we validate the solver against a known analytic solution and show that it is able to reproduce the well-known Mullins-Sekerka instability. For the dissolution problem, when boundary layer separation does not occur, the solver reproduces a predicted boundary layer scaling, and when boundary layer separation does occur, it qualitatively reproduces interface morphologies observed in experiments <ref type="bibr">[7]</ref>.</p><p>Some experimental observations of dissolution are found in Fig. <ref type="figure">12</ref>, which shows an initially spherical solid made of sugar dissolving into a large body of liquid. Fig. <ref type="figure">12</ref>(a) shows the dissolution of sugar into fresh water. The dissolved shapes have scalloped patterns on the bottom and a sharp edge separating the rough bottom from its smooth top, where the flow has a laminar boundary layer structure. In Fig. <ref type="figure">7</ref>, we observed from our simulations that a higher Rayleigh number is associated with finer structures in the flow/concentration fields and higher curvatures in the surface morphology, so the formation of fine patterns in Fig. <ref type="figure">12</ref>(a) is expected, although we were unable to compute numerical solutions in this parameter regime, where Re &#8764; 10 4 , Pe &#8764; 10 7 , and Ra &#8764; 10 11 . Similar patterns have been observed experimentally in dissolution <ref type="bibr">[7,</ref><ref type="bibr">8]</ref> and numerically in melting <ref type="bibr">[5]</ref>.</p><p>In the experiment shown in Fig. <ref type="figure">12</ref> where k B is the Boltzmann constant, T &#8776; 300 K is the temperature, and R &#8776; 1 nm is the radius of a sugar molecule. Using the shadowgraph technique, <ref type="foot">1</ref> we observe that the density plumes move approximately 1 cm every minute so that the typical flow speed is U &#8776; 10 -4 m/s. With a typical length-scale of L &#8776; 6 cm which is the initial diameter of the sphere, the Rayleigh number in Fig. <ref type="figure">12(b</ref>) is Ra = RePe = (U L)<ref type="foot">foot_2</ref> /(&#957; D) &#8776; 4 &#215; 10 5 -a number that is very close to the Rayleigh number from the simulation shown in Fig. <ref type="figure">10</ref>. In Fig. <ref type="figure">8</ref>, we observed that simulations with the same Rayleigh number but different Reynolds and P&#233;clet numbers had similar morphologies. Remarkably, the dissolved shapes in Fig. <ref type="figure">10</ref> and Fig. <ref type="figure">12</ref>(b) show a qualitative resemblance even though the parameters in the experiment (Pe &#8776; 10 10 and Re = Ra/Pe &#8776; 10 -4 ) are drastically different from those used for the simulation (Pe = 3160 and Re = 316). The relationship between the interface morphology and the Rayleigh number suggests that the interaction between the flow field, concentration field, and the geometry is critical in driving these complex shape dynamics. The numerical method developed in this paper allows us to accurately compute important quantities that are hard to measure experimentally, including the surface shear stress and concentration gradients near to the boundary. This extra information is crucial in helping piece together a full understanding of the shape dynamics of this system.</p><p>In the experiments shown in Fig. <ref type="figure">12</ref> m 2 /s <ref type="bibr">[40]</ref>, which leads to unavoidably fine scales in studying dissolution problems at moderate or high Re. At low Re, the Stokes-Einstein relation enforces Pe &#8764; Re -1 , which adds stiffness to the advection-diffusion equation and again leads to thin boundary layers. Numerically studying these problems in experimentally relevant parameter regimes will require the use of an adaptive solver to capture these fine near-boundary flow structures. The Immersed Boundary Method, on which the IBSE method is based, has been implemented in an adaptive framework in IBAMR, 2 and extending the methods developed in</p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Journal of Computational Physics 432 (2021) 110162</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="1" xml:id="foot_1"><p>https://en .wikipedia .org /wiki /Shadowgraph.</p></note>
			<note xmlns="http://www.tei-c.org/ns/1.0" place="foot" n="2" xml:id="foot_2"><p>https://ibamr.github .io/.</p></note>
		</body>
		</text>
</TEI>
