-
Notifications
You must be signed in to change notification settings - Fork 58
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
Possible deviation when interpolating the fields felt by the particles #597
Comments
Hey @XiangyanAn, Thanks for the detailed write-up, this is definitely something worth checking up. Your pdf file mentions a few different input decks - one with a circularly polarised beam, and another with the linear fields. Could you also send these if you still have them? I can have a go at recreating them if not. Cheers, |
I'm still going through your report, but from a partial read I can see an EPOCH bug in the In this simulation, we have 10 cells ranging from 0m to 10m, such that we have:
Using the developer documentation stagger guide, or Fig 3b in your report, we expect the 10 cells of For staggered field-points, the Yee grid suggests a stagger in the positive direction. If cell with index
We observe:
Even ignoring the strange value on the high With my understanding of the problem, this issue should only arise if you're using the Cheers,
|
I'll also take a look at this tomorrow. |
Thanks for your reminder. Since I wanted a simplest problem in physics to make a test, I did use the I have read the codes of 'fields.F90' and the developer documentation again and made some more tests. I now understand that the Yee grid suggests a stagger in the positive direction for staggered field-points. This means that the index of I think you are right. It is not the interpolation which is broken, but the |
I just found that the EPOCH codes are one-cell shifted when calculating the nearest boundary cell of the particles and interpolating the fields felt by the particles. Such a deviation would result in a numerical increase of a conserved quantity when the electrons interact with a circular-polarized laser. This is confirmed by reading the source code and checking the fields of the particles after setting the fields as E_{x,y,z}=B_{x,y,z}=x. The numerical increase is fixed by adding one to the variables cell_x2, cell_y2, and cell_z2.
I wrote a detailed description in the attached document.
epoch_interpolation.pdf
The text was updated successfully, but these errors were encountered: