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

Docs: Thomson Parabola Spectrometer example #5058

Merged
merged 37 commits into from
Nov 15, 2024

Conversation

aeriforme
Copy link
Member

This PR adds a new example where different ion species travel through a Thomson Parabola Spectrometer and are collected at a screen.
The example can be found in the PhysicsApplications/thomson_parabola_spectrometer folder.

@aeriforme aeriforme requested a review from ax3l July 18, 2024 01:24
@aeriforme aeriforme added the component: documentation Docs, readme and manual label Jul 18, 2024
Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

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

Hi @aeriforme ! Thanks a lot for this PR! I've left a couple of comments.
In addition we should consider (and I don't have an immediate answer):

  • where should we store the figures (our current policy forbids files that are not inputfiles, scripts or README in the example folder)
  • if this example should also become a CI test

Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

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

Thanks a lot for this new example, @aeriforme .

I left very few comments, but I think that this PR could be merged very soon.

Regression/WarpX-tests.ini Outdated Show resolved Hide resolved
Comment on lines 188 to 195
diag1.diag_type = Full
diag1.fields_to_plot = Ex Bx
diag1.format = openpmd
diag1.intervals = 100
diag1.openpmd_backend = bp
diag1.write_species = 1
diag1.species = hydrogen1_1 carbon12_6 carbon12_4
diag1.dump_last_timestep = 1
Copy link
Member

Choose a reason for hiding this comment

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

diag1 plots the simulation results also at timestep 0, which is what diag0 does. Is this the intended behavior?

Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

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

Hi @aeriforme ! I have only one tiny comment. Besides of this comment, the PR looks very good.

diag1.diag_type = Full
diag1.fields_to_plot = Ex Bx
diag1.format = openpmd
diag1.intervals = 0
Copy link
Member

@lucafedeli88 lucafedeli88 Aug 27, 2024

Choose a reason for hiding this comment

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

Do you mean at time zero (0:0 could be more readable, I think) or "at every timestep" (in which case I would suggest 1)?

@lucafedeli88
Copy link
Member

@aeriforme , could you please fix the merge conflicts?

Copy link
Member

@lucafedeli88 lucafedeli88 left a comment

Choose a reason for hiding this comment

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

Great PR, @aeriforme .
I left a comment because it seems to me that some comment lines in the inputfile got mixed up, but otherwise it looks good to me

Comment on lines 34 to 36
# we assume that all the species have a
# _carbon12_6 means carbon ion with 12 nucleons, of which 6 protons
# uniform energy distribution in [0.5*Emax,Emax]
Copy link
Member

Choose a reason for hiding this comment

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

There seems to be something wrong with this comment.

@lucafedeli88 lucafedeli88 merged commit abf12de into ECP-WarpX:development Nov 15, 2024
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: documentation Docs, readme and manual
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants