The equations of tree_d_3d.smooth, declared on the code that implements them and checked by the tests.
Energy, potential and field with the boxes attached to the centre of mass.
- frame
- U(x)=Utree(x−(c(x)−c0)),c=∑imi∑imixi
- field
- Ei→Ei−MmiqiFnet,Fnet=j∑qjEj
- Assumes
- the boxes follow the centre of mass, so U is translation invariant and its exact gradient has zero net force: energy and momentum both conserved by a symplectic integrator
- Built from
Potential energy and exact-gradient forces of line charges on a BoxTree.
- membership
- wL(z)=e∈edges∏s(te),s(t)=6u5−15u4+10u3,u=2t+1,te=bsigned distance into the leaf
- energy
- U=−2routes∑wmwm′qiqjΦ(zi−zj)
- force
- Fi=−∂xi∂U=2qim∋i∑[wmGm+Φm∇wm]
- softening
- Φ(r)={lna−1211+21(3u−23u2+31u3)lnru=r2/a2<1r≥a,∇Φ=a2(3−3u+u2)d (r<a)
- Assumes
- a NumPy prototype for a few thousand line charges; static square cells (
BoxTree), the M2L, L2L and L2P of FlatQuadtree.fmm in complex NumPy - s(t)+s(−t)=1 (C2): the weights are a partition of unity for a band b≤ the smallest leaf half-width; edges on the root boundary keep weight 1; b=0 is hard membership
- the Φm∇wm term makes F the exact gradient of U; the triangle truncation (
symmetric=True) makes mutual pair forces exactly antisymmetric - compact softening, a cloud of density (1−r2/a2)2, a=ε: the far field is exactly the point charge's
- References