Skip to content

Unable to match simulation results with Biot-Savart law #601

Closed Answered by OrtnerMichael
conradtj1993 asked this question in Q&A
Discussion options

You must be logged in to vote

hi @conradtj1993

You question is well formatted, ty :) - so here is what i think:


Are you sure this is the correct Biot-Savart solution ? You have two times the same term in the denominator. What you should get is two times this instead

this is from hyperphysics, and magpylib.Loop should give exactly this.


Second thing: You have this line in your code

but you compute the field already with getH. So your field is already in kA/m. My guess is that you got the biot-savart right, but this is where your 20% come from.


Third thing:

In your code you compute the field at different positions using a loop.

Hz = np.zeros(numObs)
for ind in range(len(Hz)):
    Hz[ind] = helmholtz.getH((0,0,z[ind…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@conradtj1993
Comment options

Answer selected by OrtnerMichael
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants