Add flag to disable laser evolution#1323
Open
huixingjian wants to merge 31 commits intoHi-PACE:developmentfrom
Open
Add flag to disable laser evolution#1323huixingjian wants to merge 31 commits intoHi-PACE:developmentfrom
huixingjian wants to merge 31 commits intoHi-PACE:developmentfrom
Conversation
Co-authored-by: Alexander Sinn <[email protected]>
…pace- into huixingjian/desable_laser_evo
copy laser to next step
AlexanderSinn
approved these changes
Feb 17, 2026
MaxThevenet
reviewed
Feb 18, 2026
Member
MaxThevenet
left a comment
There was a problem hiding this comment.
Thanks for this PR! Looks good, but could you check the naming as suggested below?
| Whether the beam particles are pushed along the z-axis. The momentum is still fully updated. | ||
| Note: using ``do_z_push = 0`` results in unphysical behavior. | ||
|
|
||
| ``<beam name>.accelerate`` (`bool`) optional (default `1`) |
Member
There was a problem hiding this comment.
Is there any reason not to use this name? Would be more consistent with option above.
Suggested change
| ``<beam name>.accelerate`` (`bool`) optional (default `1`) | |
| ``<beam name>.do_uz_push`` (`bool`) optional (default `1`) |
|
|
||
| * ``lasers.solver_type`` (`string`) optional (default `multigrid`) | ||
| Type of solver for the laser envelope solver, either ``fft`` or ``multigrid``. | ||
| Type of solver for the laser envelope solver, either ``fft``, ``multigrid`` or ``disable``. |
Member
There was a problem hiding this comment.
?
Suggested change
| Type of solver for the laser envelope solver, either ``fft``, ``multigrid`` or ``disable``. | |
| Type of solver for the laser envelope solver, either ``fft``, ``multigrid`` or ``off``. |
| getWithParser(pp, "injection_type", m_injection_type); | ||
| queryWithParser(pp, "duz_per_uz0_dzeta", m_duz_per_uz0_dzeta); | ||
| queryWithParser(pp, "do_z_push", m_do_z_push); | ||
| queryWithParser(pp, "accelerate", m_acc_z); |
Member
There was a problem hiding this comment.
Likewise
Suggested change
| queryWithParser(pp, "accelerate", m_acc_z); | |
| queryWithParser(pp, "accelerate", m_do_uz_push); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces two new options,
beams.do_uz_pushandlasers_solver_type = "disable", which respectively disable beam particle acceleration and laser evolution. These features are particularly useful for nonlinear beam matching studies in regimes with strong ion motionThe implementation has been tested on Maxwell using a LPA simulation with a 200 pC, 500 GeV electron beam. The results demonstrate successful transverse matching while preserving the longitudinal phase-space distribution.