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

Option to have fixed grid in x and y when using PIC space charge #126

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tprebiba
Copy link
Contributor

Description

A few changes in the xfields/config_tools/spacecharge_config_tools.py file to have the option of a fixed transverse grid for the PIC calculations. Having a fixed grid, is sometimes desirable, for example when the beam size and shape changes considerably. With these changes, one can define a grid that fills the physical aperture.

Changes made:

  1. In the replace_spacecharge_with_PIC I added two additional arguments grid_extend_in_x=None, grid_extend_in_y=None. They represent the extend of the horizontal (vertical) grid in meters in both positive and negative x-values (y-values), i.e. a fixed grid. If provided, they will be used instead of n_sigmas_range_pic_x (y) and n_lims_x (y).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant