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

Updated visualization scripts for beam-beam collision example #4797

Open
wants to merge 7 commits into
base: development
Choose a base branch
from

Conversation

Haavaan
Copy link

@Haavaan Haavaan commented Mar 21, 2024

We have presented here the modified full and reduced beam-beam collision diagnostics that also includes the python scripts. In the full diagnostics, we have simulated the evolution of the E, B, and Rho fields across the x and y slices. While in the reduced diagnostics, we have simulated the evolution of the number of photons emitted per beam particle and the number of secondary pairs generated per beam particle produced when two ultra-relativistic particle beams collide in a linear collider.

@ax3l ax3l requested a review from aeriforme March 25, 2024 23:02
@ax3l ax3l added the component: diagnostics all types of outputs label Mar 25, 2024
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this you didn't modify this portion of the file, but we might as well just fix it.
Can you change line 14

This solver computes the average velocity of each species, and solves the corresponding relativistic Poisson equation (see the WarpX documentation for warpx.do_electrostatic = relativistic for more detail). This solver accurately reproduced the subtle cancellation that occur for some component of the ``E + v x B`` terms which are crucial in simulations of relativistic particles.

to

This solver computes the average velocity of each species, and solves the corresponding relativistic Poisson equation (see the WarpX documentation for ``warpx.do_electrostatic = relativistic`` for more details). This solver accurately reproduces the subtle cancellation that occurs for some components of ``E + v x B``, which is crucial in simulations of relativistic particles.

@@ -68,3 +67,191 @@ The small-scale simulation has been performed with a resolution of ``nx = 64, ny
:width: 100%

Beam-beam collision benchmark against :cite:t:`ex-Yakimenko2019`.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add here a brief description of the visualization scripts?
Also, it would be nice to add an image from the full diagnostics to show what the script is supposed to produce.


# You can copy this file from Examples/Physics_applications/beam-beam_collisions/Plot_full_.py
# Contents of Plot_full_.py
from openpmd_viewer import OpenPMDTimeSeries
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix the indentation from here on, otherwise it's not recognized as part of the code block.


# You can copy this file from Examples/Physics_applications/beam-beam_collisions/Plot_reduced_.py
# Contents of Plot_reduced_.py
import numpy as np
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same indentation issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: diagnostics all types of outputs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants