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

Add component selection to plot_eps #2085

Open
e-g-melo opened this issue Nov 21, 2024 · 2 comments
Open

Add component selection to plot_eps #2085

e-g-melo opened this issue Nov 21, 2024 · 2 comments
Assignees

Comments

@e-g-melo
Copy link
Collaborator

Current

When we call plot_eps and the simulation has anisotropic material models, the eps limits are calculated using eps_model which in turn, takes the average between the eps components on the main diagonal. So, it is not possible to visualize a specific permittivity component.

For example, we have this anisotropic material model with a main diagonal of [15, 10, 5].
image

When we plot it, the maximum permittivity is 10.
image

Requirement

Considering we have introduced some anisotropic materials in our material library and we have some users working with LiNbO3, it would be interesting to allow the users to specify which eps component they want to plot. We could keep the average of the mais eps diagonal as the default for backward compatibility. Maybe something like plot_eps(component="xx") and the user can select between xx, yy, zz, or None. If the medium is fully anisotropic, maybe we could allow for xx, xy, xz, yx, yy, yz, zx, zy, zz, or None.

@tylerflex
Copy link
Collaborator

so I think this would be a good "first" issue for new employees. One would need to trace through the plotting, adjust the structure eps plotting to make use of this eps_diagonal, and then make everything work

https://github.com/flexcompute/tidy3d/blob/develop/tidy3d/components/medium.py#L4982-L4994

Unless you think it's urgent enough that we need someone to implement right away?

@e-g-melo
Copy link
Collaborator Author

We don't have complaints about it, so it is not urgent at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants