Circuit 1 Discretization
Number of segments:
N1∈N
Position vectors:
{r1(i)}i=0N1wherer1(i)∈R3
Closure condition:
r1(N1)=r1(0)
Segment displacement vectors:
Δℓ1(i)=r1(i+1)−r1(i)fori=0,1,…,N1−1
Segment center points:
c1(i)=21(r1(i)+r1(i+1))fori=0,1,…,N1−1
Circuit 2 Discretization
Number of segments:
N2∈N
Position vectors:
{r2(j)}j=0N2wherer2(j)∈R3
Closure condition:
r2(N2)=r2(0)
Segment displacement vectors:
Δℓ2(j)=r2(j+1)−r2(j)forj=0,1,…,N2−1
Segment center points:
c2(j)=21(r2(j)+r2(j+1))forj=0,1,…,N2−1
Separation Vectors Between Segment Pairs
Separation vector:
Rij=c1(i)−c2(j)∈R3
for all pairs (i,j) where i∈{0,1,…,N1−1} and j∈{0,1,…,N2−1}
Distance:
Rij=∣Rij∣=Rij⋅Rij∈R
Unit vector:
R^ij=RijRij∈R3
Discrete Double Sum Formula
The total force on circuit 1 due to circuit 2 is:
F12=c2I1I2i=0∑N1−1j=0∑N2−1Rij2R^ij[2(Δℓ1(i)⋅Δℓ2(j))−3(Δℓ1(i)⋅R^ij)(Δℓ2(j)⋅R^ij)]
where F12∈R3
Data Structure Summary
| Quantity | Type | Dimension | Index Range |
|----------|------|-----------|-------------|
| r1(i) | Array of vectors | (N1+1)×3 | i=0,…,N1 |
| r2(j) | Array of vectors | (N2+1)×3 | j=0,…,N2 |
| Δℓ1(i) | Array of vectors | N1×3 | i=0,…,N1−1 |
| Δℓ2(j) | Array of vectors | N2×3 | j=0,…,N2−1 |
| c1(i) | Array of vectors | N1×3 | i=0,…,N1−1 |
| c2(j) | Array of vectors | N2×3 | j=0,…,N2−1 |
| Rij | Matrix of vectors | N1×N2×3 | (i,j) pairs |
| Rij | Matrix of scalars | N1×N2 | (i,j) pairs |
| R^ij | Matrix of vectors | N1×N2×3 | (i,j) pairs |
Notes
- Total number of pairwise interactions:
N1×N2
- Computational complexity:
O(N1⋅N2)
- The discrete sum converges to the continuous line integral as
N1,N2→∞ with proper mesh refinement
- Units remain Gaussian/CGS as in the continuous formulation