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

Fix PEC-Insulator boundary condition with staggering #5451

Conversation

dpgrote
Copy link
Member

@dpgrote dpgrote commented Nov 11, 2024

When calculating the location of the fields to determine whether the field is on a PEC or insulator boundary, add the appropriate shift to account for the staggering of the fields.

@dpgrote dpgrote added the component: boundary PML, embedded boundaries, et al. label Nov 11, 2024
@dpgrote dpgrote marked this pull request as ready for review November 11, 2024 23:32
@dpgrote dpgrote marked this pull request as draft November 11, 2024 23:35
@dpgrote dpgrote marked this pull request as ready for review November 11, 2024 23:35
@dpgrote dpgrote closed this Nov 11, 2024
@dpgrote dpgrote reopened this Nov 11, 2024
@@ -15,7 +15,7 @@ geometry.prob_hi = 1.e-2 3.e-2

# Boundary condition
boundary.field_lo = neumann periodic
boundary.field_hi = PECInsulator periodic
boundary.field_hi = pec_insulator periodic
Copy link
Member Author

Choose a reason for hiding this comment

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

This is an incidental fix, making the name consistent with what is in the documentation.

Copy link
Contributor

@JustinRayAngus JustinRayAngus left a comment

Choose a reason for hiding this comment

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

Just need to update the checksum values.

@JustinRayAngus JustinRayAngus merged commit 3d6fb55 into ECP-WarpX:development Nov 14, 2024
35 of 37 checks passed
@dpgrote dpgrote deleted the fix_PEC_Insulator_field_staggering branch November 18, 2024 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component: boundary PML, embedded boundaries, et al.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants