Algorithm Search⌘K

Definitioncore

Mesh sizing function

Also called mesh size field, element size function.

A function giving the desired element size at each point, from curvature, local feature size and error, limited in gradient so sizes change gradually.

A mesh sizing function assigns to each point of the domain the edge length that the mesh should have near that point. Mesh generators read it to decide where to place vertices, and the user, the geometry and the solution error all contribute to it. It is usually limited in slope, as a Lipschitz function, so that neighboring elements have similar sizes. Size and shape are separate requirements: the sizing function says how big an element should be, and mesh quality measures say how well shaped it is.

Definition

Sizing function. Let Ω⊂Rd\Omega \subset \mathbb{R}^d be the domain. A sizing function is a function h:Ω→(0,∞)h : \Omega \to (0, \infty). A mesh conforms to hh with constants 0<c1≤c20 < c_1 \le c_2 if every edge pqpq satisfies

c1h(p)≤∣pq∣≤c2h(p)andc1h(q)≤∣pq∣≤c2h(q).c_1 h(p) \le |pq| \le c_2 h(p) \quad \text{and} \quad c_1 h(q) \le |pq| \le c_2 h(q).

Generators state this in different ways, for example by measuring each edge in the unit hh, as ∫pqds/h\int_{pq} ds / h, and asking for values near 1. The constants are not part of the function.

Gradation. The function hh has gradation L≥0L \ge 0 if it is LL-Lipschitz (Lipschitz condition):

∣h(x)−h(y)∣≤L∣x−y∣for all x,y∈Ω.|h(x) - h(y)| \le L |x - y| \quad \text{for all } x, y \in \Omega.

A small LL forces sizes to change slowly. L=0L = 0 means a uniform mesh.

Sources of size. A sizing function is usually the minimum of several parts.

  • User size. A maximum size HH, and point or line sources with small sizes near given places.
  • Local feature size. For a planar input made of vertices and segments, lfs⁡(x)\operatorname{lfs}(x) is the radius of the smallest closed disk centered at xx that meets two disjoint input features. It is small where two features come close, for example in a thin slot, and Ruppert's algorithm builds meshes whose sizes are within constant factors of it.
  • Curvature. A chord of length ℓ\ell on a circle of radius RR deviates from the arc by the sagitta s=R−R2−ℓ2/4s = R - \sqrt{R^2 - \ell^2/4}, by the theorem of Pythagoras on the half chord. To keep s≤δs \le \delta with δ<R\delta < R, the chord must satisfy ℓ≤22Rδ−δ2\ell \le 2 \sqrt{2 R \delta - \delta^2}. With RR the local radius of curvature of the boundary, this gives hcurv(x)=22R(x)δ−δ2h_{\mathrm{curv}}(x) = 2\sqrt{2 R(x) \delta - \delta^2}.
  • Error. For linear interpolation on an interval of length ℓ\ell, the interpolation error theorem gives ∣u−Πu∣≤ℓ2max⁡∣u′′∣/8|u - \Pi u| \le \ell^2 \max |u''| / 8. To keep the error below ε\varepsilon, take h=8ε/∣u′′∣h = \sqrt{8 \varepsilon / |u''|}. In several dimensions the Hessian gives a size that depends on direction, which is the metric of anisotropic mesh adaptation.

Theorem (local feature size is 1-Lipschitz). For all x,yx, y, lfs⁡(x)≤lfs⁡(y)+∣x−y∣\operatorname{lfs}(x) \le \operatorname{lfs}(y) + |x - y|.

Proof. The closed disk with center yy and radius lfs⁡(y)\operatorname{lfs}(y) meets two disjoint features. It is contained in the disk with center xx and radius lfs⁡(y)+∣x−y∣\operatorname{lfs}(y) + |x - y|, by the triangle inequality, so that disk also meets them. ■\blacksquare

Theorem (the Lipschitz envelope). Let h0:Ω→[hmin⁡,∞)h_0 : \Omega \to [h_{\min}, \infty) with hmin⁡>0h_{\min} > 0, and let L>0L > 0. Define

h(x)=inf⁡y∈Ω(h0(y)+L∣x−y∣).h(x) = \inf_{y \in \Omega} \big( h_0(y) + L |x - y| \big).

Then (1) hmin⁡≤h≤h0h_{\min} \le h \le h_0; (2) hh is LL-Lipschitz; (3) every LL-Lipschitz function gg with g≤h0g \le h_0 satisfies g≤hg \le h. So hh is the largest LL-Lipschitz function below h0h_0.

Proof. (1) Take y=xy = x to get h(x)≤h0(x)h(x) \le h_0(x). Every term in the infimum is at least hmin⁡h_{\min}. (2) For any yy, h0(y)+L∣x−y∣≤h0(y)+L∣z−y∣+L∣x−z∣h_0(y) + L|x - y| \le h_0(y) + L |z - y| + L |x - z|. Taking the infimum over yy gives h(x)≤h(z)+L∣x−z∣h(x) \le h(z) + L |x - z|, and the same with xx and zz exchanged. (3) If gg is LL-Lipschitz and g≤h0g \le h_0, then for every yy, g(x)≤g(y)+L∣x−y∣≤h0(y)+L∣x−y∣g(x) \le g(y) + L |x - y| \le h_0(y) + L |x - y|, so g(x)≤h(x)g(x) \le h(x). ■\blacksquare

The envelope is the standard way to limit gradation: it lowers the size only where needed, never raises it, and is the least change that does the job. On a finite set of sample points, such as the vertices of a background grid, it is a shortest path problem with edge weights L∣x−y∣L |x - y|, solved by Dijkstra's algorithm started from all points at once, each with the initial label h0h_0. On a non-convex domain the distance should be measured inside Ω\Omega. Otherwise a small size on one side of a thin wall lowers the size on the other side.

Theorem (the grading bound). Let hh be LL-Lipschitz, and let a mesh conform to hh with constants c1≤c2c_1 \le c_2.

  1. For all xx and all yy with ∣x−y∣≤r h(x)|x - y| \le r\, h(x): (1−Lr) h(x)≤h(y)≤(1+Lr) h(x)(1 - L r)\, h(x) \le h(y) \le (1 + L r)\, h(x).
  2. If ee and e′e' are edges of the mesh joined by a path of kk edges, then ∣e′∣≤c2c1(1+Lc2)k∣e∣|e'| \le \frac{c_2}{c_1} (1 + L c_2)^k |e|.

Proof. (1) is the Lipschitz condition with ∣x−y∣≤rh(x)|x - y| \le r h(x). For (2), let p0,p1,…,pkp_0, p_1, \ldots, p_k be the path, with p0p_0 an end of ee and pkp_k an end of e′e'. Each step has ∣pipi+1∣≤c2h(pi)|p_i p_{i+1}| \le c_2 h(p_i), so by (1) with r=c2r = c_2, h(pi+1)≤(1+Lc2)h(pi)h(p_{i+1}) \le (1 + L c_2) h(p_i). Then ∣e′∣≤c2h(pk)≤c2(1+Lc2)kh(p0)≤c2c1(1+Lc2)k∣e∣|e'| \le c_2 h(p_k) \le c_2 (1 + L c_2)^k h(p_0) \le \frac{c_2}{c_1} (1 + L c_2)^k |e|. ■\blacksquare

So in a mesh that conforms to a Lipschitz size, edge lengths change at most geometrically with the number of edges between them. A mesh with a lower bound θmin⁡\theta_{\min} on its angles has a grading of its own: by the law of sines, two edges of one triangle have a length ratio sin⁡α/sin⁡β≤1/sin⁡θmin⁡\sin \alpha / \sin \beta \le 1/\sin \theta_{\min}.

Examples and non-examples

  • A point source. Take h0=0.01h_0 = 0.01 at the origin and h0=1h_0 = 1 elsewhere, with L=0.2L = 0.2. The envelope is h(x)=min⁡(1,0.01+0.2∣x∣)h(x) = \min(1, 0.01 + 0.2 |x|). Along a ray, edges that follow hh grow by a factor of 1.21.2 each, so about 25 edges go from size 0.010.01 to size 11, over a distance of 4.954.95. A uniform size 0.010.01 would need 495 edges over the same distance.
  • A circle. For a circle of radius R=1R = 1 and a deviation tolerance δ=0.01\delta = 0.01, the curvature size is 20.02−0.0001≈0.2822 \sqrt{0.02 - 0.0001} \approx 0.282. A regular polygon with nn edges has sagitta 1−cos⁡(π/n)1 - \cos(\pi / n), which is 0.00930.0093 for n=23n = 23 and 0.01020.0102 for n=22n = 22, so 23 edges are needed.
  • Local feature size of a square. For the unit square given by its 4 vertices and 4 sides, lfs⁡=1\operatorname{lfs} = 1 at each corner (the corner and the opposite side are disjoint features) and lfs⁡=1/2\operatorname{lfs} = 1/2 at the center (two opposite sides).
  • A thin slot. Two parallel segments at distance ww give lfs⁡≤w\operatorname{lfs} \le w between them, so a mesh that conforms to lfs puts elements of size about ww across the slot, whatever the size elsewhere.
  • Non-example. The step function h0=0.01h_0 = 0.01 on the left half of a square and h0=1h_0 = 1 on the right half is not Lipschitz. A mesh that follows it closely has tiny elements next to large ones at the jump, and these elements are badly shaped. Its envelope with L=0.2L = 0.2 is a valid sizing function.

References

  1. Houman Borouchaki, Frédéric Hecht and Pascal J. Frey, Mesh gradation control, International Journal for Numerical Methods in Engineering 43(6), 1998, 1143 to 1165, the reduction of a size field so that sizes vary within a prescribed gradation, by size and by metric (general locator)
  2. Jim Ruppert, A Delaunay refinement algorithm for quality 2-dimensional mesh generation, Journal of Algorithms 18(3), 548 to 585 (1995), the definition of local feature size, its Lipschitz property, and the size optimality of the output with respect to it
  3. Siu-Wing Cheng, Tamal K. Dey and Jonathan Richard Shewchuk, Delaunay Mesh Generation, CRC Press, 2013, Chapter 6, Delaunay refinement in the plane (local feature size and the proof of size optimality and optimal grading)
  4. Rainald Löhner and Paresh Parikh, Generation of three-dimensional unstructured grids by the advancing-front method, International Journal for Numerical Methods in Fluids 8(10), 1988, 1135 to 1149, the element size specified by a background grid and by point and line sources (general locator)

Where this leads

About this page

The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.

LadderLevelWhat the next level needs
Human proofH0 no proof
  • add a proof in proofs/ (06.5)
LeanL0 no Lean part
  • name a Lean module in the lean field (07)
VisualV0 none
  • add viz/scene.ts or a figure (10)
WritingW4 complete
  • a review of the text: no review record reviews/NF3354/text.yaml