B Computing magnetic field generated by coils

The vacuum RMP field and ripple field generated by coils can be calculated in the following way.

  B.1 Magnetic field
  B.2 Magnetic vector potential
  B.3 For wires in poloial plane
  B.4 For wires along toroidal direction