torus_solver.biot_savart¶
- torus_solver.biot_savart.biot_savart_surface(surface, K, eval_points, *, mu0=1.2566370614359173e-06, eps=1e-09, chunk_size=256)[source]¶
Magnetic field B (Tesla) from a surface current density K (A/m).
In continuous form:
B(x) = μ0/(4π) ∬ K(r’) × (x-r’) / norm(x-r’)^3 dA’
Notes
eps is a small softening length to avoid numerical issues when points are extremely close to the surface.
This routine is JAX-differentiable w.r.t. K and eval_points.
- Return type:
Array- Parameters:
surface (TorusSurface)
K (Array)
eval_points (Array)
mu0 (float)
eps (float)
chunk_size (int | None)