Replies: 8 comments 2 replies
-
If your boundary conditions are not periodic, then the field interpolation will be done with no particles across the border. It is this acting as if there are no particles on the other side |
Beta Was this translation helpful? Give feedback.
-
Ok. Can one do something to make this better with |
Beta Was this translation helpful? Give feedback.
-
Just a clarification, do you mean that interpolation in |
Beta Was this translation helpful? Give feedback.
-
I am not sure if I agree with you on this. I repeated the same simulation with another PIC code (OSIRIS). Please see the figure, density is correctly initialised at the left boundary with Small fluctuations can be expected, but values differing strongly like a factor of 2 in this case and factor of 3 in #758 are problematic... |
Beta Was this translation helpful? Give feedback.
-
So the results between Currently, OSIRIS has something similar to What I would like to understand from you if this density blip at the boundary is just an artefact of the diagnostics being used? Or it is real and would be present in PIC simulation cycle manifesting into some kind of plasma dynamics (filamentation in this case)? |
Beta Was this translation helpful? Give feedback.
-
Hello. So as you can see, the density can be different depending on how you measure it. Anyway this will never impact your simulation because the density is not used to solve Maxwell's equation. Charge density doesn't have any effect on the physics in an electromagnetic PIC simulation. It is here only for diagnostics purposes. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the clear explanations, this helps me to understand the results! For me, physics is more important, so it is good to hear that it will not have impact on simulation. I did use |
Beta Was this translation helpful? Give feedback.
-
In that case they must deposit density outside of the physical domain or use some interpolation trick on the boundary. Can't be sure. |
Beta Was this translation helpful? Give feedback.
-
I know that to use built-in function, one should have at lest 3 ghost cells (2nd oder shape function), but I though defining a density profile using Python function should not have this limitation? I initialized a density profile using my own Python function, I was expecting the density to be 2 at
x=0
but it is 1. It gets 2 at the next point ofProbe
grid.I also define external field etc, using my Python profile and they appear to be correctly initialised at x=0, only the density profile is a bit weird...
Beta Was this translation helpful? Give feedback.
All reactions