Skip to content

Comments

enable full uniform B field via RK integrator#368

Merged
SeverinDiederichs merged 2 commits intoapt-sim:masterfrom
SeverinDiederichs:enable_full_uniform_bfield
Mar 25, 2025
Merged

enable full uniform B field via RK integrator#368
SeverinDiederichs merged 2 commits intoapt-sim:masterfrom
SeverinDiederichs:enable_full_uniform_bfield

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