Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #413: limit vacuum step size in magnetic field #415

Merged
merged 1 commit into from
Mar 5, 2018

Commits on Mar 5, 2018

  1. Fix #413: limit vacuum step size in magnetic field

    Adjust the charged particle step routine for transport in vacuum when
    there is an electromagnetic field (emf). The existing logic failed
    because the emf step size restriction was not taken into account before
    the howfar call. Hence the howfar method tracked the particle in a
    single straight step across the entire vacuum region, causing erroneous
    region changes and discards.
    
    Also check if the particle in fact entered a new region before calling
    the macro to change the region, since charged particle may take many
    steps through a vacuum region when there is a field.
    
    Remove redundant step size restriction code in the vacuum emf transport
    macro, now that the field step size restriction in vacuum has been moved
    ahead of howfar in the electr subroutine.
    ftessier committed Mar 5, 2018
    Configuration menu
    Copy the full SHA
    ae193de View commit details
    Browse the repository at this point in the history