Skip to content

Constant/static overlayed field (i.e. earth magnetic field) #680

Answered by Alexboiboi
BastelBaus asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BastelBaus,

Thanks for the kind words, happy to see that you appreciate our work ;)

There is a special object type CustomSource that allows to do exactly what you are looking for! A CustomSource object behaves like any other object of the library and can be positioned, rotated, be part of Collection and called in a getB/getH context.

Important

Be aware that changing the object orientation will also affect the orientation of the produced field, since the field function output is always considered as local. The Magpylib library makes the necessary coordinates transformations on its own when calling getB/getH.

The straightforward way

You can create a CustomSource object directly and def…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@BastelBaus
Comment options

@OrtnerMichael
Comment options

@BastelBaus
Comment options

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