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

TFSF #672

Merged
merged 3 commits into from
Mar 16, 2023
Merged

TFSF #672

merged 3 commits into from
Mar 16, 2023

Conversation

shashwat-sh
Copy link
Contributor

@shashwat-sh shashwat-sh commented Jan 26, 2023

Total-field scattered-field feature.
Associated backend PR: https://github.com/flexcompute/tidy3d-core/pull/223

Notebook (for now uses local solver):
https://github.com/flexcompute-readthedocs/tidy3d-docs/blob/shash/tfsf/docs/source/notebooks/TFSF.ipynb

To do:

  • Rebase
  • Make a tutorial notebook to showcase usage and discuss various scenarios / caveats

@shashwat-sh shashwat-sh changed the title [WIP] TFSF TFSF Jan 26, 2023
Copy link
Collaborator

@tylerflex tylerflex left a comment

Choose a reason for hiding this comment

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

Looks really good. Man, that's a lot of validators. Just a few mostly formatting things and also some comments about refactoring the TFSF and Source plotting, which would be good to do anyway. Thanks @shashwat-sh !

tidy3d/components/geometry.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Outdated Show resolved Hide resolved
tidy3d/components/source.py Show resolved Hide resolved
@shashwat-sh
Copy link
Contributor Author

Thanks @tylerflex, I've made the changes.

@tylerflex tylerflex self-requested a review January 30, 2023 18:51
@tylerflex tylerflex added rc2 2nd pre-release and removed WIP labels Feb 2, 2023
@shashwat-sh shashwat-sh force-pushed the shash/tfsf branch 3 times, most recently from e304061 to 9106e1a Compare February 2, 2023 22:03
@tylerflex tylerflex force-pushed the pre/1.9.0 branch 2 times, most recently from c6d8b80 to 9859e8a Compare February 3, 2023 20:30
@tylerflex tylerflex added rc1 1st pre-release 1.10 and removed 1.9 rc2 2nd pre-release labels Feb 6, 2023
@momchil-flex momchil-flex force-pushed the pre/1.9.0 branch 2 times, most recently from 7acc7b1 to d58051e Compare February 14, 2023 18:18
@momchil-flex momchil-flex changed the base branch from pre/1.9.0 to develop February 28, 2023 19:31
tidy3d/components/geometry.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Outdated Show resolved Hide resolved
tidy3d/components/simulation.py Show resolved Hide resolved
@tylerflex tylerflex added rc2 2nd pre-release and removed rc1 1st pre-release labels Mar 7, 2023
@shashwat-sh shashwat-sh changed the base branch from develop to pre/1.10.0 March 15, 2023 22:03
- added symmetry and boundary validators for tfsf

- modified TFSF plotting so that the arrows are on the injection plane; added injection_plane_center convenience property

- updated surfaces to handle the case of a surface at infinity

- added an option in CustomGrid to use a custom offset for defining the global coords of the custom grid, rather than the sim center

- adjusted tfsf validator description

- bloch boundary supports TFSF sources

- add sim method to get intersecting structures

- add sim pre upload validator to check that all side faces of a TFSF box see the same epsilon profile

- modification to source normalization for Bloch+TFSF

- add TFSF boundary and bloch validators

- updated tfsf tests

- added more frontend tests and fixed a validator bug

- plotting improvement and other fixes based on PR672 review

- minor plotting fix

- update bloch vec checker

- update tests for bloch checker

- update tests after rebase and deleted orig files

- revised based on PR672 review

- added a validator for custom media intersecting a TFSF box

- modify assert volume validator to hint at handling 2D simulations
@shashwat-sh shashwat-sh merged commit da98146 into pre/1.10.0 Mar 16, 2023
@tylerflex tylerflex deleted the shash/tfsf branch May 16, 2023 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
rc2 2nd pre-release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants