General moving-window transformations in boosted-frame simulations #5226
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.
During initialization in boosted-frame simulations, the moving window, of length$L$ given in lab-frame coordinates, is resized along the direction of the boost. Currently, the code assumes that the moving window is traveling along the direction of the boost at the speed-of-light.
This PR generalizes the transformation of the moving window from the lab-frame to the boosted-frame, taking into account the direction and speed of the moving window (c.f., Eq. 1 in Ref. [1]). As an example, let's say the boosted-frame moves with speed$\beta = 0.6$ ($\beta$ , then its length in the boosted frame is $L \gamma = 1.25 L$ rather than $2 L$ , as is currently calculated.
gamma_boost = 1.25
). If the moving window also travels at speedSpecial cases for negative values of
moving_window_v
and moving windows not traveling along the boost direction were both checked. In order to have access to the moving window parameters, there needed to be some rearrangement of initialization order.[1] J.-L. Vay, Phys. Rev. Lett. 98, 130405 (2007)