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

Continuous Device in addition to discrete device #18

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

txdai
Copy link
Contributor

@txdai txdai commented Feb 20, 2025

This pull request includes several changes to the fdtdx package, focusing on updating the device class structure and fixing some inconsistencies. The most important changes include replacing the Device class with DiscreteDevice and introducing a new abstract base class BaseDevice. Additionally, a new constraint module ContinuousPermittivityTransition has been added, and some minor typo corrections were made. I insist on separating the original device with continuous device due to the fact that in the future, support for multiple optimization scheme might be necessary, and I hope to maintain simplicity for each class (instead of having a lot of if-else statements). This allows for devices that has already been manually sub-pixel averaged to be simulated.

Device Class Structure Update:

New Constraint Module:

Typo Corrections:

Other Minor Changes:

In addition to the discrete device supported previously, this continuous device allows for arbitrary grayscale projection to permittivity values. This would allow for better precision in the simulation for sub-pixel sizes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant