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

Add feature projection div cleaner #4944

Conversation

clarkse
Copy link
Member

@clarkse clarkse commented May 21, 2024

Divergence cleaner class that computes the divergence at cell centers, then uses that as a source for a Poisson solve using MLMG that can be used to remove divergence components from the B-fields after initialization. This is useful for scrubbing interpolated B fields that are loaded into WarpX either through the openPMD loader or when using the pyWarpX fields interface.

@clarkse clarkse added enhancement New feature or request component: initialization Changes related to the initialization of the simulation labels May 22, 2024
@clarkse
Copy link
Member Author

clarkse commented May 22, 2024

Fixes #4355 and #4356.

Copy link
Member

@roelof-groenewald roelof-groenewald left a comment

Choose a reason for hiding this comment

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

Thanks so much for adding this! Looks good to me.

@roelof-groenewald roelof-groenewald merged commit dea63a7 into ECP-WarpX:development Aug 29, 2024
48 checks passed
@clarkse clarkse deleted the add_feature_projection_div_cleaner branch August 29, 2024 23:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: initialization Changes related to the initialization of the simulation enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add warning when interpolating initial B-field Initial B-field loading gives non divergence free field
3 participants