Skip to content
New issue

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

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

Already on GitHub? # to your account

Implementation of Periodic Boundary Condition and Bugfix for plotting on Mac #13

Merged
merged 2 commits into from
Feb 7, 2025

Conversation

txdai
Copy link
Contributor

@txdai txdai commented Feb 4, 2025

Implemented periodic boundary condition that wraps around the boundaries. Can be applies to any pair of xyz planes.

Bug fix for plotting on Mac that has DPI scaling

txdai added 2 commits February 3, 2025 18:19
Implement periodic boundary conditions that wraps around the boundary for any selection of xyz plane. Update selection for the possible boundary
@ymahlau
Copy link
Owner

ymahlau commented Feb 7, 2025

Thanks for implementing this feature! I will merge this PR now.

@ymahlau
Copy link
Owner

ymahlau commented Feb 7, 2025

As a minor comment, I believe that this implementation is a bit overcomplicated. The curl operation already natively supported the periodic boundary if the padding size would be set to zero at the corresponding side. It might be worthwhile to simplify the implemetation in a future refactoring

@ymahlau ymahlau merged commit 899e3dd into ymahlau:main Feb 7, 2025
3 checks passed
@txdai
Copy link
Contributor Author

txdai commented Feb 7, 2025

As a minor comment, I believe that this implementation is a bit overcomplicated. The curl operation already natively supported the periodic boundary if the padding size would be set to zero at the corresponding side. It might be worthwhile to simplify the implemetation in a future refactoring

I am planning on adding a Fourier Detector/Diffractive Detector. This will be fixed in the next PR.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants