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

Good conductor draft (just for discussion) #1782

Draft
wants to merge 2 commits into
base: weiliang/fitter
Choose a base branch
from

Conversation

weiliangjin2021
Copy link
Collaborator

@weiliangjin2021 weiliangjin2021 commented Jun 21, 2024

Here is a draft on SIBC just to give more context on #1773 and hopefully be helpful in making decisions on how to structure the code. In this draft, I just added it in a separate file for now, to avoid massive difference in the code. One plan later is to split Medium.py.

As you can see, SubpixelSpec now has four fields: dielectric, metal, PEC, and lossy_metal. When lossy_metal takes SIBC, solver will apply SIBC to structures made of td.LossyMetal. We don't validate if the metal is lossy enough, as it heavily depends on the geometries.

Example

mat = td.LossyMetal(conductivity=1e2, frequency_range=(2e14, 3e14))
mat.plot()

And the result:
image

The fitting is applied to the medium frequency_range. So the frequency_range must not be None, and it must be finite and positive.

@weiliangjin2021 weiliangjin2021 marked this pull request as draft June 21, 2024 18:14
@weiliangjin2021 weiliangjin2021 changed the title Good conductor draft Good conductor draft (just for discussion) Jun 21, 2024
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.

None yet

1 participant