Skip to content

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