Skip to content
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

Density jump in cylindrical RZ simulations #4700

Open
jhornung-gh opened this issue Feb 16, 2024 · 3 comments
Open

Density jump in cylindrical RZ simulations #4700

jhornung-gh opened this issue Feb 16, 2024 · 3 comments
Assignees
Labels
geometry: RZ axisymmetric 2D and quasi-3D

Comments

@jhornung-gh
Copy link

Hello,

I am completely new to cylindrical PIC simulations and I have an issue with the density profile around r = 0. Maybe this is a known Issue and you can quickly give me some advise on how to resolve it.

I see an increased density peak around r =0 which is more than one order of magnitude higher than the surrounding density (see following image). I attached a zoom-in on the electron density for different modes (0 and 1, in this order) at a timestep of 20000, however this feature, desipte a lower amplitude, is already visible at timestep 0.

e_dens_0_20000
e_dens_1_20000

The figures were generated using the openpmd-viewer with a resolution in radial direction of 94 nm and a total of 32 particles per cell (num_particles_per_cell_each_dim = 2 8 2)

Increasing the particle number and reducing the resolution in r-direction did not resolve the issue and I don't see this feature in the electric field. Could it be an issue with the boundary conditions? I also attached you the input file for this simulation.

example.txt

Thank you very much!

@aveksler1
Copy link
Contributor

Hi,

By how much did you increase the particles per cell? Cylindrical RZ simulations are prone to noise near the r=0 axis. I've typically had to run simulations with PPC's > 300 to see reduction in the noise, but I have never been able to eliminate the issue completely.

@jhornung-gh
Copy link
Author

Hi,
thank you for your response! We only increased it by a factor of 2, going to 300 ppc would make the simulation way to heavy. Do you know if it strongly influences the reliability of the simulation, especially with respect to the resultings particle spectra?

@ax3l ax3l added the geometry: RZ axisymmetric 2D and quasi-3D label Feb 21, 2024
@aveksler1
Copy link
Contributor

@jhornung-gh In my particular case no, but I cannot speak past that, sorry. Maybe you could try to increase PPC by a factor of 2/4/8/... and seeing if your results are converged?

@RemiLehe RemiLehe self-assigned this Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
geometry: RZ axisymmetric 2D and quasi-3D
Projects
None yet
Development

No branches or pull requests

4 participants