The equations of tree_d_3d.strip , declared on the code that implements them and checked by the tests.
Field and potential of line charges between plates at x = 0 and x = L.
map ζ = e i π z / L , z = x + i y : 0 < x < L → Im ζ > 0 , x = 0 , L → Im ζ = 0 \zeta = e^{i\pi z/L}, \qquad z = x + iy: \quad 0 < x < L \ \to\ \operatorname{Im}\zeta > 0, \quad x = 0, L \ \to\ \operatorname{Im}\zeta = 0 ζ = e iπ z / L , z = x + i y : 0 < x < L → Im ζ > 0 , x = 0 , L → Im ζ = 0 green ϕ ( z ) = − 2 k e ∑ j q j ln ∣ ζ − ζ j ζ − ζ ˉ j ∣ = − 2 k e ∑ j q j ln ∣ sin ( ( z − z j ) / 2 a ) sin ( ( z + z ˉ j ) / 2 a ) ∣ , a = L π \phi(z) = -2k_e\sum_j q_j \ln\left|\frac{\zeta - \zeta_j}{\zeta - \bar\zeta_j}\right| = -2k_e\sum_j q_j \ln\left|\frac{\sin\big((z - z_j)/2a\big)}{\sin\big((z + \bar z_j)/2a\big)}\right|, \qquad a = \frac{L}{\pi} ϕ ( z ) = − 2 k e j ∑ q j ln ζ − ζ ˉ j ζ − ζ j = − 2 k e j ∑ q j ln sin ( ( z + z ˉ j ) /2 a ) sin ( ( z − z j ) /2 a ) , a = π L field E x − i E y = 2 k e W ′ ( ζ ) i π L ζ , W = ∑ j q j [ ln ( ζ − ζ j ) − ln ( ζ − ζ ˉ j ) ] E_x - iE_y = 2k_e\, W'(\zeta)\, \frac{i\pi}{L}\zeta, \qquad W = \sum_j q_j \big[\ln(\zeta - \zeta_j) - \ln(\zeta - \bar\zeta_j)\big] E x − i E y = 2 k e W ′ ( ζ ) L iπ ζ , W = j ∑ q j [ ln ( ζ − ζ j ) − ln ( ζ − ζ ˉ j ) ] Assumes line charges strictly between grounded plates at x = 0 x = 0 x = 0 and x = L x = L x = L (ϕ = 0 \phi = 0 ϕ = 0 there exactly), open in y y y one image − q j -q_j − q j at ζ ˉ j \bar\zeta_j ζ ˉ j per charge: one free-space log sum over 2 N 2N 2 N sources in the mapped plane, by the FMM (order 14, θ \theta θ 0.5) or directly probes at arbitrary points use the Barnes-Hut walk in the mapped plane Built from Potential (V) and field (V/m, shape (2, N)) acting on every charge.
self term E x − i E y + = 2 k e q i ζ ′ ′ 2 ζ ′ = i π k e q i L , ϕ − = 2 k e q i ln ∣ ζ ′ ( z i ) ∣ = 2 k e q i ln π ∣ ζ i ∣ L E_x - iE_y \mathrel{+}= 2k_e q_i\,\frac{\zeta''}{2\zeta'} = \frac{i\pi k_e q_i}{L}, \qquad \phi \mathrel{-}= 2k_e q_i \ln|\zeta'(z_i)| = 2k_e q_i \ln\frac{\pi|\zeta_i|}{L} E x − i E y + = 2 k e q i 2 ζ ′ ζ ′′ = L iπ k e q i , ϕ − = 2 k e q i ln ∣ ζ ′ ( z i ) ∣ = 2 k e q i ln L π ∣ ζ i ∣ image force E x = − π k e q L cot π x L , E y = 0 (a lone charge) E_x = -\frac{\pi k_e q}{L}\cot\frac{\pi x}{L}, \qquad E_y = 0 \qquad \text{(a lone charge)} E x = − L π k e q cot L π x , E y = 0 (a lone charge) softening Δ ϕ = − k e q ln r 2 + ε 2 r 2 , Δ E = 2 k e q d ( 1 r 2 + ε 2 − 1 r 2 ) , r < c ε \Delta\phi = -k_e q \ln\frac{r^2 + \varepsilon^2}{r^2}, \qquad \Delta\mathbf E = 2k_e q\, \mathbf d \left(\frac{1}{r^2 + \varepsilon^2} - \frac{1}{r^2}\right), \qquad r < c\,\varepsilon Δ ϕ = − k e q ln r 2 r 2 + ε 2 , Δ E = 2 k e q d ( r 2 + ε 2 1 − r 2 1 ) , r < c ε Assumes a charge's own term ln ( ζ − ζ i ) \ln(\zeta - \zeta_i) ln ( ζ − ζ i ) is dropped from the sum and its regular part ln ζ − ζ i z − z i → ln ζ ′ ( z i ) \ln\frac{\zeta - \zeta_i}{z - z_i} \to \ln\zeta'(z_i) ln z − z i ζ − ζ i → ln ζ ′ ( z i ) restored: the image force of the plates plus all other charges and their images softening has no fixed image in the mapped plane (∣ d ζ / d z ∣ = π ∣ ζ ∣ / L |d\zeta/dz| = \pi|\zeta|/L ∣ d ζ / d z ∣ = π ∣ ζ ∣/ L ): pairs closer than c ε c\,\varepsilon c ε (c c c = cutoff = 6) in the physical plane get the free-space difference; beyond, the neglected change is below 1 / ( 1 + c 2 ) 1/(1 + c^2) 1/ ( 1 + c 2 ) of a pair field a lone charge at mid-gap feels no force