You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reduce particle shape when a particle approaches the EB (#5209)
**Description edited by @RemiLehe**
# Overview
This PR reduces the particle shape to order 1, when the particle gets
closer to the embedded boundary:
<img width="991" alt="Screenshot 2025-01-23 at 8 46 34 AM"
src="https://github.com/user-attachments/assets/2e206606-110e-4018-aedc-385567fe43e7"
/>
This ensures that the particle does not deposit charge in valid cells,
at the time when it is removed, which in turn ensures proper charge
conservation with the electromagnetic solver.
# Implementation
- This PR allocates and initializes a new mask
`eb_reduce_particle_shape` (and `iMultiFab`) that indicates in which
cells to reduce the particle shape.
- The deposition kernels have been modified to use this flag. In order
to make sure that this PR does not affect the performance of the
deposition kernel in the absence of EB, two versions of the deposition
kernel are compiled.
# Tests
This PR adds tests similar to the ones introduced in
#5562 to check for charge
conservation near the embedded boundary, but with higher-order shape
factors:
- The 2D tests fail on `development` for shape 2 and 3 but pass on this
PR.
- For some reason, the 3D and RZ tests only fail on `development` for
shape 3 ; they do pass for this PR. It is not clear why the tests do not
fail on `development` with shape 2.
**Note:** For now, this PR only modifies the current deposition (and
only the Esirkepov kernel). A follow-up PR will also modify the charge
deposition.
---------
Co-authored-by: Remi Lehe <remi.lehe@normalesup.org>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
0 commit comments