This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

\KOMAoptions

DIV=12, paper=a4, abstract=on

A comparative numerical study of meshing functionals for variational mesh adaptationthanks: Supported in part by NSF (U.S.A.) through grant DMS-1115118 and NSERC (Canada) through grant A8781.

Weizhang Huang Department of Mathematics, University of Kansas, Lawrence, KS 66045, U.S.A. (whuang@ku.edu).    Lennard Kamenski Weierstrass Institute for Applied Analysis and Stochastics, Berlin, Germany (kamenski@wias-berlin.de).    Robert D. Russell Department of Mathematics, Simon Fraser University, Burnaby, BC V5A 1S6, Canada (rdr@sfu.ca).
Abstract

We present a comparative numerical study for three functionals used for variational mesh adaptation. One of them is a generalization of Winslow’s variable diffusion functional while the others are based on equidistribution and alignment. These functionals are known to have nice theoretical properties and work well for most mesh adaptation problems either as a stand-alone variational method or combined within the moving mesh framework. Their performance is investigated numerically in terms of equidistribution and alignment mesh quality measures. Numerical results in 2D and 3D are presented.

  • AMS subject classifications: 65N50, 65K10

keywords:
variational mesh adaptation, mesh adaptation, moving mesh, equidistribution, alignment, mesh quality measures

1 Introduction

Variational mesh adaptation is an important type of mesh adaptation method and has received considerable attention from scientists and engineers; e.g., see the books [15, 19, 23, 24] and references therein. It also serves as the base of a number of commonly used adaptive moving mesh methods (e.g., see [5, 12, 14, 22]). In the variational approach, an adaptive mesh is generated as the image of a reference mesh under a coordinate transformation and such a coordinate transformation is determined as a minimizer of a certain meshing functional. A number of meshing functionals have been developed in the past (cf. the above mentioned books). For example, Winslow [25] proposed an equipotential method based on variable diffusion. Brackbill and Saltzman [3] developed a method by combining mesh concentration, smoothness, and orthogonality. Dvinsky [6] used the energy of harmonic mappings as his meshing functional, while Knupp [20] and Knupp and Robidoux [21] developed functionals based on the idea of conditioning the Jacobian matrix of the coordinate transformation. More recently, Huang [7] and Huang and Russell [15] proposed functionals based on the so-called equidistribution and alignment conditions.

With variational mesh adaptation, the mesh concentration is typically controlled through a scalar or a matrix-valued function, often referred to as the metric tensor or monitor function and defined based on some error estimates and/or physical considerations. While most of the meshing functionals have been developed with physical or geometric intuitions and have various levels of success in the adaptive numerical solution of partial differential equations (PDEs) and other applications, there is only a limited understanding on how the metric tensor affects the behavior of the mesh. An attempt to alleviate this lack of understanding was made by Cao et al. [4] for a generalization of Winslow’s variable diffusion functional. They showed that a significant change in an eigenvalue of the metric tensor along the corresponding eigendirection (first increasing and then decreasing, or vice versa) will result in adaptation of coordinate lines along this direction, although this adaptation competes with far more complicated effects, including those from changes in eigenvectors and other eigenvalues and the effects of the shapes of the physical and computational domains and the mesh point distribution on the boundaries. In [7, 15], two functionals have been developed based directly on the equidistribution and alignment conditions. These two conditions provide a complete characterization of the mesh elements through the metric tensor [7]. Minimizing the functionals leads to meshes which tend to satisfy the conditions in an integral sense. Nevertheless, this characterization is only qualitative, and how closely the mesh satisfies the conditions depends on the boundary correspondence between the computational and physical domains and the mesh point distribution on the boundaries. Thus, numerical studies, especially comparative ones, are useful, and often necessary, in understanding how the mesh adaptation for those meshing functionals is controlled precisely by the metric tensor. There do exist a few comparative numerical studies for meshing functionals. For example, a gallery of (adaptive and non-adaptive) meshes is given in [19] for a number of meshing functionals. Some comparative meshes are given in [15] for the harmonic mapping functional [6] and the subsequent functional based on equidistribution and alignment [7].

The main objective of this work is to present a comparative study for three of the most appealing meshing functionals, a generalization of Winslow’s variable diffusion functional (cf. Eq.˜6) and two functionals based on equidistribution and alignment (cf. Eqs.˜11 and 13). They are selected because Eqs.˜6 and 11 have been known to work well for many problems (e.g., see [1, 2, 7, 13, 14, 22]) while Eq.˜13 is similar to Eq.˜11 and has some very nice theoretical properties (cf. Section˜3.2). Another motivation is to present some three dimensional numerical results for those functionals. Critical for our study is to perform the substantial computations using the improved implementation of the variational methods introduced in [11]. In a sharp contrast to the situation in two dimensions, very little work has been done with variational mesh adaptation and adaptive moving mesh methods in three dimensions (e.g., see [15, 22]). It is particularly interesting to see how the functionals perform in this case.

An outline of the paper is given as follows. We describe the basic ideas of the variational mesh adaptation and its direct discretization (that is, first to discretize and then optimize) in Section˜2. In Section˜3 we introduce the three functionals to be studied for the numerical comparison, a generalization of Winslow’s variable diffusion functional and two functionals based on equidistribution and alignment. Numerical results and example adaptive meshes are given in Section˜4, followed by conclusions in Section˜5.

2 Variational mesh adaptation

In variational mesh adaptation, an adaptive mesh is generated as the image of a reference mesh under a coordinate transformation. Denote the physical domain by Ωd\Omega\subset\mathbb{R}^{d} (d1d\geq 1), and assume that we are given a computational domain Ωcd\Omega_{c}\subset\mathbb{R}^{d} and a quasi-uniform mesh 𝒯h^c\hat{\mathcal{T}_{h}}_{c} thereon (in this work we consider only simplicial meshes). In many situations we can choose Ωc\Omega_{c} to be the unit square/cube or simply Ω\Omega. Denote the coordinate transformation by 𝒙=𝒙(𝝃):ΩcΩ\boldsymbol{x}=\boldsymbol{x}(\boldsymbol{\xi})\colon\Omega_{c}\to\Omega and its inverse by 𝝃=𝝃(𝒙):ΩΩc\boldsymbol{\xi}=\boldsymbol{\xi}(\boldsymbol{x})\colon\Omega\to\Omega_{c}. Such a coordinate transformation (more precisely, its inverse) is determined as a minimizer of a meshing functional. Most of the existing meshing functionals can be cast in a general form as

I[𝝃]=ΩG(𝕁,det(𝕁),𝕄,𝒙)𝑑𝒙,I[\boldsymbol{\xi}]=\int_{\Omega}G(\mathbb{J},\det(\mathbb{J}),\mathbb{M},\boldsymbol{x})\,d\boldsymbol{x}, (1)

where GG is a smooth function, 𝕁\mathbb{J} is the Jacobian matrix of 𝝃=𝝃(𝒙)\boldsymbol{\xi}=\boldsymbol{\xi}(\boldsymbol{x}), det(𝕁)\det(\mathbb{J}) denotes the determinant of 𝕁\mathbb{J}, and 𝕄=𝕄(𝒙)\mathbb{M}=\mathbb{M}(\boldsymbol{x}) is the metric tensor supplied by the user to control mesh concentration. We assume that 𝕄=𝕄(𝒙)\mathbb{M}=\mathbb{M}(\boldsymbol{x}) is a symmetric and uniformly positive definite dd-by-dd matrix-valued function on Ω\Omega. Notice that Eq.˜1 is formulated in terms of the inverse coordinate transformation. One reason for this is that this form is less likely to produce singular meshes [6]. Another reason is that 𝕄\mathbb{M} is a function of 𝒙\boldsymbol{x} and thus finding the functional derivative of I[𝝃]I[\boldsymbol{\xi}] will not directly involve the derivatives of 𝕄\mathbb{M}. This is convenient since in practice 𝕄\mathbb{M} is known only at the vertices of a mesh and its derivatives are not cheap to find. The main disadvantage of the formulation in this form is that 𝝃=𝝃(𝒙)\boldsymbol{\xi}=\boldsymbol{\xi}(\boldsymbol{x}) (or its numerical approximation) does not give the physical mesh directly. This is remedied either by interchanging the roles of the independent and dependent variables in the Euler-Lagrange equation of I[𝝃]I[\boldsymbol{\xi}] (e.g., see [15]) or, in a recently developed implementation (see below), computing the new physical mesh from a computational one using linear interpolation.

A minimizer of Eq.˜1 can be found numerically in the MMPDE (moving mesh PDE) framework. A conventional implementation [15] is to find the functional derivative of Eq.˜1 and then define the MMPDE as the gradient flow equation of the functional. Having been transformed by interchanging the roles of the dependent and independent variables, the MMPDE can be discretized on 𝒯h^c\hat{\mathcal{T}_{h}}_{c} and a system of equations for the nodal velocities is obtained. Finally, the new mesh is obtained by integrating the mesh equation over a time step.

A much simpler implementation was proposed recently by Huang and Kamenski [11]. Instead of utilizing the MMPDE directly, the new implementation first discretizes the functional on the current mesh 𝒯h\mathcal{T}_{h} and then, following the idea of the MMPDE, defines the mesh equation as the gradient equation of the discretized functional (with respect to the computational coordinates of the vertices). To be specific, denote by 𝒙i\boldsymbol{x}_{i}, 𝝃^i\hat{\boldsymbol{\xi}}_{i}, and 𝝃i\boldsymbol{\xi}_{i}, i=1,,Nvi=1,\dotsc,N_{v} the coordinates of the vertices of the current physical mesh (𝒯h\mathcal{T}_{h}), the reference mesh (𝒯h^c\hat{\mathcal{T}_{h}}_{c}), and the computational mesh (𝒯hc{\mathcal{T}_{h}}_{c}), respectively. We assume that these meshes have the same numbers of the elements and vertices and the same connectivity. For any element K𝒯hK\in\mathcal{T}_{h} (with vertices 𝒙iK\boldsymbol{x}_{i}^{K}, i=0,,di=0,\dotsc,d), the corresponding element in 𝒯hc{\mathcal{T}_{h}}_{c} is denoted by KcK_{c} (with vertices 𝝃iK\boldsymbol{\xi}_{i}^{K}, i=0,,di=0,\dotsc,d). The edge matrices for KK and KcK_{c} are defined as

EK=[𝒙1K𝒙0K,,𝒙dK𝒙0K],EKc=[𝝃1K𝝃0K,,𝝃dK𝝃0K].E_{K}=[\boldsymbol{x}_{1}^{K}-\boldsymbol{x}_{0}^{K},\dotsc,\boldsymbol{x}_{d}^{K}-\boldsymbol{x}_{0}^{K}],\quad E_{K_{c}}=[\boldsymbol{\xi}_{1}^{K}-\boldsymbol{\xi}_{0}^{K},\dotsc,\boldsymbol{\xi}_{d}^{K}-\boldsymbol{\xi}_{0}^{K}].

Let ωi\omega_{i} be the element patch associated with vertex 𝒙i\boldsymbol{x}_{i} (i.e., the collection of the elements containing 𝒙i\boldsymbol{x}_{i} as a vertex). Then, the equation for the nodal velocities reads as

{d𝝃idt=PiτKωi|K|𝒗iKK,i=1,,Nv,tn<ttn+1,𝝃i(tn)=𝝃^i,i=1,,Nv,\begin{cases}\frac{d\boldsymbol{\xi}_{i}}{dt}=\frac{P_{i}}{\tau}\sum\limits_{K\in\omega_{i}}|K|\boldsymbol{v}_{i_{K}}^{K},&\quad i=1,\dotsc,N_{v},\quad t_{n}<t\leq t_{n+1},\\ \boldsymbol{\xi}_{i}(t_{n})=\hat{\boldsymbol{\xi}}_{i},&\quad i=1,\dotsc,N_{v},\end{cases} (2)

where |K||K| is the volume of KK, 𝒗iKK\boldsymbol{v}_{i_{K}}^{K} is the local mesh velocity associated with vertex 𝒙i\boldsymbol{x}_{i} in KK, iKi_{K} denotes the local index of 𝒙i\boldsymbol{x}_{i} in KK, τ>0\tau>0 is a constant parameter used to adjust the time scale of mesh movement, and P=(P1,,PNv)P=(P_{1},\dotsc,P_{N_{v}}) is a positive function used to make the mesh equation to have desired invariance properties. Although the parameter τ\tau can be absorbed in PP, using two parameters has the advantage that the role of each parameter is clear: τ\tau for the time scale of mesh movement while PP for the invariance properties. Ideally, τ\tau should be chosen such that the mesh movement has the same scale as the physical equation. Unfortunately, there is no theoretical analysis for this yet and trial and error is still the most practical way to choose τ\tau. Numerical experience shows that a value in the range [0.01,0.1][0.01,0.1] seems to work well for most problems [15]. In our computation, we choose PP such that the equation is invariant under the scaling transformation 𝕄c𝕄\mathbb{M}\to c\,\mathbb{M} for all non-zero constants cc (cf. Section˜3): in variational mesh adaptation it is the relative distribution of 𝕄\mathbb{M} over the physical domain (instead of its absolute distribution) that determines the variation of the mesh density and therefore it is essential for the moving mesh equation to be invariant under the scaling transformation of 𝕄\mathbb{M}.

The local velocities are given by

[(𝒗1K)T(𝒗dK)T]=EK1G𝕁Gdet(𝕁)det(EKc)det(EK)EKc1,𝒗0K=j=1d𝒗jK,\begin{bmatrix}(\boldsymbol{v}_{1}^{K})^{T}\\ \vdots\\ (\boldsymbol{v}_{d}^{K})^{T}\end{bmatrix}=-E_{K}^{-1}\frac{\partial G}{\partial\mathbb{J}}-\frac{\partial G}{\partial\det(\mathbb{J})}\frac{\det(E_{K_{c}})}{\det(E_{K})}E_{K_{c}}^{-1},\qquad\boldsymbol{v}_{0}^{K}=-\sum_{j=1}^{d}\boldsymbol{v}_{j}^{K}, (3)

where the derivatives of GG with respect to 𝕁\mathbb{J} and det(𝕁)\det(\mathbb{J}) (see Eqs.˜7, 12 and 14 below) are evaluated as

G𝕁\displaystyle\frac{\partial G}{\partial\mathbb{J}} =G𝕁(EKcEK1,det(EKc)det(EK),𝕄(𝒙K),𝒙K),\displaystyle=\frac{\partial G}{\partial\mathbb{J}}\left(E_{K_{c}}E_{K}^{-1},\frac{\det(E_{K_{c}})}{\det(E_{K})},\mathbb{M}(\boldsymbol{x}_{K}),\boldsymbol{x}_{K}\right),
Gdet(𝕁)\displaystyle\frac{\partial G}{\partial\det(\mathbb{J})} =Gdet(𝕁)(EKcEK1,det(EKc)det(EK),𝕄(𝒙K),𝒙K).\displaystyle=\frac{\partial G}{\partial\det(\mathbb{J})}\left(E_{K_{c}}E_{K}^{-1},\frac{\det(E_{K_{c}})}{\det(E_{K})},\mathbb{M}(\boldsymbol{x}_{K}),\boldsymbol{x}_{K}\right).

The second equation in Eq.˜3 is an inherent property resulting directly from the differentiation of the discretized meshing functional; it states that the centroid of KK stays fixed if only the contribution from KK is taken into account.

The above mesh equation should be modified properly for boundary vertices. For example, if 𝝃i\boldsymbol{\xi}_{i} is a fixed boundary vertex, we replace the corresponding equation by

𝝃it=0.\frac{\partial{}\boldsymbol{\xi}_{i}}{\partial{}t}=0.

When 𝝃i\boldsymbol{\xi}_{i} is allowed to move on a boundary curve/surface represented by

ϕ(𝝃)=0,\phi(\boldsymbol{\xi})=0,

then the mesh velocity 𝝃it\frac{\partial{}\boldsymbol{\xi}_{i}}{\partial{}t} needs to be modified such that its normal component along the curve or surface is zero, i.e.,

ϕ(𝝃i)𝝃it=0.\nabla\phi(\boldsymbol{\xi}_{i})\cdot\frac{\partial{}\boldsymbol{\xi}_{i}}{\partial{}t}=0.

Mesh equation Eq.˜2 defines the movement of the nodes of the computational mesh 𝒯hc{\mathcal{T}_{h}}_{c} starting from the reference mesh 𝒯h^c\hat{\mathcal{T}_{h}}_{c} at tnt_{n}. The equation can be integrated in time to obtain the computational mesh at tn+1t_{n+1}. For notational simplicity, we denote the computational mesh at tn+1t_{n+1} by 𝒯hc{\mathcal{T}_{h}}_{c} as well. Notice that the physical mesh 𝒯h\mathcal{T}_{h} is fixed during the time integration from tnt_{n} to tn+1t_{n+1}. Meshes 𝒯hc{\mathcal{T}_{h}}_{c} and 𝒯h\mathcal{T}_{h} define a correspondence

𝒯h=Ψ(𝒯hc).\mathcal{T}_{h}=\Psi({\mathcal{T}_{h}}_{c}).

The new physical mesh is computed by means of linear interpolation as

𝒯h~=Ψ(𝒯h^c),\tilde{\mathcal{T}_{h}}=\Psi(\hat{\mathcal{T}_{h}}_{c}),

where 𝒯h^c\hat{\mathcal{T}_{h}}_{c} is the reference mesh on Ωc\Omega_{c}. The computational mesh plays the role of an intermediate variable.

Recall that the mesh concentration in variational mesh adaptation is controlled through the metric tensor 𝕄=𝕄(𝒙)\mathbb{M}=\mathbb{M}(\boldsymbol{x}). Such a metric tensor can be defined based on physical or geometric considerations or some error estimates. For example, for the L2L^{2} norm of the error of piecewise linear interpolation on simplicial meshes, the optimal metric tensor [9, 16] (also see [15, (5.192)]) is

𝕄=det(αI+|H(u)|)1d+4[αI+|H(u)|],\mathbb{M}={\det\left(\alpha I+\left\lvert H(u)\right\rvert\right)}^{-\frac{1}{d+4}}\left[\alpha I+\left\lvert H(u)\right\rvert\right], (4)

where H(u)H(u) is the Hessian of function uu, |H(u)||H(u)| is the eigen-decomposition of H(u)H(u) with the eigenvalues being replaced by their absolute values, and the regularization parameter α>0\alpha>0 is chosen such that

Ωdet(𝕄)12d𝒙Ωdet(αI+|H(u)|)2d+4d𝒙=2Ωdet(|H(u)|)2d+4d𝒙.\int_{\Omega}{\det(\mathbb{M})}^{\frac{1}{2}}\,d\boldsymbol{x}\equiv\int_{\Omega}{\det\left(\alpha I+|H(u)|\right)}^{\frac{2}{d+4}}\,d\boldsymbol{x}=2\int_{\Omega}{\det\left(|H(u)|\right)}^{\frac{2}{d+4}}\,d\boldsymbol{x}.

In practical computation, uu is typically unknown, and only the approximations to its values at the vertices are available. For this reason (and even in situations where an analytical expression for uu is available), the Hessian in Eq.˜4 is replaced by an approximation obtained by a Hessian recovery technique from the nodal values of uu or the approximations of the nodal values of uu. A number of such techniques are known to produce nonconvergent recovered Hessians from a linear finite element approximation (e.g., see Kamenski [17]). Nevertheless, it is shown by Kamenski and Huang [18] that a linear finite element solution of an elliptic BVP converges at a second order rate as the mesh is refined if the recovered Hessian used to generate the adaptive mesh satisfies a closeness assumption. Numerical experiment shows that this closeness assumption is satisfied by the approximate Hessian obtained with commonly used Hessian recovery methods. We use a Hessian recovery method based on a least squares fit: a quadratic polynomial is constructed locally for each vertex via least squares fitting to neighboring nodal function values and an approximate Hessian at the vertex is then obtained by differentiating the polynomial.

3 Meshing functionals

Here we introduce the three meshing functionals used in the numerical study. A generalization of Winslow’s variable diffusion functional and the two functionals based on equidistribution and alignment are selected because they are reasonably simple, have nice theoretical properties, and are known to work well for many problems.

3.1 Winslow’s functional based on variable diffusion

The first functional is the variable diffusion proposed by Winslow [25]. It uses the system of elliptic PDEs

(wξi)=0,i=1,,d,-\nabla\cdot\left(w\nabla\xi_{i}\right)=0,\quad i=1,\dotsc,d,

for generating adaptive meshes, where w=w(𝒙)>0w=w(\boldsymbol{x})>0 is the weight function. This system mimics a (steady-state) diffusion process with a heterogeneous diffusion coefficient w(𝒙)w(\boldsymbol{x}). It is the Euler-Lagrange equation of the functional

I[𝝃]=12Ωi=1dw(𝒙)|ξi|2d𝒙=12Ωw(𝒙)tr(𝕁𝕁T)𝑑𝒙,I[\boldsymbol{\xi}]=\frac{1}{2}\int_{\Omega}\sum\limits_{i=1}^{d}w(\boldsymbol{x})|\nabla\xi_{i}|^{2}\,d\boldsymbol{x}=\frac{1}{2}\int_{\Omega}w(\boldsymbol{x})\operatorname{tr}(\mathbb{J}\mathbb{J}^{T})\,d\boldsymbol{x}, (5)

where tr()\operatorname{tr}(\cdot) is the trace of a matrix. A generalization of this functional to allow a diffusion tensor is

I[𝝃]=12Ωtr(𝕁𝕄1𝕁T)𝑑𝒙.I[\boldsymbol{\xi}]=\frac{1}{2}\int_{\Omega}\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\,d\boldsymbol{x}. (6)

This functional has been used by a number of researchers, e.g., see Huang and Russell [13, 14], Li et al. [22], and Beckett et al. [2]. It is coercive and convex [15, Example 6.2.1]. Thus, under a suitable boundary condition (such as the Dirichlet boundary condition with Ωc\partial\Omega_{c} being mapped onto Ω\partial\Omega), the functional Eq.˜6 has a unique minimizer.

For this functional, the derivatives of GG with respect to 𝕁\mathbb{J} and det(𝕁)\det(\mathbb{J}) needed in Eq.˜3 are

{G=12tr(𝕁𝕄1𝕁T),G𝕁=𝕄1𝕁T,Gdet(𝕁)=0.\begin{cases}G=\frac{1}{2}\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T}),\\ \frac{\partial G}{\partial\mathbb{J}}=\mathbb{M}^{-1}\mathbb{J}^{T},\\ \frac{\partial G}{\partial\det(\mathbb{J})}=0.\end{cases} (7)

The interested reader is referred to [11] for the derivation.

The balancing function in Eq.˜2 is chosen as P=det(𝕄)1dP=\det(\mathbb{M})^{\frac{1}{d}}. With this choice, Eq.˜2 is invariant under the scaling transformation 𝕄c𝕄\mathbb{M}\to c\,\mathbb{M}.

3.2 Functionals based on equidistribution and alignment

The other functionals are based on the equidistribution and alignment conditions. These conditions provide a full mathematical characterization of a non-uniform mesh. Indeed, any non-uniform mesh can be viewed as a uniform one in the metric specified by a tensor. Moreover, a mesh is uniform in the metric specified by the metric tensor 𝕄=𝕄(𝒙)\mathbb{M}=\mathbb{M}(\boldsymbol{x}) if and only if it satisfies the equidistribution and alignment conditions associated with 𝕄\mathbb{M} [10, 15]. In the continuous form, they are

equidistribution: det(𝕁)1det(𝕄)12=σ|Ωc|,𝒙Ω\displaystyle\det(\mathbb{J})^{-1}\det(\mathbb{M})^{\frac{1}{2}}=\frac{\sigma}{|\Omega_{c}|},\quad\forall\boldsymbol{x}\in\Omega (8)
alignment: 1dtr(𝕁𝕄1𝕁T)=det(𝕁𝕄1𝕁T)1d,𝒙Ω,\displaystyle\frac{1}{d}\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})=\det(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})^{\frac{1}{d}},\quad\forall\boldsymbol{x}\in\Omega, (9)

where

σ=Ωdet(𝕄)12d𝒙.\sigma=\int_{\Omega}\det(\mathbb{M})^{\frac{1}{2}}\,d\boldsymbol{x}. (10)

These conditions require the mesh elements to have the same size (equidistribution) and be equilateral (alignment) in the metric 𝕄\mathbb{M}, respectively. The alignment condition also implies that the elements are aligned with 𝕄\mathbb{M} in the sense that the principal directions of the circumscribed ellipsoid of each element coincide with the eigen-directions of 𝕄\mathbb{M} while the lengths of the principal axes of the ellipsoid are reciprocally proportional to the square roots of the eigenvalues of 𝕄\mathbb{M}.

The first functional based on equidistribution and alignment, proposed in [7], is

I[𝝃]=θΩdet(𝕄)(tr(𝕁𝕄1𝕁T))dp2𝑑𝒙+(12θ)ddp2Ωdet(𝕄)(det(𝕁)det(𝕄))p𝑑𝒙,I[\boldsymbol{\xi}]=\theta\int_{\Omega}\sqrt{\det(\mathbb{M})}{\left(\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\right)}^{\frac{dp}{2}}\,d\boldsymbol{x}+(1-2\theta)d^{\frac{dp}{2}}\int_{\Omega}\sqrt{\det(\mathbb{M})}{\left(\frac{\det(\mathbb{J})}{\sqrt{\det(\mathbb{M})}}\right)}^{p}\,d\boldsymbol{x}, (11)

where θ(0,1)\theta\in(0,1) and p>0p>0 are dimensionless parameters. Loosely speaking, the first and second terms correspond to the equidistribution and alignment conditions, respectively. The terms are dimensionally homogeneous and the balance between them is controlled by the dimensionless parameter θ\theta. For 0<θ120<\theta\leq\frac{1}{2}, dp2dp\geq 2, and p1p\geq 1, the functional is coercive and polyconvex and has a minimizer [15, Example 6.2.2]. Moreover, for θ=12\theta=\frac{1}{2} and dp=2dp=2 it reduces to

I[𝝃]=12Ωdet(𝕄)tr(𝕁𝕄1𝕁T)𝑑𝒙,I[\boldsymbol{\xi}]=\frac{1}{2}\int_{\Omega}\sqrt{\det(\mathbb{M})}\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\,d\boldsymbol{x},

which is exactly the energy functional of a harmonic mapping from Ω\Omega to Ωc\Omega_{c} (cf. [6]).

For the functional Eq.˜11, we have

{G=θdet(𝕄)(tr(𝕁𝕄1𝕁T))dp2+(12θ)ddp2det(𝕄)(det(𝕁)det(𝕄))p,G𝕁=dpθdet(𝕄)(tr(𝕁𝕄1𝕁T))dp21𝕄1𝕁T,Gdet(𝕁)=p(12θ)ddp2det(𝕄)1p2det(𝕁)p1.\begin{cases}G=\theta\sqrt{\det(\mathbb{M})}{\left(\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\right)}^{\frac{dp}{2}}+(1-2\theta)d^{\frac{dp}{2}}\sqrt{\det(\mathbb{M})}{\left(\frac{\det(\mathbb{J})}{\sqrt{\det(\mathbb{M})}}\right)}^{p},\\ \frac{\partial{}G}{\partial{}\mathbb{J}}=dp\theta\sqrt{\det(\mathbb{M})}{\left(\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\right)}^{\frac{dp}{2}-1}\mathbb{M}^{-1}\mathbb{J}^{T},\\ \frac{\partial{}G}{\partial{}\det(\mathbb{J})}=p(1-2\theta)d^{\frac{dp}{2}}\det{(\mathbb{M})}^{\frac{1-p}{2}}\det{(\mathbb{J})}^{p-1}.\end{cases} (12)

In the computation, we use (p,θ)=(2,13)(p,\theta)=(2,\frac{1}{3}). p=2p=2 is the smallest integer to satisfy dp2dp\geq 2 for d=1d=1, 2, and 3. The choice of θ=1/3\theta=1/3 is in the range (0,1/2](0,1/2] for the functional to be polyconvex while giving a bigger weight to the equdistribution condition. This set of the values works well for all tested problems. The balancing function in Eq.˜2 is chosen to be P=det(𝕄)p12P=\det(\mathbb{M})^{\frac{p-1}{2}}, so that Eq.˜2 is invariant under the scaling transformation 𝕄c𝕄\mathbb{M}\to c\ \mathbb{M}.

The second functional based on equidistribution and alignment is

I[𝝃]=θ1Ωdet(𝕄)(tr(𝕁𝕄1𝕁T))dp2𝑑𝒙+θ2ddp(d2)2(d1)Ωdet(𝕄)12(1dpd1)det(𝕁)dpd1(tr(𝕁T𝕄𝕁1))dp2(d1)d𝒙+(θ3θ1θ2)ddp2Ωdet(𝕄)(det(𝕁)det(𝕄))p𝑑𝒙+θ4σp+νΩdet(𝕄)(det(𝕁)det(𝕄))ν𝑑𝒙,I[\boldsymbol{\xi}]=\theta_{1}\int_{\Omega}\sqrt{\det(\mathbb{M})}{\left(\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\right)}^{\frac{dp}{2}}\,d\boldsymbol{x}\\ +\theta_{2}d^{\frac{dp(d-2)}{2(d-1)}}\int_{\Omega}\det(\mathbb{M})^{\frac{1}{2}(1-\frac{dp}{d-1})}\det(\mathbb{J})^{\frac{dp}{d-1}}{\left(\operatorname{tr}(\mathbb{J}^{-T}\mathbb{M}\mathbb{J}^{-1})\right)}^{\frac{dp}{2(d-1)}}\,d\boldsymbol{x}\\ +\left(\theta_{3}-\theta_{1}-\theta_{2}\right)d^{\frac{dp}{2}}\int_{\Omega}\sqrt{\det(\mathbb{M})}{\left(\frac{\det(\mathbb{J})}{\sqrt{\det(\mathbb{M})}}\right)}^{p}\,d\boldsymbol{x}\\ +\frac{\theta_{4}}{\sigma^{p+\nu}}\int_{\Omega}\sqrt{\det(\mathbb{M})}{\left(\frac{\det(\mathbb{J})}{\sqrt{\det(\mathbb{M})}}\right)}^{-\nu}\,d\boldsymbol{x}, (13)

where p>1p>1, ν>0\nu>0, and θi>0\theta_{i}>0 (i=1,,4i=1,\dotsc,4) are parameters. The first three terms in Eq.˜13 are dimensionally homogeneous in 𝕄\mathbb{M} and 𝕁\mathbb{J} while the last term has the same dimension in 𝕄\mathbb{M} as the other terms. This functional was proposed in [15, (6.120)] to avoid singularity of the coordinate transformation. Indeed, if θ3θ1θ2>0\theta_{3}-\theta_{1}-\theta_{2}>0, then the functional is coercive and polyconvex and has a minimizer satisfying det(𝕁)>0\det(\mathbb{J})>0 in Ω\Omega [15, Example 6.2.3].

In the computation, we choose θ1=θ2=13\theta_{1}=\theta_{2}=\frac{1}{3}, θ3=1\theta_{3}=1, θ4=0.1\theta_{4}=0.1, p=2p=2, ν=1\nu=1, and the balancing function P=det(𝕄)p12P=\det(\mathbb{M})^{\frac{p-1}{2}}. These choices are based on the functional Eq.˜11 and the desire to keep the fourth term relatively small.

For this functional, we have

{G=θ1det(𝕄)(tr(𝕁𝕄1𝕁T))dp2+θ2ddp(d2)2(d1)det(𝕄)12(1dpd1)det(𝕁)dpd1(tr(𝕁T𝕄𝕁1))dp2(d1)+(θ3θ1θ2)ddp2(det(𝕄))1pdet(𝕁)p+θ4σp+ν(det(𝕄))1+νdet(𝕁)ν,G𝕁=θ1dpdet(𝕄)(tr(𝕁𝕄1𝕁T))dp21𝕄1𝕁Tθ2dpd1ddp(d2)2(d1)det(𝕄)12(1dpd1)det(𝕁)dpd1(tr(𝕁T𝕄𝕁1))dp2(d1)1𝕁1𝕁T𝕄𝕁1,Gdet(𝕁)=θ2dpd1ddp(d2)2(d1)det(𝕄)12(1dpd1)det(𝕁)dpd11(tr(𝕁T𝕄𝕁1))dp2(d1)+(θ3θ1θ2)pddp2(det(𝕄))1pdet(𝕁)p1θ4νσp+ν(det(𝕄))1+νdet(𝕁)ν1.\begin{cases}G=\theta_{1}\sqrt{\det(\mathbb{M})}{\left(\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\right)}^{\frac{dp}{2}}\\ \qquad+\theta_{2}d^{\frac{dp(d-2)}{2(d-1)}}\det(\mathbb{M})^{\frac{1}{2}(1-\frac{dp}{d-1})}\det(\mathbb{J})^{\frac{dp}{d-1}}{\left(\operatorname{tr}(\mathbb{J}^{-T}\mathbb{M}\mathbb{J}^{-1})\right)}^{\frac{dp}{2(d-1)}}\\ \quad\qquad+(\theta_{3}-\theta_{1}-\theta_{2})d^{\frac{dp}{2}}\left(\sqrt{\det(\mathbb{M})}\right)^{1-p}\det(\mathbb{J})^{p}\\ \qquad\qquad+\frac{\theta_{4}}{\sigma^{p+\nu}}\left(\sqrt{\det(\mathbb{M})}\right)^{1+\nu}\det(\mathbb{J})^{-\nu},\\ \frac{\partial G}{\partial\mathbb{J}}=\theta_{1}dp\sqrt{\det(\mathbb{M})}{\left(\operatorname{tr}(\mathbb{J}\mathbb{M}^{-1}\mathbb{J}^{T})\right)}^{\frac{dp}{2}-1}\mathbb{M}^{-1}\mathbb{J}^{T}\\ \qquad-\frac{\theta_{2}dp}{d-1}d^{\frac{dp(d-2)}{2(d-1)}}\det(\mathbb{M})^{\frac{1}{2}(1-\frac{dp}{d-1})}\det(\mathbb{J})^{\frac{dp}{d-1}}{\left(\operatorname{tr}(\mathbb{J}^{-T}\mathbb{M}\mathbb{J}^{-1})\right)}^{\frac{dp}{2(d-1)}-1}\mathbb{J}^{-1}\mathbb{J}^{-T}\mathbb{M}\mathbb{J}^{-1},\\ \frac{\partial G}{\partial\det(\mathbb{J})}=\frac{\theta_{2}dp}{d-1}d^{\frac{dp(d-2)}{2(d-1)}}\det(\mathbb{M})^{\frac{1}{2}(1-\frac{dp}{d-1})}\det(\mathbb{J})^{\frac{dp}{d-1}-1}{\left(\operatorname{tr}(\mathbb{J}^{-T}\mathbb{M}\mathbb{J}^{-1})\right)}^{\frac{dp}{2(d-1)}}\\ \qquad+(\theta_{3}-\theta_{1}-\theta_{2})pd^{\frac{dp}{2}}\left(\sqrt{\det(\mathbb{M})}\right)^{1-p}\det(\mathbb{J})^{p-1}\\ \quad\qquad-\frac{\theta_{4}\nu}{\sigma^{p+\nu}}\left(\sqrt{\det(\mathbb{M})}\right)^{1+\nu}\det(\mathbb{J})^{-\nu-1}.\end{cases} (14)

4 Numerical experiments

In the following we consider a number of examples in two and three dimensions. For a given function we consider 𝕄\mathbb{M} defined in Eq.˜4 which is optimal for minimizing the L2L^{2} norm of the linear interpolation error of this function and compare meshes obtained from using the functionals of Winslow Eq.˜6 (W), Huang Eq.˜11 (H), and Huang and Russell Eq.˜13 (HR).

To assess the quality of the generated meshes, we compare the L2L^{2} norm of the linear interpolation error and the equidistribution and alignment mesh quality measures, which describe how far the mesh is from being uniform in the metric defined by 𝕄\mathbb{M}. The element-wise quality measures are based on Eq.˜8 and Eq.˜9 and defined as

Qeq,K=det(𝕁K)1det(𝕄K)12σ/|Ωc|,Qali,K=tr(𝕁K𝕄K1𝕁KT)ddet(𝕁K𝕄K1𝕁KT)1d,Q_{eq,K}=\frac{\det(\mathbb{J}_{K})^{-1}\det(\mathbb{M}_{K})^{\frac{1}{2}}}{\sigma/|\Omega_{c}|},\qquad Q_{ali,K}=\frac{\operatorname{tr}(\mathbb{J}_{K}\mathbb{M}_{K}^{-1}\mathbb{J}_{K}^{T})}{d\det(\mathbb{J}_{K}\mathbb{M}_{K}^{-1}\mathbb{J}_{K}^{T})^{\frac{1}{d}}}, (15)

while for the overall mesh quality measures we take their root-mean-squared values,

Qeq=1NK𝒯hQeq,K2,Qali=1NK𝒯hQali,K2.Q_{eq}=\sqrt{\frac{1}{N}\sum_{K\in\mathcal{T}_{h}}Q_{eq,K}^{2}},\qquad Q_{ali}=\sqrt{\frac{1}{N}\sum_{K\in\mathcal{T}_{h}}Q_{ali,K}^{2}}. (16)

If the mesh is uniform with respect to 𝕄\mathbb{M}, then Qeq=Qali=1Q_{eq}=Q_{ali}=1; if the mesh is far from being uniform with respect to 𝕄\mathbb{M}, then QeqQ_{eq} and QaliQ_{ali} will become large. In other words, these quality measures describe how well the volume (measured by QeqQ_{eq}) and the shape and orientation (measured by QaliQ_{ali}) of mesh elements correspond to the desired size and shape prescribed by 𝕄\mathbb{M} (see [8] for more details on the mesh quality measures).

4.1 Two dimensions

First, we consider two dimensional meshes constructed for the unit square Ω=(0,1)×(0,1)\Omega=(0,1)\times(0,1) and the test functions

Example 4.1.
u=tanh(30[y0.50.25sin(2πx)]).u=\tanh\left(-30\left[y-0.5-0.25\sin(2\pi x)\right]\right).
Example 4.2.
u=tanh(25y)tanh(25(xy0.5)).u=\tanh(25y)-\tanh(25(x-y-0.5)).

Example meshes, close-ups, as well as the mesh quality measures and the L2L^{2} interpolation error are given in Figs.˜1 and 2.

For these examples, all three functionals provide good size and shape adaptation. A closer look at the mesh quality measures shows that, although all three functionals provide comparable meshes which are reasonably close to the prescribed metric tensor, meshes constructed using H and HR functionals have better correspondence to the prescribed metric tensor. In both two-dimensional examples, H and HR functionals provide very similar grids which are closer to the prescribed size and shape (that is, smaller values of QeqQ_{eq} and QaliQ_{ali}). This is also reflected in the error of the linear interpolation: HR functional Eq.˜13 provides the smallest error, followed by H functional Eq.˜11 and then W functional Eq.˜6. It seems that W functional is a bit too aggressive in moving nodes towards the neighborhood of areas of interest, providing a higher density of the nodes along the anisotropic features of the given function while coarsening out the mesh nearby, leading to a steeper element size gradation. Interestingly, for both examples the convergence of the linear interpolation error for W functional (Figs.˜1(f) and 2(f)) slows down near N=104N=10^{4} and returns to the order 𝒪(N1)\mathcal{O}(N^{-1}) as the mesh is refined (NN is the number of mesh elements). It is unclear to us what causes this for W functional.

For Example˜4.1 we also compute adaptive meshes for the metric tensor which is optimal for the H1H^{1} semi norm error (see, e.g., [10] for details on the metric tensor). The results shown in Fig.˜3 are essentially the same as in Fig.˜1: HR functional Eq.˜13 provides the smallest error, followed by H functional Eq.˜11 and then W functional Eq.˜6. For this metric tensor, the L2L^{2} error for the H and HR functionals (Fig.˜3(f)) is slightly larger than in Fig.˜1(f), which is not surprising, since the metric tensor chosen for Fig.˜1 is optimal for the L2L^{2} error. Thus, adding the equidistribution property to the meshing functional seems to help to obtain meshes which are closer to fulfilling the prescribed properties. Interestingly, the L2L^{2} error for the W functional seems to be a bit smaller if the H1H^{1} metric tensor is used. This can be explained by the fact that the W functional does not incorporate the equidistribution property and, thus, doesn’t exactly generate a mesh which is uniform with respect to the provided metric tensor. Thus, it is not quite clear if one is able to generate the optimal mesh when using the W functional.

Refer to caption
Refer to caption
Refer to caption
(a) Winslow’s Eq.˜6
Refer to caption
Refer to caption
Refer to caption
(b) Huang’s Eq.˜11
Refer to caption
Refer to caption
Refer to caption
(c) Huang and Russell’s Eq.˜13
10310^{3}10410^{4}10510^{5}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(d) QeqQ_{eq} vs. NN
10310^{3}10410^{4}10510^{5}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(e) QaliQ_{ali} vs. NN
10310^{3}10410^{4}10510^{5}10410^{-4}10310^{-3}10210^{-2}WinslowHuangHR
(f) L2L^{2} interpolation error vs. NN
Figure 1: Example˜4.1: example meshes (left), close-ups near the wave tip (middle) and in the middle (right), mesh quality measures, and L2L^{2} interpolation error (black line represents N1N^{-1}).
Refer to caption
Refer to caption
Refer to caption
(a) Winslow’s Eq.˜6
Refer to caption
Refer to caption
Refer to caption
(b) using Huang’s Eq.˜11
Refer to caption
Refer to caption
Refer to caption
(c) Huang and Russell’s Eq.˜13
10310^{3}10410^{4}10510^{5}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(d) QeqQ_{eq} vs. NN
10310^{3}10410^{4}10510^{5}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(e) QaliQ_{ali} vs. NN
10310^{3}10410^{4}10510^{5}10410^{-4}10310^{-3}10210^{-2}WinslowHuangHR
(f) L2L^{2} error vs. NN
Figure 2: Example˜4.2: example meshes (left), close-ups near the wave meeting the boundary layer (middle) and in the right bottom corner (right), mesh quality measures, and L2L^{2} interpolation error (black line represents N1N^{-1}).
Refer to caption
Refer to caption
Refer to caption
(a) Winslow’s Eq.˜6
Refer to caption
Refer to caption
Refer to caption
(b) Huang’s Eq.˜11
Refer to caption
Refer to caption
Refer to caption
(c) Huang and Russell’s Eq.˜13
10310^{3}10410^{4}10510^{5}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(d) QeqQ_{eq} vs. NN
10310^{3}10410^{4}10510^{5}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(e) QaliQ_{ali} vs. NN
10310^{3}10410^{4}10510^{5}10410^{-4}10310^{-3}10210^{-2}WinslowHuangHR
(f) L2L^{2} interpolation error vs. NN
Figure 3: Example˜4.1 using a metric tensor for the H1H^{1} semi-norm: example meshes (left), close-ups near the wave tip (middle) and in the middle (right), mesh quality measures, and L2L^{2} interpolation error (black line represents N1N^{-1}).

4.2 Three dimensions

In three dimensions, we consider the unit cube Ω=(0,1)×(0,1)×(0,1)\Omega=(0,1)\times(0,1)\times(0,1) and the following test functions.

Example 4.3.
u=\displaystyle u= tanh(30[(4x2.0)2+(4y2.0)2+(4z2.0)20.1875])\displaystyle\tanh\left(30\left[(4x-2.0)^{2}+(4y-2.0)^{2}+(4z-2.0)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x2.5)2+(4y2.5)2+(4z2.5)20.1875])\displaystyle\tanh\left(30\left[(4x-2.5)^{2}+(4y-2.5)^{2}+(4z-2.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x2.5)2+(4y1.5)2+(4z2.5)20.1875])\displaystyle\tanh\left(30\left[(4x-2.5)^{2}+(4y-1.5)^{2}+(4z-2.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x1.5)2+(4y2.5)2+(4z2.5)20.1875])\displaystyle\tanh\left(30\left[(4x-1.5)^{2}+(4y-2.5)^{2}+(4z-2.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x1.5)2+(4y1.5)2+(4z2.5)20.1875])\displaystyle\tanh\left(30\left[(4x-1.5)^{2}+(4y-1.5)^{2}+(4z-2.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x2.5)2+(4y2.5)2+(4z1.5)20.1875])\displaystyle\tanh\left(30\left[(4x-2.5)^{2}+(4y-2.5)^{2}+(4z-1.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x2.5)2+(4y1.5)2+(4z1.5)20.1875])\displaystyle\tanh\left(30\left[(4x-2.5)^{2}+(4y-1.5)^{2}+(4z-1.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x1.5)2+(4y2.5)2+(4z1.5)20.1875])\displaystyle\tanh\left(30\left[(4x-1.5)^{2}+(4y-2.5)^{2}+(4z-1.5)^{2}-0.1875\right]\right)
+\displaystyle+ tanh(30[(4x1.5)2+(4y1.5)2+(4z1.5)20.1875]).\displaystyle\tanh\left(30\left[(4x-1.5)^{2}+(4y-1.5)^{2}+(4z-1.5)^{2}-0.1875\right]\right).
Example 4.4.
u=tanh(30[z0.50.25sin(2πx)sin(πy)]).u=\tanh\Big{(}-30[z-0.5-0.25\sin(2\pi x)\sin(\pi y)]\Big{)}.
Example 4.5.
u=tanh(30{ztanh(30[y0.50.25sin(2πx)])}).u=\tanh\bigg{(}-30\Big{\{}z-\tanh\big{(}-30\left[y-0.5-0.25\sin(2\pi x)\right]\big{)}\Big{\}}\bigg{)}.

Adaptive mesh examples (slice and clip cuts) and numerical results are given in Figs.˜4, 5 and 6.

As in two dimensions, all three functionals provide good size and shape adaptation, with QeqQ_{eq} and QaliQ_{ali} being reasonably small. The best mesh size control QeqQ_{eq} is given by HR functional (Figs. 4(g), 5(g), and 6(g)), although for the considered examples, HR has a slightly worse mesh alignment quality QaliQ_{ali} than the others (Figs. 4(h), 5(h), and 6(h)).

A closer look at the example meshes (slice cuts) reveals that, as in 2D, W functional —based on variable diffusion— is noticeably more aggressive in moving nodes toward the steep features or, alternatively, one can say that the functionals Eqs.˜11 and 13 based on equidistribution and alignment distribute the nodes with the better correspondence with the given 𝕄\mathbb{M}. For coarse meshes, all three functionals provide similar results (see convergence plots in Figs. 4(i), 5(i), 6(i)); however, for fine meshes, sizing of mesh elements obtained by means of W functional is not quite as good as for H and HR functionals, as indicated by a larger QeqQ_{eq}.

Altogether, the linear interpolation error (Figs. 4(i), 5(i), and 6(i)) suggests that HR functional provides the best mesh, followed by H and W functionals. One may notice from Figs.˜5(i) and 6(i) that the convergence of the linear interpolation error for W functional slows down near N=105N=10^{5} for Examples˜4.4 and 4.5, although it seems to improve as the mesh is refined (Fig.˜6(i)). The reason for this behaviour is not clear to us. On the other hand, W functional has the simplest form and seems to be more economic to compute than the other two. From tentative comparison, mesh generation using W functional uses about one fifth to an half of the CPU time used with H or HR functional. Qualitatively, this is not difficult to understand since W functional is convex whereas the others are not (although they are polyconvex).

Refer to caption
(a) Winslow’s Eq.˜6
Refer to caption
(b) Huang’s Eq.˜11
Refer to caption
(c) Huang and Russell’s Eq.˜13
Refer to caption
(d) Winslow’s Eq.˜6
Refer to caption
(e) Huang’s Eq.˜11
Refer to caption
(f) Huang and Russell’s Eq.˜13
10310^{3}10410^{4}10510^{5}10610^{6}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(g) QeqQ_{eq} vs. NN
10310^{3}10410^{4}10510^{5}10610^{6}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(h) QaliQ_{ali} vs. NN
10310^{3}10410^{4}10510^{5}10610^{6}101.810^{-1.8}101.610^{-1.6}101.410^{-1.4}101.210^{-1.2}10110^{-1}100.810^{-0.8}100.610^{-0.6}100.410^{-0.4}WinslowHuangHR
(i) L2L^{2} error vs. NN
Figure 4: Example˜4.3. The top row: slice cuts of the meshes. The middle row: clip cuts of the meshes. The bottom row: QeqQ_{eq}, QaliQ_{ali}, and the L2L^{2} norm of the linear interpolation error (black line represents N2/3N^{-2/3}).
Refer to caption
(a) Winslow’s Eq.˜6
Refer to caption
(b) Huang’s Eq.˜11
Refer to caption
(c) Huang and Russell’s Eq.˜13
Refer to caption
(d) Winslow’s Eq.˜6
Refer to caption
(e) Huang’s Eq.˜11
Refer to caption
(f) Huang and Russell’s Eq.˜13
10310^{3}10410^{4}10510^{5}10610^{6}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(g) QeqQ_{eq} vs. NN
10310^{3}10410^{4}10510^{5}10610^{6}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(h) QaliQ_{ali} vs. NN
10310^{3}10410^{4}10510^{5}10610^{6}10210^{-2}10110^{-1}WinslowHuangHR
(i) L2L^{2} error vs. NN
Figure 5: Example˜4.4. The top row: slice cuts of the meshes. The middle row: clip cuts of the meshes. The bottom row: QeqQ_{eq}, QaliQ_{ali}, and the L2L^{2} norm of the linear interpolation error (black line represents N2/3N^{-2/3}).
Refer to caption
(a) Winslow’s Eq.˜6
Refer to caption
(b) Huang’s Eq.˜11
Refer to caption
(c) Huang and Russell’s Eq.˜13
Refer to caption
(d) Winslow’s Eq.˜6
Refer to caption
(e) Huang’s Eq.˜11
Refer to caption
(f) Huang and Russell’s Eq.˜13
10310^{3}10410^{4}10510^{5}10610^{6}10710^{7}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(g) QeqQ_{eq} vs. NN
10310^{3}10410^{4}10510^{5}10610^{6}10710^{7}10810^{8}111.21.21.41.41.61.61.81.8222.22.22.42.42.62.62.82.8WinslowHuangHR
(h) QaliQ_{ali} vs. NN
10310^{3}10410^{4}10510^{5}10610^{6}10710^{7}10810^{8}101.610^{-1.6}101.410^{-1.4}101.210^{-1.2}10110^{-1}100.810^{-0.8}100.610^{-0.6}100.410^{-0.4}WinslowHuangHR
(i) L2L^{2} error vs. NN
Figure 6: Example˜4.5. The top row: slice cuts of the meshes. The middle row: clip cuts of the meshes. The bottom row: QeqQ_{eq}, QaliQ_{ali}, and the L2L^{2} norm of the linear interpolation error (black line represents N2/3N^{-2/3}).

5 Conclusions

Among the three functionals in this study, Huang and Russell’s functional consistently provides the best mesh for piecewise linear interpolation in both two and three dimensions. In all examples it leads to the best equidistribution quality and the smallest interpolation error. Interestingly, while it results in the best mesh alignment quality in two dimensions, the functional gives a slightly worse mesh alignment than the other two functionals in three dimensions.

Meshes obtained by means of Winslow’s functional have the worst mesh equidistribution (element size) quality and the largest interpolation error in four out of five examples, although in three dimensions its mesh alignment is quite good and even better than that of the meshes obtained using Huang and Russell’s functional. An explanation to this behavior could be the fact that this functional does not have an explicit mechanism to control the equidistribution property.

The behavior of Huang’s functional is somewhere in between Winslow’s and Huang and Russell’s functionals: both in mesh quality measures and interpolation error. It provides better mesh sizing than Winslow’s functional but not quite as good as Huang and Russell’s. On the other hand, it provides the best (or very close to the best) mesh alignment in all examples.

While being able to produce correct and good quality mesh concentration, Winslow’s functional seems to have the tendency to move more points toward the area of interest and is slightly less reliable than the other two functionals especially when the mesh is fine. On the other hand, it has a very simple form and is more economic to compute than the others. It can be a good choice for mesh adaptation at least for coarser meshes, for which all of the three functionals produce comparable meshes.

Finally, it should be pointed out that the numerical experiment we conducted in this work is limited and more work is needed to have an extensive and more complete understanding of the behavior of the meshing functionals especially in three dimensions. Moreover, the newly developed implementation of the variational methods in [11] has been crucial to the current study to perform substantial computations in two and three dimensions. It is our hope that it can serve as an efficient tool for use in future studies of mesh adaptation and movement.

References

  • [1] G. Beckett, J. A. Mackenzie, A. Ramage, and D. M. Sloan. Computational solution of two-dimensional unsteady PDEs using moving mesh methods. J. Comput. Phys., 182:478–495, 2002.
  • [2] G. Beckett, J. A. Mackenzie, and M. L. Robertson. A moving mesh finite element method for the solution of two-dimensional Stefan problems. J. Comput. Phys., 168:500–518, 2001.
  • [3] J. U. Brackbill and J. S. Saltzman. Adaptive zoning for singular problems in two dimensions. J. Comput. Phys., 46:342–368, 1982.
  • [4] W. Cao, W. Huang, and R. D. Russell. A study of monitor functions for two dimensional adaptive mesh generation. SIAM J. Sci. Comput., 20:1978–1994, 1999.
  • [5] H. D. Ceniceros and T. Y. Hou. An efficient dynamically adaptive mesh for potentially singular solutions. J. Comput. Phys., 172:609–639, 2001.
  • [6] A. S. Dvinsky. Adaptive grid generation from harmonic maps on Riemannian manifolds. J. Comput. Phys., 95:450–476, 1991.
  • [7] W. Huang. Variational mesh adaptation: isotropy and equidistribution. J. Comput. Phys., 174:903–924, 2001.
  • [8] W. Huang. Measuring mesh qualities and application to variational mesh adaptation. SIAM J. Sci. Comput., 26:1643–1666, 2005.
  • [9] W. Huang. Metric tensors for anisotropic mesh generation. J. Comput. Phys., 204:633–665, 2005.
  • [10] W. Huang. Mathematical principles of anisotropic mesh adaptation. Comm. Comput. Phys., 1:276–310, 2006.
  • [11] W. Huang and L. Kamenski. A geometric discretization and a simple implementation for variational mesh generation and adaptation. J. Comput. Phys. (submitted), 2015. (arXiv:1410.7872).
  • [12] W. Huang, Y. Ren, and R. D. Russell. Moving mesh partial differential equations (MMPDEs) based upon the equidistribution principle. SIAM J. Numer. Anal., 31:709–730, 1994.
  • [13] W. Huang and R. D. Russell. A high dimensional moving mesh strategy. Appl. Numer. Math., 26:63–76, 1998.
  • [14] W. Huang and R. D. Russell. Moving mesh strategy based upon a gradient flow equation for two dimensional problems. SIAM J. Sci. Comput., 20:998–1015, 1999.
  • [15] W. Huang and R. D. Russell. Adaptive Moving Mesh Methods. Springer, New York, 2011. Applied Mathematical Sciences Series, Vol. 174.
  • [16] W. Huang and W. Sun. Variational mesh adaptation II: error estimates and monitor functions. J. Comput. Phys., 184:619–648, 2003.
  • [17] L. Kamenski. Anisotropic Mesh Adaptation Based on Hessian Recovery and A Posteriori Error Estimates. Verlag Dr. Hut, München, 2009. PhD Thesis, Technische Universität Darmstadt.
  • [18] L. Kamenski and W. Huang. How a nonconvergent recovered Hessian works in mesh adaptation. SIAM J. Numer. Anal., 52:1692–1708, 2014. (arXiv:1211.2877).
  • [19] P. Knupp and S. Steinberg. Fundamentals of Grid Generation. CRC Press, Boca Raton, 1994.
  • [20] P. M. Knupp. Jacobian-weighted elliptic grid generation. SIAM J. Sci. Comput., 17:1475–1490, 1996.
  • [21] P. M. Knupp and N. Robidoux. A framework for variational grid generation: conditioning the Jacobian matrix with matrix norms. SIAM J. Sci. Comput., 21:2029–2047, 2000.
  • [22] R. Li, T. Tang, and P. W. Zhang. Moving mesh methods in multiple dimensions based on harmonic maps. J. Comput. Phys., 170:562–588, 2001.
  • [23] V. D. Liseikin. Grid Generation Methods. Springer, Berlin, 1999.
  • [24] J. F. Thompson, Z. A. Warsi, and C. W. Mastin. Numerical Grid Generation: Foundations and Applications. North-Holland, New York, 1985.
  • [25] A. M. Winslow. Adaptive mesh zoning by the equipotential method. Technical Report UCID-19062, Lawrence Livemore Laboratory, 1981 (unpublished).