ECP-WarpX / WarpX

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

Diagnostics: Time-Averaged Fields #5165

Closed ax3l closed 5 days ago

ax3l commented 2 months ago

For LPI simulations, we would like a diagnostics that time-averages (over N subsequent steps) the output fields.

This is relatively easy to implement if we enforce the assumption that the output period P is greater than the averaging period N. For many simulations, that is sufficient and true.

RevathiJambunathan commented 2 months ago

@ax3l why would we need to enforce this assumption? I would think we could do it more generally?

ax3l commented 2 months ago

@RevathiJambunathan because otherwise we will have run-away memory consumption (and more book keeping).

As an update, we clarified in the last meetings (AMP and KISMET) with the current sciences cases in our projects that this assumption works very well for everyone that requested this feature.

RevathiJambunathan commented 1 month ago

But we can have a running average being written out often - it will not consume more memory. We can chat during the hackathon