desc.magnetic_fields.biot_savart

class desc.magnetic_fields.biot_savart(eval_pts, coil_pts, current)Source

Biot-Savart law following [1].

Parameters:
  • eval_pts (array-like shape(n,3)) – evaluation points in cartesian coordinates

  • coil_pts (array-like shape(m,3)) – points in cartesian space defining coil, should be closed curve

  • current (float) – current through the coil

Returns:

  • B (ndarray, shape(n,3)) – magnetic field in cartesian components at specified points

  • [1] Hanson & Hirshman, “Compact expressions for the Biot-Savart

  • fields of a filamentary segment” (2002)