Skip to content

Conversation

@ax3l
Copy link
Member

@ax3l ax3l commented Jul 9, 2025

The linear transport map of the quad, used in envelope tracking mode, did not scale its lengths properly when set to zero field strength and sliced for space charge effects. This fixes it.

Isolated from #1030

Author: @kyrsjo 🙏

@ax3l ax3l requested a review from cemitch99 July 9, 2025 23:45
@ax3l ax3l added bug Something isn't working bug: affects latest release Bug also exists in latest release version component: elements Elements/external fields tracking: envelope labels Jul 9, 2025
@ax3l ax3l changed the title Fix Quad Transport Map w/ Slicing Fix Quad Transport Map w/ Slicing and Zero Fields Jul 9, 2025
The linear transport map of the quad, used in envelope
tracking mode, did not scale its lengths properly when
set to zero field strength and sliced for space charge
effects. This fixes it.

Author: Kyrre Ness Sjobak <[email protected]>
Copy link
Member

@cemitch99 cemitch99 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, excellent. As pointed out - this only affects the result in envelope mode when k=0.

@ax3l ax3l enabled auto-merge (squash) July 10, 2025 00:27
@ax3l ax3l merged commit 22d6f1d into BLAST-ImpactX:development Jul 10, 2025
16 checks passed
@kyrsjo
Copy link
Contributor

kyrsjo commented Jul 10, 2025

Ah, thanks. Sorry, I got busy with other things for a few days. I started by writing tests here (not 100% finished), as you requested:
https://github.com/kyrsjo/impactx/tree/fix_transportmap_slicing

I was a little surprised by the tests living in the examples folder, and the test folder being something else...

There is also this related bug:
https://github.com/BLAST-ImpactX/impactx/pull/1030/files#r2198822227

Should that also go in a separate PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug: affects latest release Bug also exists in latest release version bug Something isn't working component: elements Elements/external fields tracking: envelope

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants