Control number of FFT modes in longitudinal space charge solver#107
Open
austin-hoover wants to merge 13 commits intoPyORBIT-Collaboration:mainfrom
Open
Control number of FFT modes in longitudinal space charge solver#107austin-hoover wants to merge 13 commits intoPyORBIT-Collaboration:mainfrom
austin-hoover wants to merge 13 commits intoPyORBIT-Collaboration:mainfrom
Conversation
For some reason there is an MPI error if I call `setNumModes` when creating the `SC1D_AccNode` object. There is no error when I call this function after creating the node...
Contributor
Author
|
Example with decreasing number of modes: rotation_fft_modes.mov |
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 gives the option to restrict the number of modes used in longitudinal space charge kicks. From Chao, the formula for the energy gain from longitudinal impedance$Z_{0}^{\parallel}(\omega)$ is
From the FFT, the solver uses$N / 2$ frequencies/modes, where $N$ is the number of longitudinal bins.
PyORBIT3/src/spacecharge/LSpaceChargeCalc.cc
Lines 211 to 227 in e4ac4ce
This PR lets the user restrict the number of modes used in the energy kick, acting as a low-pass filter.