Techniquecore
Mass lumping
Also called lumped mass matrix.
Replaces the consistent mass matrix by a diagonal one, by row sums or nodal quadrature, so explicit time stepping needs no linear solve.
Mass lumping replaces the consistent mass matrix of a finite element method by a diagonal matrix , most often by adding each row onto the diagonal or by using a quadrature rule whose points are the nodes. With a diagonal mass matrix an explicit time step for the heat or wave equation costs only a division per unknown, with no linear solve. For P1 elements lumping keeps the convergence order of the consistent method and also allows a larger stable time step. For P2 triangles the row sums at the vertices are zero, so row-sum lumping fails and special elements with positive nodal quadrature are needed.
In plain words
In a finite element model the mass of the material is spread smoothly over each cell, so the motion of one point drags its neighbors along. Writing this down gives a table of masses that couples every point to its neighbors, and each time step must then solve a system of equations. Mass lumping moves all the mass of each cell onto its corner points, as if the material were a set of beads joined by springs. Then each point has its own mass, and a time step is just a division at each point. For the simplest elements this change costs no accuracy at all. For more refined elements it must be done with care, because a corner can end up with no mass or even a negative mass.
When it applies
- Explicit time stepping. The method of lines gives for the heat equation and for the wave equation and elastodynamics. Forward Euler and central differences need in every step, which is trivial only for a diagonal .
- Positivity. For backward Euler on the heat equation with P1 elements, the consistent mass matrix can give negative values from nonnegative data for small time steps. The lumped matrix keeps nonnegativity on meshes without obtuse angles.
- Eigenvalue problems. with a diagonal becomes a standard symmetric problem for .
Lumping needs a positive diagonal. Row sums give one for P1 and Q1 elements and for spectral elements with Gauss-Lobatto nodes, but not for P2 triangles or tetrahedra.
The template
LUMP(cells, ELEMENT-MASS, method) ▷ returns the diagonal m of M_L- 1
m <- zero vector of length N - 2
for each cell K with local-to-global map g do - 3
M_K <- ELEMENT-MASS(K) ▷ consistent element mass, exact quadrature - 4
if method = row sum then w_r <- sum_s M_K[r, s] for each local r - 5
if method = diagonal scaling then w_r <- M_K[r, r] |K| / (sum_s M_K[s, s]) - 6
if method = nodal quadrature then w_r <- the weight of the rule at node r - 7
for each local r do m[g[r]] <- m[g[r]] + w_r - 8
if some m_i <= 0 then report that this lumping is not usable for the element - 9
return m EXPLICIT-WAVE-STEP(U_old, U, m, K, F, dt) ▷ central differences for M U'' + K U = F- 10
return 2 U - U_old + dt^2 (F - K U) / m ▷ division entry by entry
For Lagrange elements the row sum of the element mass is , because the basis functions add up to . So row-sum lumping gives each node the integral of its basis function, and all three methods keep the total mass (with density ).
P1 in one dimension. On a cell of length , has row sums . On a uniform mesh an interior row of is , and the lumped matrix has on the diagonal, with at the two end nodes. The trapezoidal rule at the nodes gives the same matrix. With the lumped mass, the P1 system is the standard second-order finite difference scheme .
P1 triangles. The row sums of are , the weights of the vertex quadrature rule, which is exact for linear functions.
Classic examples
The order is kept for P1. Take on with zero boundary values and , so . On a uniform P1 mesh the nodal values of form an eigenvector of and of both mass matrices, and the semi-discrete solution decays like with and
| 1/8 | -1.262e-01 | 1.275e-01 | -9.839e-04 |
| 1/16 | -3.167e-02 | 3.175e-02 | -6.122e-05 |
| 1/32 | -7.925e-03 | 7.930e-03 | -3.822e-06 |
Both errors fall by a factor 4 per halving of , with opposite signs, since and . This is the one-mode case of the general result in Thomée's Chapter 15: for P1 elements the lumped mass method has the same error in and in as the standard Galerkin method. The average of the two mass matrices cancels the leading terms and gives for this mode.
A larger time step for waves. For the 1D wave equation with central differences, the step is stable for , where is the largest eigenvalue of . At the highest mode, , the stiffness symbol is , the consistent mass symbol is and the lumped one is . So with the consistent mass and with the lumped mass, and the stable steps are and . Lumping allows a step times larger, the CFL limit of the finite difference scheme.
Deformable bodies in graphics. Corotational FEM codes give each node a mass equal to a share of the rest area or volume of its cells, which is row-sum lumping for linear elements, and modal reduction uses the diagonal mass to turn into a standard eigenvalue problem. Brittle fracture codes that split elements at run time also prefer lumped masses, because the mass of new nodes is easy to redistribute.
Spectral elements. On cells with Gauss-Lobatto-Legendre nodes, the Gauss-Lobatto rule at the nodes gives a diagonal mass with positive weights. The rule is exact for degree , not , but the spectral element method keeps its full order, and this is why it uses those nodes. See Gauss-Lobatto quadrature.
Variations
- Row-sum lumping. . Simple, keeps the total mass, and fails when some .
- Diagonal scaling (HRZ). Hinton, Rock and Zienkiewicz (1976) take the diagonal of each and scale it so that it adds up to the mass of the cell. The weights are always positive. For P2 triangles they are at the vertices and at the edge midpoints, and for P2 tetrahedra and .
- Nodal quadrature. Use a quadrature rule whose points are the nodes. It gives a diagonal mass when the basis is nodal, and it keeps the order when the rule is accurate enough and its weights are positive. For P2 triangles no such rule exists on the six nodes, so the element is enriched: the P2 element plus the cubic bubble has seven nodes, and the rule with weights at the vertices, at the midpoints and at the centroid is exact for cubics. Cohen, Joly, Roberts and Tordjman (2001) built such enriched triangles up to higher degree for the wave equation.
- Average mass. is not diagonal, but it reduces the dispersion error of the wave equation from to in 1D, as the table shows.
Pitfalls
- Row sums for P2. On a triangle, the row sum for a vertex is , and for an edge midpoint it is . The lumped matrix is singular. On a tetrahedron the vertex row sum is , a negative mass. Line L8 exists to catch this.
- Lumping the stiffness. Only the mass matrix may be lumped. Lumping destroys consistency, since its rows add up to zero.
- Lumping where no time step needs it. For implicit time stepping the solve with costs the same whether is lumped or not, and the consistent mass is more accurate for the waves the mesh resolves well.
- Taking the 1D result as general. The gain in time step and the exact match with finite differences are 1D facts. In 2D and 3D the gain depends on the element and the mesh, so compute or bound it element by element.
Exercises
- Show that for any Lagrange element the row sum of in row is . Answer: .
- Compute the row sums of the P2 mass matrix on an interval of length , , and compare them with Simpson's rule. Answer: , , , which are Simpson's weights, so in 1D row-sum lumping of P2 works.
- Check that the seven-point rule with weights , , (times ) integrates exactly. Answer: only the centroid contributes, , and the exact value is .
- Derive the HRZ weights for the P2 triangle. Answer: the diagonal entries are at the vertices and at the midpoints, which add up to , so the scale factor is .
References
- Vidar Thomée, Galerkin Finite Element Methods for Parabolic Problems, second edition, Springer, 2006, Chapter 15 (the method of lumped masses)
- E. Hinton, T. Rock and O. C. Zienkiewicz, A note on mass lumping and related processes in the finite element method, Earthquake Engineering and Structural Dynamics 4(3) (1976) 245-249, diagonal scaling of the consistent mass matrix
- G. Cohen, P. Joly, J. E. Roberts and N. Tordjman, Higher order triangular finite elements with mass lumping for the wave equation, SIAM Journal on Numerical Analysis 38(6) (2001) 2047-2078, enriched triangular elements and positive quadrature at the nodes
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.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag 74GYE7 Edit this page History Report an error Markdown