Description of the desired feature:
The library already contains the function dipole.magnetic_field() to calculate the magnetic field of a single dipole, where both the positive and negative poles are at the same point q.
I would very much like to see a function to calculate the same for the case where there's a distance between the positive and negative poles. That is to say, some kind of rod/cylinder/wire, described as two end-points q1=(x1, y1, z1) and q2=(x2, y2, z2).
Otherwise, maybe point me in the right direction, where I can find the equations to implement this myself.
Description of the desired feature:
The library already contains the function
dipole.magnetic_field()to calculate the magnetic field of a single dipole, where both the positive and negative poles are at the same pointq.I would very much like to see a function to calculate the same for the case where there's a distance between the positive and negative poles. That is to say, some kind of rod/cylinder/wire, described as two end-points
q1=(x1, y1, z1)andq2=(x2, y2, z2).Otherwise, maybe point me in the right direction, where I can find the equations to implement this myself.