Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Removed assert and allowed bilinear filtering along r with RZ FDTD #4789

Open
wants to merge 9 commits into
base: development
Choose a base branch
from

Conversation

oshapoval
Copy link
Member

@oshapoval oshapoval commented Mar 19, 2024

  • To do: we might want to remove the charge buffer from WarpX within a separate PR, which should also fix one of the failing CI tests.

This PR removes an abort message which prevented from using bilinear filtering for charge and currents on the mesh, along r with RZ FDTD. Previously this assert message was added because we had observed strange results in RZ FDTD when filtering was ON ( see #1943 ) that we do not observe anymore.

Now, the default is warpx.use_filter=1 in all cases, including the simulations with RZ FDTD solver. Note, with the RZ PSATD solver, the filtering is done k-space.
One can also set the number of passes along each direction warpx.filter_npass_each_dir (3 int), and default is 1 1 1.

Screenshot 2024-03-25 at 2 23 24 PM Here is the corresponding input script:

inputs_rz.txt

@oshapoval oshapoval requested a review from RemiLehe March 19, 2024 23:49
@oshapoval oshapoval changed the title [WIP] Removed assert and allowed filtering along r with RZ FDTD [WIP] Removed assert and allowed bilinear filtering along r with RZ FDTD Mar 25, 2024
@oshapoval oshapoval changed the title [WIP] Removed assert and allowed bilinear filtering along r with RZ FDTD Removed assert and allowed bilinear filtering along r with RZ FDTD Mar 25, 2024
@oshapoval oshapoval changed the title Removed assert and allowed bilinear filtering along r with RZ FDTD [WIP] Removed assert and allowed bilinear filtering along r with RZ FDTD Mar 25, 2024
@oshapoval oshapoval changed the title [WIP] Removed assert and allowed bilinear filtering along r with RZ FDTD Removed assert and allowed bilinear filtering along r with RZ FDTD Mar 25, 2024
@@ -20,8 +20,7 @@ boundary.field_hi = pec pec
#################################
warpx.verbose = 1
warpx.do_dive_cleaning = 0
warpx.use_filter = 1
warpx.filter_npass_each_dir = 0 1
#warpx.use_filter = 1
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be better to use use_filter = 1 here, to test the new capability?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, here we want to use and set warpx.use_filter = 1 explicitly, still needed to clean up after testing. Thank you for spotting this. Fixed in 6d87779.

@ax3l ax3l added component: core Core WarpX functionality geometry: RZ axisymmetric 2D and quasi-3D labels Apr 1, 2024
@ax3l
Copy link
Member

ax3l commented Apr 1, 2024

@oshapoval can you locally take a look why ElectrostaticSphereEB_RZ_MR crashes pls?

@oshapoval oshapoval changed the title Removed assert and allowed bilinear filtering along r with RZ FDTD [WIP] Removed assert and allowed bilinear filtering along r with RZ FDTD Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: core Core WarpX functionality geometry: RZ axisymmetric 2D and quasi-3D
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants