Elsevier

Journal of Computational Physics

Volume 228, Issue 16, 1 September 2009, Pages 5803-5818
Journal of Computational Physics

A numerical scheme for the Stefan problem on adaptive Cartesian grids with supralinear convergence rate

https://doi.org/10.1016/j.jcp.2009.04.044Get rights and content

Abstract

We present a level set approach to the numerical simulation of the Stefan problem on non-graded adaptive Cartesian grids, i.e. grids for which the size ratio between adjacent cells is not constrained. We use the quadtree data structure to discretize the computational domain and a simple recursive algorithm to automatically generate the adaptive grids. We use the level set method on quadtree of Min and Gibou [C. Min, F. Gibou, A second order accurate level set method on non-graded adaptive Cartesian grids, J. Comput. Phys. 225 (2007) 300–321] to keep track of the moving front between the two phases, and the finite difference scheme of Chen et al. [H. Chen, C. Min, F. Gibou, A supra-convergent finite difference scheme for the poisson and heat equations on irregular domains and non-graded adaptive Cartesian grids, J. Sci. Comput. 31 (2007) 19–60] to solve the heat equations in each of the phases, with Dirichlet boundary conditions imposed on the interface. This scheme produces solutions that converge supralinearly (1.5) in both the L1 and the L norms, which we demonstrate numerically for both the temperature field and the interface location. Numerical results also indicate that our method can simulate physical effects such as surface tension and crystalline anisotropy. We also present numerical data to quantify the saving in computational resources.

Introduction

The Stefan problem is a moving interface model where the main physical process is diffusion, and is at the center of the study of crystal growth. Moreover, it has important applications in the growing field of semi-conductors, in combustion, in bio-nanotechnology, in tissue engineering and many others. The difficulty in solving the Stefan problem stems from the fact that the interface position must be computed as part of the solution. In addition, boundary conditions, some of which are depending on the interface shape, must be satisfied at the evolving front.

Successful numerical methods for this type of problems need to be able to efficiently solve the heat equation on irregular domains and keep track of a moving interface that may undergo complex topological changes such as the merging and the pinching of two fronts. The interface that separates the two phases can be either explicitly tracked or implicitly captured. The main advantage of explicit approaches, e.g. front tracking [18], is their accuracy. The main disadvantage is that special care is needed for topological changes. In turn, the explicit treatment of connectivity makes the method challenging to extend to three spatial dimensions. Implicit representations such as the level set method [29], [30], [35] and the phase-field method [20] represent the front as an iso-contour of a continuous function. Topological changes are consequently handled in a natural fashion, and thus these methods are readily implemented in both two and three spatial dimensions.

In this paper we use the level set method, first introduced by Osher and Sethian [30], [29], [35], which is a sharp interface model that can be used to exactly locate the interface in order to apply discretizations that depend on the exact interface location. This method can handle discontinuous material properties easily. The earliest level set method for solidification-type problems was presented by Sethian and Strain [34], where the authors recast the equations of motion into a boundary integral formulation and used the level set method to update the location of the interface. Chen et al. [11] introduced a level set approach where the diffusion equation was solved directly with finite difference schemes. A similar approach was proposed by Udaykumar et al. [39]. In both cases, the solution is second-order accurate and the resulting linear system is non-symmetric. Kim et al. [19] demonstrated that this method produces results in agreement with the solvability theory [23]. Gibou et al. proposed a second-order accurate symmetric discretization [15], [14] and third-order nonsymmetric discretization [13]. The methods presented in all these works are on uniform grids.

Physical phenomena modelled by the Stefan problem present differences in length scales and numerical approximations on uniform grids are in such cases extremely inefficient in terms of C.P.U. and memory requirement since only a small fraction of the domain needs high grid resolution, while other parts of the domain can produce accurate solutions on much coarser grids. In fact, since the Stefan problem is described by a parabolic partial differential equation, the solution is smooth far from the interface where coarse grids are sufficient to adequately capture the variations of the solution. On the other hand, the solution presents a kink near the interface, due to Dirichlet boundary conditions. It is therefore desirable to design a scheme that refines automatically near the interface in order to capture the sharp features in the solution’s gradients, while leaving coarser cells far away.

Adaptive mesh refinement techniques are advantageous in those cases: AMR (adaptive mesh refinement) on Cartesian grids has been pioneered by the work of Berger and Oliger [9] and Berger and Colella [8] for compressible flows. Within this framework, the domain is first discretized as a coarse grid and then rectangular blocks of uniform grids with finer resolution are added where the solution requires higher accuracy. Several applications for elliptic, parabolic and hyperbolic systems have been proposed [4], [5], [6], [17], [22]. This line of work was also applied to two-phase flows in Sussman et al. [37].

Implementations based on recursive data structures have become more popular in recent years. These approaches do not impose patches of uniform grids but rather allows the grid cells to continuously change in size. Quadtree (in 2D) and octree (in 3D) data structures [32], [33] are convenient in representing such grids, and have been proven to be optimal [1]. Recently, Min et al. [27] solved the variable coefficient Poisson equation on a rectangular domain with non-graded adaptive Cartesian grids, i.e. grids for which the size ratio between adjacent cells is not constrained, and obtained second-order accurate solutions with second-order accurate gradients in the L1 and L norms. This work was then extended in Chen et al. [10] to irregular domains with non-graded Cartesian grids to achieve second-order accuracy for both the solution and its gradients. The advantage of non-graded grids is that mesh generation is efficient and straightforward. It also save computational resources.

In this paper, we build on the work of [10], [26] to present a level set approach to the numerical simulation of the Stefan problem on adaptive Cartesian grids. We note that the extremely simple refinement scheme we are using produces grids that are mostly graded, but not necessarily. We emphasize that the numerical method we present is applicable to non-graded Cartesian grids and that other refinement criteria, potentially more efficient or more adapted to particular problems, can be used. We demonstrate the supra-linear convergence of our method in the L1 and the L norms and demonstrate that it can simulate physical effects such as thermal conductivity, crystalline anisotropy, surface tension, molecular kinetics and undercoolings. Finally, we illustrate the efficiency and accuracy by comparing with computations on uniform grids.

Section snippets

Equations for the Stefan problem

Consider a domain Ω=Ω-Ω+, where the two subdomains Ω- and Ω+ are separated by an interface Γ. The boundary of Ω is denoted by Ω (see Fig. 1). The Stefan problem describes the evolution of a scalar T, equals to Ts in Ω- and Tl in Ω+, such that:Tst=·(DsTs)inΩ-,Tlt=·(DlTl)inΩ+,where the subscripts s and l denote the solid and liquid phases, respectively. The diffusion constants Ds and Dl can be discontinuous across Γ. The temperature on the solid–liquid interface satisfies the following

Automatic grid generation

We represent the grid in two spatial dimensions using the quadtree data structure [32], [33]: Referring to Fig. 2, the root of the tree corresponds to the entire domain and we add four children cells as we split the domain in four equal parts. This process is repeated recursively in order to refine parts of the domain where interesting features develop.

By definition, a quadtree is graded if the difference between two adjacent cell levels is at most one, i.e. a cell can be at most twice as big

Treating T-junction nodes

The main difficulty in designing numerical schemes on non-graded adaptive Cartesian grids comes from T-junctions nodes, i.e. nodes for which adjacent nodes are not necessarily aligned in a Cartesian direction. In Min et al. [27], [25], [26], we introduced a new approach to define the values at these ghost nodes that automatically produces second-order accurate schemes. In particular, referring to Fig. 3, we define a ghost node T4 as:T4=s5T6+s6T5s5+s6-s5s6s2+s3T2-T0s2+T3-T0s3.The last term in

Accuracy and efficiency

We discuss the efficiency and accuracy of our numerical method on the known Frank-sphere exact solution [12]: In two spatial dimensions, the region described by a disk with zero temperature, is growing into the supercooled liquid. The radius of the growing disk is given by R(t)=s0t, parameterized by s0. The temperature field is given byT(r,t)=T(s)=0ifss0T1-F(s)F(s0)ifs>s0,where r is the distance to the center of the disk, s=r/t,F(s)=E1(s2/4), with E1(z)=ze-ttdt. Here, F(s) is the similarity

Conclusions

We have presented a level set approach to the numerical simulation of the Stefan problem on non-graded adaptive Cartesian grids, i.e. grids for which the size ratio between adjacent cells is not constrained. Compared with uniform grids, adaptive grids relocate computational resources efficiently by refining only where needed, thus reducing both the amount of computational time and the memory usage significantly. Compared with traditional graded adaptive grids, the non-graded property of our

Acknowledgments

The research of H. Chen and F. Gibou was supported in part by a Sloan Research Fellowship in Mathematics, by the National Science Foundation Under Grant Agreement DMS 0713858 and by the Department of Energy Under Grant Agreement DE-FG02-08ER15991. The research of C. Min was supported by the Korea Research Foundation Grant funded by the Korean Government (KRF-2008-331-C00045).

References (40)

Cited by (58)

  • Error-correcting neural networks for semi-Lagrangian advection in the level-set method

    2022, Journal of Computational Physics
    Citation Excerpt :

    In order to refine a grid efficiently, researchers have proposed nonuniform discretization schemes to increase the resolution only next to the interface [47,48]. Adaptive Cartesian grids, for instance, have served as the basis for high-order robust level-set algorithms and tools in both serial [49–55] and distributed computing systems [56,57]. Over the years, practitioners have also combined level-set technologies with other numerical frameworks to improve mass conservation.

View all citing articles on Scopus
View full text