Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multi-magnet systems with the main magnetforces approach #10

Open
wspr opened this issue Dec 12, 2018 · 0 comments
Open

Allow multi-magnet systems with the main magnetforces approach #10

wspr opened this issue Dec 12, 2018 · 0 comments

Comments

@wspr
Copy link
Member

wspr commented Dec 12, 2018

Currently magnetforces takes a single fixed magnet and a single floating magnet, which are defined using object-like structures.

There's no reason that magnet_fixed couldn't be an array of structures, so allow for multiple magnets. This would be a slightly different use case than the multipoleforces code but the latter could benefit from a rework to the former.

To make this work, magnets need to be able locate themselves with a relative offset from a local coordinate system.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant