Mimetic Discretization of the Integration by Parts Formula#
The divergence theorem states that
where the boundary integral represents the flux through \(\partial \Omega\).
In one dimension, this reduces to the familiar integration by parts (IBP) formula:
where the boundary term is \(\big[ u(x)\, q(x) \big]_a^b = u(b)q(b) - u(a)q(a)\).
If the boundary term vanishes (e.g., homogeneous Dirichlet or periodic boundary conditions), we obtain the following
and let
be discrete fields, where \(\mathcal{F}_h\) denotes the discrete space associated with face-centered (vector) quantities, and \(\mathcal{C}_h\) the space associated with cell-centered (scalar) quantities.
Define the one-dimensional mimetic operators divergence and gradient:
The weighted inner products on \(\mathcal{F}_h\) and \(\mathcal{C}_h\) are induced by diagonal, positive-definite matrices \(P\) and \(Q\), respectively.
Then, the discrete analog of (3) is given by
or, in matrix form,
The example integration1D.m illustrates how the weight matrix \(Q\) can be used to approximate the integral of a Ricker wavelet.