-
Hello, Here is the section of code that I used: bfield = picmi.ConstantAppliedField(Bx=0.1,
lower_bound=[-0.5, -1, +0],
upper_bound=[+0.5, +3, +3]) The grid used is here: grid = picmi.Cartesian3DGrid(number_of_cells = [nx, ny, nz],
lower_bound = [-0.5, -1, -2],
upper_bound = [+0.5, +3, +3],
lower_boundary_conditions = ['open', 'open', 'open'],
upper_boundary_conditions = ['open', 'open', 'open'],
lower_boundary_conditions_particles = ['absorbing', 'absorbing', 'absorbing'],
upper_boundary_conditions_particles = ['absorbing', 'absorbing', 'absorbing'],
warpx_max_grid_size=16) I thought this would give me a b-field in all areas of the grid where z>0, but when I run the code all particles are affected in all areas of the grid. I don't know if I'm using the code snippet incorrectly or if I need to set a boundary for the field somewhere else. Any help would be appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Looking into the source code on the WarpX readthedocs, it looks like the lower and upper bounds are not used by warpx when running PICMI in python. I have changed to an analytic field to get around this issue. |
Beta Was this translation helpful? Give feedback.
Looking into the source code on the WarpX readthedocs, it looks like the lower and upper bounds are not used by warpx when running PICMI in python. I have changed to an analytic field to get around this issue.