Non-Uniform Gradient and Divergence Operators
Author: Miguel A. Dumett
Date: 2025-03-23
Abstract: This document provides formulas for the mimetic difference gradient and divergence operators for non-uniform one-dimensional meshes.
Introduction
On an interval \([a,b]\), consider \(n\) equal size subintervals, each of length \(h = \frac{b-a}{n}\).
Then
the uniform node grid (with \(n+1\) points) is given by
the uniform center grid (with \(n+2\) points) is given by
Suppose a non-uniform grid on interval \([a,b]\), with \(n\) non-equal subintervals, is given by
the set of \(n+1\) nodes of the non-uniform grid,
and the corresponding \(n+2\) non-uniform centers,
Then
In 1D, the non-uniform gradient \(G_{nu}\) in terms of the uniform gradient \(G_u\) is given by
\[G_{nu} = \text{diag}((G_u X_C)^{-1}) \, G_u,\]and the 1D non-uniform divergence \(D_{nu}\) in terms of the uniform divergence \(D_u\) is given by
\[D_{nu} = \text{diag}((D_u X_N)^{-1}) \, D_u.\]Since the first and last rows of \(D_u\) are zero then the vector \(D_u X_N\) will have zeros in its first and last component and hence it will not be possible to compute the inverses of both components. To avoid these infinity values, one substitutes the first and last components of \(D_u X_N\) by ones.