ECP-WarpX / WarpX

WarpX is an advanced electromagnetic & electrostatic Particle-In-Cell code.
https://ecp-warpx.github.io
Other
294 stars 190 forks source link

Add n_<species> Diagnostics #3654

Open ax3l opened 1 year ago

ax3l commented 1 year ago

We already have the shape-factor honoring rho_<species> diagnostics, which maps particles to charge density fields.

For neutral particles, such as photons, this cannot be used. Additionally, sometimes asking for the number density is a better choice.

On our Tue, Jan 31 2023 dev meeting, we decided to add n_<species> as an additional option to diagnostics. We will start with regular diagnostics and need to add a vector field v_<species> later on as well if we also want to support this in BTD.

ax3l commented 1 year ago

Thank you to @lucafedeli88 for volunteering for this! :sparkling_heart: