Skip to content

Matching Staggered Field with Charge on the Grid #685

Answered by Status-Mirror
rmcg15 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Ryan,

I'd advise caution in that approach. You may be able to set up your system so it has a perfect initial charge distribution, but the steps are still evaluated using cell-discretised EM fields and current densities. In my experience, noise in the current densities (and hence the fields) are unavoidable in PIC codes. I think your safest bet would be to reduce the cell-size in your current set-up.

If your bunch has width 30 microns in a simulation with a 3 micron cell size, that's only 10 cells across. The particle-shape overflow would be an extra cell on each side, so a 20% modification to your intended shape.

If your simulations are quite expensive in 2D, it might be worth testing …

Replies: 3 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@rmcg15
Comment options

@Status-Mirror
Comment options

@rmcg15
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@rmcg15
Comment options

@Status-Mirror
Comment options

@rmcg15
Comment options

@Status-Mirror
Comment options

Answer selected by rmcg15
@rmcg15
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants