WarpX icon indicating copy to clipboard operation
WarpX copied to clipboard

Initialize particles only where density is non-zero

Open n01r opened this issue 3 years ago • 1 comments
trafficstars

Currently, particles are initialized everywhere in the box inside the bounds of zmin, zmax, xmin, ... if they are set. Otherwise, these bounds are expanded to the full box size, which can lead to running out of memory quickly when very dense, spatially limited targets (e.g. foils, spheres, etc.) are initialized.

Following discussions from 2022/08/23 this is identified as a potential topic for the September hackathon.

Approaches for solving this:

  • evaluate the density function twice and create an iMultiFab mask for non-zero density (preferred)
  • Find a global bounding box for particles
  • Find a local (per box) bounding box for particles

n01r avatar Aug 23 '22 16:08 n01r

tentatively assigning @atmyers for this, potentially hackathon; generally high priority for all non-trivial (non-uniform) simulations :)

ax3l avatar Aug 31 '22 18:08 ax3l