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

enable full uniform B field via RK integrator #368

Merged

Conversation

SeverinDiederichs
Copy link
Collaborator

@SeverinDiederichs SeverinDiederichs commented Mar 23, 2025

Previously, only a constant Bz field was available.

As needed for the B5 example, a full uniform magnetic field is required. There was an not-up-to-date analytical Bany field integrator. Since it was not up to date, here I propose to simply use the RK integrator.

Now, similar to the GeneralMagneticField, a UniformMagneticField is created on the host, and passed to the device.

This cleans up quite a bit of logic on the B field.

@phsft-bot
Copy link

Can one of the admins verify this patch?

@SeverinDiederichs SeverinDiederichs merged commit 8ee04c2 into apt-sim:master Mar 25, 2025
3 checks passed
@SeverinDiederichs SeverinDiederichs deleted the enable_full_uniform_bfield branch March 25, 2025 10:34
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

Successfully merging this pull request may close these issues.

3 participants