# Mimetic interpolation

In mathematics, mimetic interpolation is a method for interpolating differential forms. In contrast to other interpolation methods, which estimate a field at a location given its values on neighboring points, mimetic interpolation estimates the field's $k$-form given the field's projection on neighboring grid elements. The grid elements can be grid points as well as cell edges or faces, depending on $k=0,1,2,\cdots$.
Mimetic interpolation is particularly relevant in the context of vector and pseudo-vector fields as the method conserves line integrals and fluxes, respectively.

## Interpolation of integrated forms

Let $\omega ^{k}$ be a differential $k$-form, then mimetic interpolation is the linear combination
${\bar {\omega }}^{k}=\sum _{i}\left(\int _{M_{i}}\omega ^{k}\right)\phi _{i}^{k}$
where ${\bar {\omega }}^{k}$ is the interpolation of $\omega ^{k}$, and the coefficients $\int _{M_{i}}\omega ^{k}$ represent the strengths of the field on grid element $M_{i}$. Depending on $k$, $M_{i}$ can be a node ($k=0$), a cell edge ($k=1$), a cell face ($k=2$) or a cell volume ($k=3$). In the above, the $\phi _{i}^{k}$ are the interpolating $k$-forms, which are centered on $M_{i}$ and decay away from $M_{i}$ in a way similar to the tent functions. Examples of $\phi _{i}^{k}$ are the Whitney forms for simplicial meshes in $n$ dimensions.
An important advantage of mimetic interpolation over other interpolation methods is that the field strengths $\int _{M_{i}}\omega ^{k}$ are scalars and thus coordinate system invariant.

## Interpolating forms

In many cases, it is desirable for the interpolating forms $\phi _{i}^{k}$ to pick the field's strength on particular grid elements without interference from other $\phi _{j}^{k}$. This allows one to assign field values to specific grid elements, which can then be interpolated in-between. A common case is linear interpolation for which the interpolating functions ($0$-forms) are zero on all nodes except on one, where the interpolating function is one. A similar construct can be applied to mimetic interpolation
$\int _{M_{j}}\phi _{i}^{k}=\delta _{ij}.$
That is, the integral of $\phi _{i}^{k}$ is zero on all cell elements, except on $M_{i}$ where the integral returns one. For $k=0$ this amounts to $\phi _{i}^{0}(x_{j})=\delta _{ij}$ where $x_{j}$ is a grid point. For $k=1$ the integral is over edges and hence the integral $\int _{M_{j}}\phi _{i}^{1}$ is zero expect on edge $M_{i}$. For $k=2$ the integral is over faces and for $k=3$ over cell volumes.

## Conservation properties

Mimetic interpolation respects the properties of differential forms. In particular, Stokes' theorem
$\int _{M}{\overline {d\omega ^{k}}}=\int _{\partial M}{\bar {\omega }}^{k}$
is satisfied with ${\overline {d\omega ^{k}}}$ denoting the interpolation of $d\omega ^{k}$. Here, $d$ is the exterior derivative, $M$ is any manifold of dimensionality $k$ and $\partial M$ is the boundary of $M$. This confers to mimetic interpolation conservation properties, which are not generally shared by other interpolation methods.

## Commutativity between the interpolation operator and the exterior derivative

To be mimetic, the interpolation must satisfy
$I_{k+1}(d\omega ^{k})=d(I_{k}\omega ^{k})$
where $I_{k}$ is the interpolation operator of a $k$-form, i.e. ${\bar {\omega }}^{k}=I_{k}\omega ^{k}$. In other words, the interpolation operators and the exterior derivatives commute. Note that different interpolation methods are required for each type of form ($k=0,1,\cdots$), $I_{k+1}\neq I_{k}$. The above equation is all that is needed to satisfy Stokes' theorem for the interpolated form
$\int _{M}{\overline {d\omega ^{k}}}=\int _{M}I_{k+1}(d\omega ^{k})=\int _{M}d(I_{k}\omega ^{k})=\int _{\partial M}I_{k}\omega ^{k}=\int _{\partial M}{\bar {\omega }}^{k}.$
Other calculus properties derive from the commutativity between interpolation and $d$. For instance, $d^{2}\omega =0$,
$\int _{M}I_{k+2}(d^{2}\omega ^{k})=\int _{M}d(I_{k+1}d\omega ^{k})=\int _{\partial M}I_{k+1}d\omega ^{k}=\int _{\partial M}d(I_{k}\omega ^{k})=0.$
The last step gives zero since $\int _{\partial M}d(\cdot )=0$ when integrated over the boundary $\partial M$.

## Projection

The interpolated ${\bar {\omega }}^{k}$ is often projected onto a target, $k$-dimensional, oriented manifolds $T$,$\int _{T}{\bar {\omega }}^{k}=\sum _{i}\left(\int _{M_{i}}\omega ^{k}\right)\left(\int _{T}\phi _{i}^{k}\right).$For $k=0$ the target is a point, for $k=1$ it is a line, for $k=2$ an area, etc.

## Applications

Many physical fields can be represented as $k$-forms. When discretizing fields in numerical modeling, each type of $k$-form often acquires its own staggering in accordance with numerical stability requirements, e.g. the need to prevent the checkerboard instability. This led to the development of the exterior finite element and discrete exterior calculus methods, both of which rely on a field discretization that are compatible with the field type.
The table below lists some examples of physical fields, their type, their corresponding form and interpolation method, as well as software that can be leveraged to interpolate, remap or regrid the field:
| field example | field type | k-form equivalent | target | staggering | Interpolation method (example) | example of software |
| temperature | scalar | 0-form | point | nodal | bilinear, trilinear | ESMF |
| electric field | vector | 1-form | line | edge | edge | MINT |
| magnetic field | pseudo-vector | 2-form | area | face | face | MINT |
| density | pseudo-scalar | 3-form | volume | cell | area weighted, conservative | SCRIP, ESMF |

## Example

Consider quadrilateral cells in two dimensions with their node indexed $i=0,1,2,3$ in the counterclockwise direction. Further, let $\xi _{1}$ and $\xi _{2}$ be the parametric coordinates of each cell ($0\leq \xi _{1},\xi _{2}\leq 1$). Then${\begin{aligned}\phi _{0}^{0}&=(1-\xi _{1})(1-\xi _{2})\\[0.6ex]\phi _{1}^{0}&=\xi _{1}(1-\xi _{2})\\[0.6ex]\phi _{2}^{0}&=\xi _{1}\xi _{2}\\[0.6ex]\phi _{3}^{0}&=(1-\xi _{1})\xi _{2}.\end{aligned}}$
are the bilinear interpolating forms of $I_{0}$ in the unit square ($\xi _{1},\xi _{2}$). The corresponding $I_{1}$ edge interpolating forms are
${\begin{aligned}\phi _{0}^{1}&=(1-\xi _{2})d\xi _{1}\\[0.6ex]\phi _{1}^{1}&=\xi _{1}d\xi _{2}\\[0.6ex]\phi _{2}^{1}&=\xi _{2}d\xi _{1}\\[0.6ex]\phi _{3}^{1}&=(1-\xi _{1})d\xi _{2},\end{aligned}}$
were we assumed the edges to be indexed in counterclockwise direction and with the edges pointing to the east and north. At lowest order, there is only one interpolating form for $I_{2}$,
$\phi _{0}^{2}=d\xi _{1}\wedge d\xi _{2},$
where $\wedge$ is the wedge product.
We can verify that the above interpolating forms satisfy the mimetic conditions $I_{1}d\omega ^{0}=d(I_{0}\omega ^{0})$ and $d(I_{1}\omega ^{1})=I_{2}d\omega ^{1}$. Take for instance,
${\begin{aligned}d(I_{0}\omega ^{0})&=d\left(f_{0}(1-\xi _{1})(1-\xi _{2})+f_{1}\xi _{1}(1-\xi _{2})+f_{2}\xi _{1}\xi _{2}+f_{3}(1-\xi _{1})\xi _{2}\right)\\[0.6ex]&=(f_{1}-f_{0})(1-\xi _{2})d\xi _{1}+(f_{2}-f_{1})\xi _{1}d\xi _{2}+(f_{2}-f_{3})\xi _{2}d\xi _{1}+(f_{3}-f_{0})(1-\xi _{1})d\xi _{2}\\[0.6ex]&=(f_{1}-f_{0})\phi _{0}^{1}+(f_{2}-f_{1})\phi _{1}^{1}+(f_{2}-f_{3})\phi _{2}^{1}+(f_{3}-f_{0})\phi _{3}^{1}\\[0.6ex]&=I_{1}d\omega ^{0}\end{aligned}}$where $f_{0}=\omega ^{0}(0,0)$, $f_{1}=\omega ^{0}(1,0)$, $f_{2}=\omega ^{0}(1,1)$ and $f_{3}=\omega ^{0}(0,1)$ are the field values evaluated at the corners of the quadrilateral in the unit square space. Likewise, we have
${\begin{aligned}d(I_{1}\omega ^{1})&=d(g_{0}(1-\xi _{2})d\xi _{1}+g_{1}\xi _{1}d\xi _{2}+g_{2}\xi _{2}d\xi _{1}+g_{3}(1-\xi _{1})d\xi _{2})\\[0.6ex]&=(g_{0}+g_{1}-g_{2}-g_{3})d\xi _{1}\wedge d\xi _{2}\\[0.6ex]&=I_{2}d\omega ^{1}\end{aligned}}$ with $g_{i}=\int _{M_{i}}\omega ^{1}$, $i\in \{0,1,2,3\}$, being the 1-form $\omega ^{1}$projected onto edge $i$. Note that $g_{i}$ is also known as the pullback. If $F:\mathbb {R} \rightarrow \mathbb {R} ^{2}$ is the map that parametrizes edge $i$, $x=F_{i}(t)$, $0\leq t\leq 1$, then $g_{i}=\int {F_{i}}^{*}\omega ^{1}$where the integration is performed in $t$ space. Consider for instance edge $i=2$ , then $F_{2}(t)=x_{3}+t(x_{2}-x_{3})$ with $x_{2}$ and $x_{3}$ denoting the start and points. For a general 1-form $\omega ^{1}=a(x)d\xi _{1}+b(x)d\xi _{2}$, one gets $g_{2}=\int _{0}^{1}\left(a(t){\frac {\partial \xi _{1}}{\partial t}}+b(t){\frac {\partial \xi _{2}}{\partial t}}\right)dt$.