Skip to content

Initialize particles only where density is non-zero #3335

Open
@n01r

Description

@n01r

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

Metadata

Metadata

Assignees

Labels

component: load balancingLoad balancing strategies, optimization etc.component: parallelizationGuard cell exchanges and particle redistributionhackathonLet's address this topic during the GPU hackathon

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions