Skip to content

Add absorption power computation to the Plasmonic Nanoparticle notebook #305

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

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

Conversation

damiano-flex
Copy link

This PR introduces the computation of the total power absorption and the absorption power density in the Plasmonic nanoparticle notebook. The changes are the following:

  • Added a small markdown text explaining how the absorption power is computed.
  • Added a snippet where it is computed the power density, and then the total absorption power through an integration.
  • Added the plot of the total absorption power, which matches perfectly with the other computed one from Tidy3D.

@momchil-flex
Copy link
Collaborator

Thanks @damiano-flex this is really great! Here's a few comments:

  • In the Create monitors cell, you can add an item about why we are adding 3D field monitors, namely saying that we will use those to compute the absorption distribution within the particle, and the total absorption by integrating that.
  • I would like this tutorial to also serve as a tutorial on how to compute D, as well as quantities that depend on D. So I suggest a) use the E.dot(D) formula rather than |E|**2; b) add an explanation that to compute D accurately, we use colocate=False in the E-field monitors, and combine the data with the permittivity monitor data
  • Maybe instead of Compute the power absorption, Absorbed power distribution or something like that? Because in the cell right above we already get the total absorbed power from the flux monitor.
  • Let's move the field plots to the Absorbed power distribution section and add a new plot with the absorption distribution after it is computed.
  • Final section name can then just be "Comparison with Mie series" as there will just be the Mie plots left there.

Copy link
Contributor

Spell check passed successfully for 1 notebook(s).
Generated by GitHub Action run: https://github.com/flexcompute/tidy3d-notebooks/actions/runs/15686253262

@damiano-flex
Copy link
Author

@momchil-flex I addressed your comments. Let me know if this version is OK.

Copy link
Collaborator

@momchil-flex momchil-flex left a comment

Choose a reason for hiding this comment

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

Thanks for the revision! Almost there!

  • In the permittivity monitor discussion, "colocate is set to False, since the permittivity is inherently defined at the center of each grid cell." -> "colocate is set to False so that the permittivity at the Yee grid locations, exactly as used in the solver, is stored.
  • Could you redo the web.run call so the outptut is actually shown?
  • In the absorption spectrum labels, how about we use "Tidy3D: $P_{abs}$" and "Tidy3D: I - S", and comment in the text what I - S (incoming minus scattered power) stands for.
  • Can we give a reference for the absorbed power density?
  • I know this didn't come from you, but in the end, in this sentence "Since the sphere's material is dispersive, no subpixel averaging scheme is applied", let's replace "dispersive" with "metallic". We actually apply subpixel to dispersive dielectrics.

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.

2 participants