Skip to content

Computed B field too high for a solenoid #684

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

You must be logged in to vote

hi @themagpipers

You forgot the 1/L in the expected field - this will solve the problem.

Also: While your parametrization of the coil is nicely done, you also have 4000 individual Line segments. This is not a high number and for a circular coil you should probably choose t_res=n_winding * 100. I guess you chose 10 because it makes no big difference and because you realize that a large t_res makes the computation slow.

I suggests, that you use instead the Loop class. In this case you have a perfect circle, and only n_winding computations internally. Something like this:

import numpy as np
import magpylib as mag

current = 1.0
L = 150
n_winding = 400
radius = 20

coil = mag.Collection()
for z 

Replies: 1 comment 1 reply

Comment options

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

Answer selected by themagpipers
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