Skip to content

Conversation

@grobertdautun
Copy link
Contributor

@grobertdautun grobertdautun commented Feb 4, 2025

This PR implements the options Ex Ey Ez Bx By and Bz on the particles diagnostics to output the electromagnetic fields seen by the particles.

I added a test case test_2d_particle_EM_diagnostics with its analysis. This case represents a single particle fixed in a box traversed by a laser pulse, and the analysis verifies that the fields are matching the theoretical ones.

There are two limitations to this diagnostics that should be updated later :

  • the external fields are not yet written on the diagnostics as it would require a change in the getExternalEBField template
  • it only works without mesh refinement

@ax3l ax3l added the component: diagnostics all types of outputs label Feb 4, 2025
@ax3l ax3l requested review from RemiLehe and atmyers February 4, 2025 18:39
@EZoni
Copy link
Member

EZoni commented Apr 8, 2025

Thank you, @grobertdautun!

We just merged in development a big updated of the physical constants as well as an update of the Ubuntu version used in our CI Azure pipelines, see #5661.

Could you please merge development in this PR's head branch diags_em_on_particles_2, to reflect that change and possibly update any CI test's checksums?

…stics.json


Update checksum using result obtained by github runner (I get the same on my local machine)
@lucafedeli88 lucafedeli88 self-requested a review April 9, 2025 12:16
@aeriforme
Copy link
Member

Is anybody planning to work on this PR?
If not, I can help. Lmk

@grobertdautun
Copy link
Contributor Author

Hi @aeriforme , thanks for offering to work on this PR. I updated it and it is now ready for review.
2 of the CI tests are failing (PETSc GCC) due to an uninitialised variable, which I fixed in #6254 as it seems unrelated to this PR

RemiLehe pushed a commit that referenced this pull request Oct 9, 2025
While updating #5637 for review, I reached a `maybe uninitialized` error
in the CI tests

This PR updates the `FieldGather.H` file to initialize the affected
variables (and the other similar ones just in case)
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.

7 participants