The averaged pair operator

Provedmachine-checked: its own exact check passesid simulations.averaged-pair-operator, version 6

The averaged pair operator $P_{ij}$ is symmetric, so the contracted forces conserve momentum and, step by step, energy; it is the sheet projection for parallel normals and is idempotent only when the normals agree up to sign.

In plain words

The simulations model three-dimensional dark matter as sheets that can only push along their own surface. Forces between two such particles are filtered through an averaged projection that keeps the part lying in the sheets. This result checks that the filter still conserves momentum and, within each step, energy, that it is an exact projection when the sheets are parallel, and that it is only a partial one when they are not.

Statement

  1. (i) $P_{ij} = P_{ji}$, and the contracted pair forces conserve momentum exactly and, in the equations before time integration and with the smoothing lengths held fixed within a step, total energy.
  2. (ii) For parallel normals $\mathbf{n}_{i} = \mathbf{n}_{j} = \mathbf{n}$, $P_{ij}$ is the projection onto the sheet: in the geometric algebra of $\mathbb{R}^{3}$ it is the rejection $\mathbf{v} \mapsto (\mathbf{v}\wedge\mathbf{n})\,\mathbf{n}$, and it annihilates $\mathbf{n}$.
  3. (iii) For orthogonal normals it keeps half of each normal component; its eigenvalues are then $1$, $\tfrac{1}{2}$, $\tfrac{1}{2}$, so it is idempotent only when $\mathbf{n}_{i} = \pm\mathbf{n}_{j}$.

Proof

(i) $P_{ij}$ is symmetric in $i$ and $j$ and $\mathbf{g}_{ij} = -\mathbf{g}_{ji}$, so the force of $j$ on $i$, $-m_{i}m_{j}F_{ij}P_{ij}\mathbf{g}_{ij}$ with $F_{ij}$ the symmetric bracket, is minus the force of $i$ on $j$. The kinetic power of the pair is $-m_{i}m_{j}F_{ij}\,\mathbf{v}_{ij}\cdot P_{ij}\mathbf{g}_{ij}$, and the two internal-energy terms sum to $+m_{i}m_{j}F_{ij}\,\mathbf{v}_{ij}\cdot P_{ij}\mathbf{g}_{ij}$, since $\mathbf{v}_{ji}\cdot P_{ji}\mathbf{g}_{ji} = \mathbf{v}_{ij}\cdot P_{ij}\mathbf{g}_{ij}$ and the viscous term is split equally. (ii) With $Q(\mathbf{n}) = \mathbf{n}\mathbf{n} = 1$ (The product of two vectors) and $\mathbf{v}\mathbf{n} = \mathbf{v}\cdot\mathbf{n} + \mathbf{v}\wedge\mathbf{n}$ (A vector times a multivector), $(\mathbf{v}\wedge\mathbf{n})\mathbf{n} = (\mathbf{v}\mathbf{n} - \mathbf{v}\cdot\mathbf{n})\mathbf{n} = \mathbf{v} - (\mathbf{v}\cdot\mathbf{n})\mathbf{n}$, which is $P_{ij}(\mathbf{v})$ for $\mathbf{n}_{i} = \mathbf{n}_{j} = \mathbf{n}$. (iii) For $\mathbf{n}_{i}\perp\mathbf{n}_{j}$, $P_{ij}\mathbf{n}_{i} = \tfrac{1}{2}\mathbf{n}_{i}$, $P_{ij}\mathbf{n}_{j} = \tfrac{1}{2}\mathbf{n}_{j}$ and $P_{ij}$ fixes the direction dual to $\mathbf{n}_{i}\wedge\mathbf{n}_{j}$, $(\mathbf{n}_{i}\wedge\mathbf{n}_{j})I_{3}$ with $I_{3}$ the pseudoscalar of $\Cl(3,0)$, so $P_{ij}^{2} \ne P_{ij}$; in general $P_{ij}$ is idempotent only when $(\mathbf{v}\cdot\mathbf{n}_{i})\mathbf{n}_{i} = (\mathbf{v}\cdot\mathbf{n}_{j})\mathbf{n}_{j}$ for every $\mathbf{v}$, that is $\mathbf{n}_{i} = \pm\mathbf{n}_{j}$. Not covered by (i): variable smoothing lengths without correction terms, and what acts after these equations (the integrator, the energy floor and cooling). The script checks (i) on a rational instance with distinct normals and viscosity, (ii) exactly in the blade engine, and (iii) in exact rationals.

Rests on

Used by

none

Checks

Run them on a clone of the repository: python -m tp check-one simulations.averaged-pair-operator --store store

Credit

Leon Butler (idea, direction and review); Claude Fable 5 (mathematics and drafting); Claude Opus 5.5 (consistency pass, the pair operator written as a linear map of vectors, the cross product as the dual of the outer product, version 6).